Skip to content

Commit

Permalink
use separate vscode webview source map to cut bundle by 17MB (#555)
Browse files Browse the repository at this point in the history
With an inline sourcemap, `vscode/dist/webviews/index.js` is 18.8MB.
With a separate sourcemap file, it is 1.8MB. The sourcemap file is 13MB,
so even including it, there's still a big reduction. And now the
sourcemap is only loaded for debugging, not for routine execution, which
surely must be a perf improvement.
  • Loading branch information
sqs authored Aug 3, 2023
1 parent a7d7dc3 commit 12e617d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vscode/webviews/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default defineConfig({
target: 'esnext',
assetsDir: '.',
minify: false,
sourcemap: 'inline',
sourcemap: true,
reportCompressedSize: false,
rollupOptions: {
watch: {
Expand Down

0 comments on commit 12e617d

Please sign in to comment.