File tree 1 file changed +16
-1
lines changed
1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,23 @@ export default defineConfig({
35
35
} ,
36
36
mode : 'production' ,
37
37
build : {
38
- minify : true ,
38
+ minify : 'terser' ,
39
39
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
+ } ,
40
55
terserOptions : {
41
56
compress : {
42
57
ecma : 2024 ,
You can’t perform that action at this time.
0 commit comments