diff --git a/packages/frontend/vite.config.ts b/packages/frontend/vite.config.ts index 504562a91e..647fe4cf9b 100644 --- a/packages/frontend/vite.config.ts +++ b/packages/frontend/vite.config.ts @@ -148,6 +148,7 @@ export function getConfig(): UserConfig { }, chunkFileNames: process.env.NODE_ENV === 'production' ? '[hash:8].js' : '[name]-[hash:8].js', assetFileNames: process.env.NODE_ENV === 'production' ? '[hash:8][extname]' : '[name]-[hash:8][extname]', + sourcemap: true, paths(id) { for (const p of externalPackages) { if (p.match.test(id)) { @@ -163,7 +164,7 @@ export function getConfig(): UserConfig { outDir: __dirname + '/../../built/_frontend_vite_', assetsDir: '.', emptyOutDir: false, - sourcemap: process.env.NODE_ENV === 'development', + sourcemap: true, reportCompressedSize: false, // https://vitejs.dev/guide/dep-pre-bundling.html#monorepos-and-linked-dependencies