Skip to content

Commit 00ddf60

Browse files
committed
wip: test optimization.inlineConst
1 parent 70a9530 commit 00ddf60

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
@@ -636,6 +636,10 @@ function resolveRolldownOptions(
636636
? {}
637637
: options.rollupOptions.treeshake),
638638
},
639+
optimization: {
640+
inlineConst: true,
641+
...options.rollupOptions.optimization,
642+
},
639643
}
640644

641645
const isSsrTargetWebworkerEnvironment =

0 commit comments

Comments
 (0)