Thanks to visit codestin.com
Credit goes to github.com

Skip to content

build(devtools): fix ng-devtools source maps #62042

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hawkgs
Copy link
Member

@hawkgs hawkgs commented Jun 13, 2025

There is a problem with the dev app bundle where esbuild is unable to properly set the sourcesContent of the js.map files for ng-devtools. They are null. That's why, the .ts files are registered by Chrome DevTools but their contents cannot be loaded.

I am not entirely sure why this happens given that the sources paths array is properly set, but inlining the sourcesContent in the map files solves the issue for now which allows us to perform proper debugging in the browser.

Inline the sources contents in the `js.map` files. This fixes the source maps for the dev app.
@hawkgs hawkgs requested a review from devversion June 13, 2025 09:20
@hawkgs hawkgs added area: build & ci Related the build and CI infrastructure of the project area: devtools labels Jun 13, 2025
@ngbot ngbot bot added this to the Backlog milestone Jun 13, 2025
@hawkgs hawkgs closed this Jun 16, 2025
@hawkgs hawkgs reopened this Jun 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: build & ci Related the build and CI infrastructure of the project area: devtools
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant