We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 326a342 commit 3bf1f50Copy full SHA for 3bf1f50
vite.config.js
@@ -37,6 +37,10 @@ const PWAConfig = {
37
38
// https://vitejs.dev/config/
39
export default defineConfig(({ mode }) => ({
40
+ optimizeDeps: {
41
+ entries: [], // Prevent unnecessary optimization on entry points like react
42
+ include: ['react', 'react-dom'], // Ensure react and react-dom are pre-bundled
43
+ },
44
build: {
45
outDir: './build',
46
target: 'esnext',
0 commit comments