-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
feat: mark files in a node_modules
as ignore-listed by default
#4877
feat: mark files in a node_modules
as ignore-listed by default
#4877
Conversation
✅ Deploy Preview for rollupjs ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Codecov Report
@@ Coverage Diff @@
## master #4877 +/- ##
=======================================
Coverage 98.98% 98.98%
=======================================
Files 219 219
Lines 7948 7951 +3
Branches 2189 2190 +1
=======================================
+ Hits 7867 7870 +3
Misses 26 26
Partials 55 55
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
d5509d6
to
ed11971
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
While I approve the change in general, now the only way to switch it off is to pass a function that always returns false
.
I think we should adjust the types and handling slightly:
- E.g. allow an explicit
false
to turn off the feature. That would be consistent with how this works for other options liketreeshake
orwatch
- Either translate
false
to an "always false" predicate and have always a function in thenormalizedOutputOptions
, or hand through thefalse
value. I am slightly leaning to the former approach of always having a function for simplicity. In that case, we can remove the conditional logic inrenderChunks
that is currently not covered.
And of course, documentation should be adapted to show the new types and explain the default logic.
ed11971
to
931b43b
Compare
Done, thanks! |
Following up on the addition of the `sourcemapIgnoreList` output option, this adds a default which marks all files within a `node_modules` folder as ignore-listed. This way most projects using rollup will need no additional configuration regarding the ignore-listing and automatically benefit. This also allows to specify `false` for the `sourcemapIgnoreList` output option, which completely disables the generation of an ignore-list. Doc: https://goo.gle/devtools-ignoreList-adoption
931b43b
to
ca3eba9
Compare
This PR has been released as part of rollup@3.18.0. You can test it via |
This PR contains:
Are tests included?
Breaking Changes?
List any relevant issue numbers:
#4847
Description
Following up on the addition of the
sourcemapIgnoreList
output option, this adds a default which marks all files within anode_modules
folder as ignore-listed. This way most projects using rollup will need no additional configuration regarding the ignore-listing and automatically benefit.Doc: https://goo.gle/devtools-ignoreList-adoption