File tree 1 file changed +19
-9
lines changed 1 file changed +19
-9
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,8 @@ export default defineConfig(({ mode }): UserConfig => {
70
70
reportCompressedSize : false ,
71
71
rollupOptions : {
72
72
output : {
73
+ inlineDynamicImports : true ,
74
+ validate : true ,
73
75
plugins : [
74
76
mode === 'analyze'
75
77
?
@@ -80,15 +82,23 @@ export default defineConfig(({ mode }): UserConfig => {
80
82
brotliSize : true
81
83
} )
82
84
: undefined
83
- ] ,
84
- manualChunks ( id ) {
85
- if (
86
- id . includes ( 'virtual:locales' ) ||
87
- id . includes ( '@intlify/unplugin-vue-i18n/messages' )
88
- ) {
89
- return 'localization' ;
90
- }
91
- }
85
+ ]
86
+ /**
87
+ * TODO: Revisit after the following issues are fixed:
88
+ * - https://github.com/vitejs/vite/issues/5142
89
+ * - https://github.com/evanw/esbuild/issues/399
90
+ * - https://github.com/rollup/rollup/issues/3888
91
+ */
92
+ /*
93
+ * manualChunks(id) {
94
+ * if (
95
+ * id.includes('virtual:locales') ||
96
+ * id.includes('@intlify /unplugin-vue-i18n/messages')
97
+ * ) {
98
+ * return 'localization';
99
+ * }
100
+ * }
101
+ */
92
102
}
93
103
}
94
104
} ,
You can’t perform that action at this time.
0 commit comments