Skip to content

Commit 428c66c

Browse files
committed
wip: test optimization.inlineConst
1 parent 56f94c7 commit 428c66c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/vite/src/node/build.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,10 @@ async function buildEnvironment(
645645
? {}
646646
: options.rollupOptions.treeshake),
647647
},
648+
optimization: {
649+
inlineConst: true,
650+
...options.rollupOptions.optimization,
651+
},
648652
}
649653

650654
/**

0 commit comments

Comments
 (0)