Skip to content
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

Omit node_modules libs' sourcemaps from app sourcemaps without hurting debuggability? #52

Open
justingrant opened this issue Sep 4, 2023 · 1 comment

Comments

@justingrant
Copy link

For most JS apps, the vast majority of bundled code is library dependencies of the app, not code written by the app developer. Most of those libraries are published in the NPM registry.

Can these two facts be leveraged to dramatically shrink the size of app sourcemaps by pointing to external URLs for library sourcemaps instead of including library sources in app sourcemaps?

If yes, then does that scenario work today, using current bundlers, build tools, and debuggers?

If not, what would need to change to make it work?

I know the long-term goal is to completely decouple sourcemap download from code download, but I'm wondering if enabling JIT library sourcemap downloads might be a useful intermediate step.

@nicolo-ribaudo
Copy link
Member

This ability has been recently removed from the spec: #29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants