Skip to content

Commit a5898a6

Browse files
committed
wip: disable inline const in dev
1 parent bc9f935 commit a5898a6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/vite/src/node/server/environments/fullBundleEnvironment.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,11 @@ export class FullBundleDevEnvironment extends DevEnvironment {
277277
implement: await getHmrImplementation(this.getTopLevelConfig()),
278278
}
279279

280+
if (rolldownOptions.optimization) {
281+
// disable inlineConst optimization due to a bug in Rolldown
282+
rolldownOptions.optimization.inlineConst = false
283+
}
284+
280285
// set filenames to make output paths predictable so that `renderChunk` hook does not need to be used
281286
if (Array.isArray(rolldownOptions.output)) {
282287
for (const output of rolldownOptions.output) {

0 commit comments

Comments
 (0)