Repository navigation
perf: VSIX size optimization 8.92MB → 7.54MB (-15.5%) - #18
Merged
Merged
Conversation
Verified strip rules against runtime require probes and dependency-closure analysis (docs/prd/024-vsix-size-optimization.md): - .vscodeignore: drop out/** tsc dead code (only out/extension.js ships), install-time-only subtrees (prebuild-install/tar/node-fetch chains), @azure/@typespec esm/browser/react-native dist variants, js-joda non-CJS variants, unreachable packages (aws-ssl-profiles, undici-types, etc.) - esbuild: bundle node-sql-parser into out/extension.js (moved to devDependencies); lazy-load semantics preserved via __commonJS wrap - fix (regression since v2.26.1): node_modules/**/src/** stripped the main entries of debug/js-md4/sprintf-js/ecdsa-sig-formatter (all on the mssql->tedious->@Azure chain) — packaged SQL Server connections crashed - fix (regression since v2.32.1): @js-joda/core was stripped wholesale but tedious requires it for DATETIME2 parsing — restored CJS entry only Verification: extracted-VSIX driver probes (all 9 externals load, better-sqlite3 executes a real query, js-joda parses DATETIME2), bundle activation smoke via vscode stub (65 commands, linter diagnostics through the bundled parser, format + converter commands), 388 source-level tests. Co-Authored-By: Claude Code <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.vscodeignore:剔除 out/ 散装死代码、安装期专用依赖子树(prebuild-install/tar/node-fetch 链)、@azure/@typespec 多格式 dist 变体、不可达包Fixed regressions(分析中发现的已上线 bug)
node_modules/**/src/**规则误伤debug/js-md4/sprintf-js/ecdsa-sig-formatter主入口(均在 mssql→tedious→@Azure 链上)——打包版 SQL Server 连接崩溃@js-joda/core被整体误剔(tedious DATETIME2 解析顶层依赖)——同样导致 SQL Server 连接崩溃Test plan
🤖 Generated with Claude Code