Skip to content

Commit

Permalink
update vite options
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanejbrown committed Oct 19, 2024
1 parent 326a342 commit 3bf1f50
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 3bf1f50

Please sign in to comment.