Skip to content

Commit 00c2c75

Browse files
committed
refactor: disable manualchunks
It seems to not be stable. See commented issues for reference Signed-off-by: Fernando Fernández <[email protected]>
1 parent 757e357 commit 00c2c75

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

frontend/vite.config.ts

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ export default defineConfig(({ mode }): UserConfig => {
7070
reportCompressedSize: false,
7171
rollupOptions: {
7272
output: {
73+
inlineDynamicImports: true,
74+
validate: true,
7375
plugins: [
7476
mode === 'analyze'
7577
?
@@ -80,15 +82,23 @@ export default defineConfig(({ mode }): UserConfig => {
8082
brotliSize: true
8183
})
8284
: 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+
*/
92102
}
93103
}
94104
},

0 commit comments

Comments
 (0)