Skip to content

Commit 500fb55

Browse files
committed
fix: lodash test case
1 parent 01e6c22 commit 500fb55

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/e2e/builder/cases/swc/index.swc.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ test('should optimize lodash bundle size', async ({ page }) => {
3636
plugins: [pluginSwc()],
3737
runServer: true,
3838
builderConfig: {
39+
performance: {
40+
chunkSplit: {
41+
strategy: 'split-by-experience',
42+
forceSplitting: {
43+
'lib-lodash': /node_modules[\\/]lodash(-es)?[\\/]/,
44+
},
45+
},
46+
},
3947
output: {
4048
polyfill: 'entry',
4149
},

0 commit comments

Comments
 (0)