Repository navigation
build: add dev source maps - #1948
Merged
Merged
Conversation
OrKoN
approved these changes
Apr 23, 2026
OrKoN
pushed a commit
that referenced
this pull request
Apr 27, 2026
This allows setting up a debugger script with either enabled debugging port or tools like VS Code or Antigravity.
Lightning00Blade
added a commit
that referenced
this pull request
Oct 21, 2026
npm matches a negated `files` entry only at the package root, so `!*.js.map` never excluded the source maps in build/src, and the package has included them since #1948. Use `!**/*.js.map` to match them at any depth.
yashdesai87
pushed a commit
to yashdesai87/chrome-devtools-mcp
that referenced
this pull request
Oct 21, 2026
Stacked on ChromeDevTools#3293. ChromeDevTools#1948 enabled source maps for local debugging and added `!*.js.map` to `files` in `package.json` to keep them out of the npm package. npm matches a negated `files` entry only at the package root, so the entry never matched the source maps in `build/src`, and the package has included them since then. This PR changes the entry to `!**/*.js.map`, the same form that ChromeDevTools#3293 uses for `.d.ts` files. The published maps were of little use: they do not embed `sourcesContent`, and the TypeScript sources that they reference are not in the package. ## User-visible changes - The npm package no longer includes `.js.map` files (100 files in a local `npm pack --dry-run`). - The published `.js` files still end with `//# sourceMappingURL=` comments, which now point to files that are not in the package. Tools that load source maps, such as debuggers, can warn that the map is missing. ## Testing - `npm pack --dry-run` lists no `.js.map` files and still lists the `.js` files. - `npm run format` - `npm run test`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This allows setting up a debugger script with either enabled debugging port or tools like VS Code or Antigravity.