Skip to content

Commit a4e7135

Browse files
committed
perf: Inline constants with 2-pass smart mode
1 parent 25efecf commit a4e7135

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,9 @@ export default defineConfig(async ({ command, mode, isPreview }) => {
221221
output: {
222222
comments: { legal: false },
223223
},
224+
optimization: {
225+
inlineConst: { mode: 'smart', pass: 2 },
226+
},
224227
treeshake:
225228
mode === 'production'
226229
? { manualPureFunctions: ['console.log', 'console.debug', 'console.trace'] }

0 commit comments

Comments
 (0)