diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 44b10882434..702b0d50113 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -70,6 +70,8 @@ export default defineConfig(({ mode }): UserConfig => { reportCompressedSize: false, rollupOptions: { output: { + inlineDynamicImports: true, + validate: true, plugins: [ mode === 'analyze' ? @@ -80,15 +82,23 @@ export default defineConfig(({ mode }): UserConfig => { brotliSize: true }) : undefined - ], - manualChunks(id) { - if ( - id.includes('virtual:locales') || - id.includes('@intlify/unplugin-vue-i18n/messages') - ) { - return 'localization'; - } - } + ] + /** + * TODO: Revisit after the following issues are fixed: + * - https://github.com/vitejs/vite/issues/5142 + * - https://github.com/evanw/esbuild/issues/399 + * - https://github.com/rollup/rollup/issues/3888 + */ + /* + * manualChunks(id) { + * if ( + * id.includes('virtual:locales') || + * id.includes('@intlify/unplugin-vue-i18n/messages') + * ) { + * return 'localization'; + * } + * } + */ } } },