Commit a346634
committed
build: drop --sourcemap from production bundle
Removes esbuild's --sourcemap flag from the inline build command.
Sourcemaps shipped 524 KB on top of the 4.2 MB bundle (matters for
marketplace install size and activation overhead) and aren't needed
in production.
Bundle audit (esbuild --metafile + per-input size sort) found:
- src/data/go/mod-parser.wasm: 2.99 MB (load-bearing)
- node_modules/json-to-ast/build.js: 136 KB
- node_modules/toml-eslint-parser/lib/index.mjs: 65 KB
- node_modules/@socketsecurity/lib/.../socket.js: 4.9 KB
- everything else: < 30 KB each
Only one @socketsecurity/lib leaf file reaches the bundle. The
socket-packageurl-js stubs plugin targets globs.js/sorts.js, neither
of which is in our import graph — adding the plugin would be a
no-op. Skipping.
Shipped size:
before: out/main.js 4.2 MB + out/main.js.map 524 KB
after: out/main.js 4.2 MB1 parent 3f1ee43 commit a346634
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
0 commit comments