Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module: add --experimental-strip-node-modules flag #57229

Closed

Conversation

marco-ippolito
Copy link
Member

Fixes: #57215

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/loaders
  • @nodejs/typescript

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. module Issues and PRs related to the module subsystem. needs-ci PRs that need a full CI run. labels Feb 27, 2025
@@ -1113,6 +1113,16 @@ added:

Use this flag to enable [ShadowRealm][] support.

### `--experimental-strip-node-modules`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I first read the PR title, I thought this referred to stripping out references to node_modules from stack traces. Maybe I'm the only one who would ever think that, but perhaps this could be clearer even if it becomes more verbose?

Suggested change
### `--experimental-strip-node-modules`
### `--experimental-strip-types-in-node-modules`

Copy link

codecov bot commented Feb 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.27%. Comparing base (1a6bef2) to head (aaf7d21).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #57229   +/-   ##
=======================================
  Coverage   90.26%   90.27%           
=======================================
  Files         630      630           
  Lines      184690   184696    +6     
  Branches    36142    36145    +3     
=======================================
+ Hits       166712   166728   +16     
- Misses      11021    11022    +1     
+ Partials     6957     6946   -11     
Files with missing lines Coverage Δ
lib/internal/modules/typescript.js 97.37% <100.00%> (+0.04%) ⬆️
src/node_options.cc 85.36% <100.00%> (+0.01%) ⬆️
src/node_options.h 98.34% <100.00%> (+<0.01%) ⬆️

... and 28 files with indirect coverage changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Issues and PRs that require attention from people who are familiar with C++. module Issues and PRs related to the module subsystem. needs-ci PRs that need a full CI run.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support type stripping in node_modules
4 participants