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

preserve npm sourcemaps #1511

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

preserve npm sourcemaps #1511

wants to merge 1 commit into from

Conversation

Fil
Copy link
Contributor

@Fil Fil commented Jul 10, 2024

The easiest of the many things we can/want/might do with sourceMaps:

  • preserve sourceMap URL for npm modules, as links to jsdeliver

For example, at the bottom of http://127.0.0.1:3000/_npm/[email protected]/_esm.js this PR now shows:

//# sourceMappingURL=https://cdn.jsdelivr.net/sm/42676edc1731d21c3307f50afea3dbba6be989c9c9d267599113a48e3ca85bf9.map

Capture d’écran 2024-07-10 à 18 53 12

But, is this something we would only want to do in preview? We could censor the sourceMappingURL=… lines in the build.

Related issues:

@Fil Fil added the question Further information is requested label Jul 10, 2024
@Fil Fil force-pushed the fil/sourcemap branch from 6467285 to 7b47c82 Compare July 10, 2024 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant