Skip to content

Commit a44b0a2

Browse files
authored
fix(optimizer): re-optimize when changing config webCompatible (#18221)
1 parent 95020ab commit a44b0a2

File tree

1 file changed

+1
-0
lines changed
  • packages/vite/src/node/optimizer

1 file changed

+1
-0
lines changed

packages/vite/src/node/optimizer/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1176,6 +1176,7 @@ function getConfigHash(environment: Environment): string {
11761176
plugins: optimizeDeps?.esbuildOptions?.plugins?.map((p) => p.name),
11771177
},
11781178
},
1179+
webCompatible: config.webCompatible,
11791180
},
11801181
(_, value) => {
11811182
if (typeof value === 'function' || value instanceof RegExp) {

0 commit comments

Comments
 (0)