Skip to content

Commit

Permalink
fix(optimizer): re-optimize when changing config webCompatible (#18221
Browse files Browse the repository at this point in the history
)
  • Loading branch information
hi-ogawa committed Sep 28, 2024
1 parent 95020ab commit a44b0a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vite/src/node/optimizer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1176,6 +1176,7 @@ function getConfigHash(environment: Environment): string {
plugins: optimizeDeps?.esbuildOptions?.plugins?.map((p) => p.name),
},
},
webCompatible: config.webCompatible,
},
(_, value) => {
if (typeof value === 'function' || value instanceof RegExp) {
Expand Down

0 comments on commit a44b0a2

Please sign in to comment.