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 bc9f935 commit a5898a6Copy full SHA for a5898a6
packages/vite/src/node/server/environments/fullBundleEnvironment.ts
@@ -277,6 +277,11 @@ export class FullBundleDevEnvironment extends DevEnvironment {
277
implement: await getHmrImplementation(this.getTopLevelConfig()),
278
}
279
280
+ if (rolldownOptions.optimization) {
281
+ // disable inlineConst optimization due to a bug in Rolldown
282
+ rolldownOptions.optimization.inlineConst = false
283
+ }
284
+
285
// set filenames to make output paths predictable so that `renderChunk` hook does not need to be used
286
if (Array.isArray(rolldownOptions.output)) {
287
for (const output of rolldownOptions.output) {
0 commit comments