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
Add support for x_google_ignoreList
#4847
Comments
@bmeurer I believe this is already implemented now, right? |
No, rollup doesn't propagate |
@bmeurer Ah true, that makes sense. Thanks. Further details on the change from
|
Feature Use Case
Chrome DevTools introduced1 support for a new
x_google_ignoreList
source map extension2 last year, which allows to libraries / frameworks to have their code automatically ignore-listed in the debugger, meaning that files will not show up or if shown will be grayed out, stepping and breaking on exceptions will ignore these files by default, etc.Feature Proposal
We propose1 two sets of changes in rollup to leverage the ignore-listing effectively.
sourcemapIgnoreList
predicate similar to thesourcemapPathTransform
callback. ThesourcemapIgnoreList
predicate (when provided) will be called with the same inputs as thesourcemapPathTransform
callback and if the result istrue
, the corresponding sources entry in the source map will be added to thex_google_ignoreList
. ThesourcemapIgnoreList
predicate (when provided) will always be called before thesourcemapPathTransform
callback.x_google_ignoreList
annotations from input source maps and other transforms.Ref: Rich-Harris/magic-string#241
Footnotes
https://developer.chrome.com/blog/devtools-better-angular-debugging ↩ ↩2
https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.mt2g20loc2ct ↩
The text was updated successfully, but these errors were encountered: