fix: Enable sourcemaps on debug Vite Trace Viewer service worker build

This commit is contained in:
Adam Gastineau 2024-12-12 10:49:36 -08:00
parent 733f9a2926
commit a66350b86d

View file

@ -40,6 +40,7 @@ export default defineConfig({
// outputs into the public dir, where the build of vite.config.ts will pick it up // outputs into the public dir, where the build of vite.config.ts will pick it up
outDir: path.resolve(__dirname, 'public'), outDir: path.resolve(__dirname, 'public'),
emptyOutDir: false, emptyOutDir: false,
sourcemap: true,
rollupOptions: { rollupOptions: {
input: { input: {
sw: path.resolve(__dirname, 'src/sw-main.ts'), sw: path.resolve(__dirname, 'src/sw-main.ts'),