GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Feature Request: Scopes in source maps · Issue #65696 · microsoft/TypeScript

Feature Request: Scopes in source maps #65696

New issue
Copy link
New issue
Copy link
Backlog
Backlog
Feature Request: Scopes in source maps#65696
Copy link

Description

@robpalme
Rob Palmer (robpalme)
opened on Nov 26, 2026
Issue body actions

🔍 Search Terms

sourcemap scopes ecma-426

✅ Viability Checklist

  • This wouldn't be a breaking change in existing TypeScript/JavaScript code
  • This wouldn't change the runtime behavior of existing JavaScript code
  • This could be implemented without emitting different JS based on the types of the expressions
  • This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
  • This isn't a request to add a new utility type: https://github.com/microsoft/TypeScript/wiki/No-New-Utility-Types
  • This feature would agree with the rest of our Design Goals: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals

⭐ Suggestion

Implement support for TC39-TG4 ECMA-426 Scopes in TypeScript.

Other tooling such as webpack already emit scopes in source maps.

📃 Motivating Example

In 2021, when a non-standard version of this feature was pitched, Daniel said

thanks for the proposal ... it would be worthwhile to try to get this into the sourcemap spec first

That motivated Daniel Ehrenberg (@littledan) & Jon Kuperman (@jkup) to convene the TC39-TG4 working group in 2023, which standardized the source map spec as ECMA-426 in 2024, and led to the Scopes proposal reaching Stage 3 and being shipped in Chrome DevTools in 2026. A longer version of this story is here.

image

💻 Use Cases

  1. What do you want to use this for?
    Interactive debugging and post-hoc stack analysis.

  2. What shortcomings exist with current approaches?
    Debugging bundled code often obscures meaning due to lack of context. Source maps (without scope data) are insufficient to fully recover the mapping of all symbols after transforms like down-leveling.

  3. What workarounds are you using in the meantime?
    Non-standard pasta

Reacted by uhyo

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.