Skip to content

Commit e8b94a1

Browse files
authored
chore: fixup vite config for perf (#9744)
fixup vite config for perf
1 parent f19b80c commit e8b94a1

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

tests/performance/vite.config.mjs

+16-1
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,23 @@ export default defineConfig({
3535
},
3636
mode: 'production',
3737
build: {
38-
minify: true,
38+
minify: 'terser',
3939
reportCompressedSize: false,
40+
rollupOptions: {
41+
output: {
42+
manualChunks(id) {
43+
if (id.includes('@ember-data/model')) return 'warp-drive-legacy';
44+
if (id.includes('@ember-data/legacy-compat')) return 'warp-drive-legacy';
45+
if (id.includes('@ember-data')) return 'warp-drive';
46+
if (id.includes('@warp-drive')) return 'warp-drive';
47+
if (id.includes('@ember')) return 'ember';
48+
if (id.includes('ember-source')) return 'ember';
49+
if (id.includes('@glimmer')) return 'ember';
50+
if (id.includes('node_modules')) return 'vendor';
51+
return null;
52+
},
53+
},
54+
},
4055
terserOptions: {
4156
compress: {
4257
ecma: 2024,

0 commit comments

Comments
 (0)