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

Chrome introduced x_google_ignoreList #17

Closed
jridgewell opened this issue Sep 2, 2022 · 8 comments
Closed

Chrome introduced x_google_ignoreList #17

jridgewell opened this issue Sep 2, 2022 · 8 comments

Comments

@jridgewell
Copy link
Member

https://developer.chrome.com/blog/devtools-better-angular-debugging/#the-x_google_ignorelist-source-map-extension

In source maps, the new x_google_ignoreList field refers to the sources array, and lists the indices of all the known third-party sources in that source map. When parsing the source map, Chrome DevTools will use this to figure out which sections of the code should be ignore-listed.

They also call out that they're exploring how to map regions inside generated code that do not map to original code, presumably to also ignore that in the debugger:

There may be regions in the generated code that aren’t mapped to any original code at all. We are open to exploring the possibility of such granular ignore-listing regions. Reach out if your framework or bundler would benefit from fine-grained ignore-listing!

@Jack-Works
Copy link
Member

The typeScript team is also introducing a new extension. microsoft/TypeScript#51307
x_ms_ts_annotations

I'm very interested to see a well-known source map extension list gets maintained.

@jecfish
Copy link

jecfish commented Apr 11, 2023

Here is the dedicated docs for x_google_ignoreList: https://goo.gle/ignore-list

@EricSL
Copy link
Contributor

EricSL commented Jul 21, 2023

Since this extension is now supported by Firefox, is there interest in renaming it to "ignoreList" or "thirdParty" and making it an official part of the spec, or are you just proposing to document common extensions as they are?

@jecfish
Copy link

jecfish commented Jul 21, 2023

For context, here is the announcement from Firefox and their docs on how to enable it.

@EricSL
Copy link
Contributor

EricSL commented Oct 5, 2023

Proposal: tc39/source-map-spec#19

@EricSL
Copy link
Contributor

EricSL commented Oct 24, 2023

The spec has been changed and the new behavior should be in Chrome DevTools 120. x_google_ignoreList is being renamed to ignoreList.

@littledan
Copy link
Member

Closed by tc39/source-map-spec#19

@bomsy
Copy link
Collaborator

bomsy commented Oct 31, 2023

Filed this to support the new behaviour in firefox devtools mozilla/source-map#497

nicolo-ribaudo pushed a commit to nicolo-ribaudo/source-map that referenced this issue Mar 13, 2024
Add the paragraph about WebAssembly `sourceMappingURL` section
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants