Open
Labels
triage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
Description
Hello! I noticed this VS Code extension package includes a node_modules directory.
Would it be worth considering a leaner packaging strategy?
- Use the
filesfield inpackage.jsonas an explicit allowlist for files required at runtime and by the VS Code Marketplace. - Bundle JavaScript/TypeScript runtime dependencies into the extension output with esbuild, webpack, tsup, or a similar tool where practical.
- Exclude development dependencies, tests, type packages, and unrelated platform files from the VSIX.
- Keep only dependencies or resources that cannot be bundled, such as native modules, binaries, dynamically loaded modules, or required package assets.
This can reduce VSIX size and installation overhead while preserving runtime behavior. It is not a request to change blindly: native modules, dynamic loading, externalized dependencies, and separately launched Node processes should be validated before removing anything.
If this repository already has an intentional reason to ship node_modules, documenting that reason in the packaging configuration could also help future maintainers.
Metadata
Metadata
Assignees
Labels
triage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
Activity