You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduce the x_google_ignoreList extension in the sourcemaps generated by this project. This will facilitate a more streamlined debugging experience in Chrome (and other supporting browsers) by automatically filtering out framework and dependency code.
Benefit
Implementing x_google_ignoreList in the sourcemaps will align this project with modern web development practices, offering a more focused and efficient debugging experience for developers using Chrome DevTools. This change will particularly benefit those who regularly engage in debugging complex applications with numerous dependencies.
The ignore-listing is enabled by populating an extra x_google_ignoreList field in the source map that Angular generates when compiling the project. The Chrome DevTools team encourages other framework authors to implement a similar change. Refer to the Case Study: Better Angular Debugging with DevTools post for more details.
Ignore-listing code
When debugging applications using Chrome DevTools, authors generally only want to see just their code, not that of the framework underneath or some dependency tucked away in the node_modules folder.
To achieve this, the DevTools team has introduced an extension to source maps, called x_google_ignoreList. This extension is used to identify third-party sources such as framework code or bundler-generated code. When a framework uses this extension, authors now automatically avoid code that they don't want to see or step through without having to manually configure this beforehand.
The x_google_ignoreList source map extension is supported by Chrome DevTools starting with Chrome 106.
The source maps specification has adopted the ignoreList field instead of x_google_ignoreList and DevTools now supports the new name with a fallback for the old one. Frameworks and bundlers can now use the new field name.
Introduce the
x_google_ignoreList
extension in the sourcemaps generated by this project. This will facilitate a more streamlined debugging experience in Chrome (and other supporting browsers) by automatically filtering out framework and dependency code.Benefit
Implementing
x_google_ignoreList
in the sourcemaps will align this project with modern web development practices, offering a more focused and efficient debugging experience for developers using Chrome DevTools. This change will particularly benefit those who regularly engage in debugging complex applications with numerous dependencies.Background Context
See Also
x_google_ignoreList
(Ignore-listing code) support to sourcemaps facebook/react#27774x_google_ignorelist
vercel/next.js#41370x_google_ignoreList
(Ignore-listing code) support to sourcemaps preactjs/preact#4225x_google_ignoreList
(Ignore-listing code) support to sourcemaps sveltejs/svelte#9740x_google_ignoreList
(Ignore-listing code) support to sourcemaps developit/microbundle#1066node_modules
and buildDir tox_google_ignoreList
nuxt/nuxt#19243sourcemapIgnoreList
configuration option vitejs/vite#12174x_google_ignoreList
rollup/rollup#4847sourcemapIgnoreList
config predicate rollup/rollup#4848x_google_ignoreList
Rich-Harris/magic-string#241Tangentially related issues for improving modern debugging support:
The text was updated successfully, but these errors were encountered: