Migrate off source-map-support to native Node source maps - #11295
Merged
Conversation
@typespec/bundler
@typespec/compiler
@typespec/graphql
@typespec/spector
@typespec/tspd
commit: |
Contributor
|
All changed packages have been documented.
Show changes
|
timotheeguerin
marked this pull request as ready for review
July 17, 2026 14:24
timotheeguerin
requested review from
bterlson,
catalinaperalta,
iscai-msft,
markcowl and
witemple-msft
as code owners
July 17, 2026 14:24
…grate # Conflicts: # .github/aw/actions-lock.json # .github/workflows/issue-triage.lock.yml
…migrate # Conflicts: # pnpm-lock.yaml
|
You can try these changes here
|
iscai-msft
approved these changes
Jul 17, 2026
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.
Summary
Node has shipped native source-map support for stack traces since v14.6 via
process.setSourceMapsEnabled(true), and every workspace package now requires Node>=22. The third-partysource-map-supportdependency is therefore no longer needed.This replaces the
source-map-support/register.jsimport with the native API in the CLI entrypoints and drops the dependency.Changes
source-map-support/register.jswithprocess.setSourceMapsEnabled(true)in the CLI entrypoints (removing the associatedtry/catch+@ts-ignore/eslint-disable):packages/compiler/src/core/cli/cli.tspackages/pack/src/cli.tspackages/tspd/src/cli.tspackages/bundler/src/cli.tspackages/spector/src/cli/cli.tssource-map-supportfrom thepnpm-workspace.yamlcatalog and from thepackage.jsonof@typespec/compiler,@typespec/pack,@typespec/tspd, and@typespec/spector.pnpm-lock.yaml.Out of scope
packages/http-client-*/package-lock.jsonreferencesource-map-supportonly transitively via the published@typespec/spector; those npm-managed lockfiles regenerate separately when spector is republished.Validation
pnpm-lock.yamlhits are legitimate transitive deps (@babel/register, chronus tooling), not a direct dependency.