From 3bf1f504067c4ec4952390f73c7ed813e5c0f439 Mon Sep 17 00:00:00 2001 From: Nathan Brown Date: Fri, 18 Oct 2024 18:36:18 -0600 Subject: [PATCH] update vite options --- vite.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vite.config.js b/vite.config.js index 9360385..caf7066 100644 --- a/vite.config.js +++ b/vite.config.js @@ -37,6 +37,10 @@ const PWAConfig = { // https://vitejs.dev/config/ export default defineConfig(({ mode }) => ({ + optimizeDeps: { + entries: [], // Prevent unnecessary optimization on entry points like react + include: ['react', 'react-dom'], // Ensure react and react-dom are pre-bundled + }, build: { outDir: './build', target: 'esnext',