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.
inlineConst
1 parent 3d69d3e commit 6d97142Copy full SHA for 6d97142
1 file changed
packages/vite/src/node/server/environments/fullBundleEnvironment.ts
@@ -283,10 +283,10 @@ export class FullBundleDevEnvironment extends DevEnvironment {
283
implement: await getHmrImplementation(this.getTopLevelConfig()),
284
}
285
286
- if (rolldownOptions.optimization) {
287
- // disable inlineConst optimization due to a bug in Rolldown
288
- rolldownOptions.optimization.inlineConst = false
289
- }
+ // disable inlineConst optimization due to a bug in Rolldown
+ // https://github.com/vitejs/vite/issues/21843
+ rolldownOptions.optimization ??= {}
+ rolldownOptions.optimization.inlineConst = false
290
291
// set filenames to make output paths predictable so that `renderChunk` hook does not need to be used
292
if (Array.isArray(rolldownOptions.output)) {
0 commit comments