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

Make 'omt:' URLs have relative emitted paths in sourcemaps #45

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

docd27
Copy link

@docd27 docd27 commented Jun 5, 2021

Currently sourcemaps with omt: URLs contain the absolute path of the resolved file on the system running rollup.
Which potentially leaks sensitive information (e.g. the developer's local username).

This makes them relative to the rollup config and consistent with how other paths appear.

Note this requires rollup>=2.29.0 since ModuleInfo.meta was introduced in rollup/rollup#3807

@docd27 docd27 requested a review from surma as a code owner June 5, 2021 02:38
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

Successfully merging this pull request may close these issues.

None yet

1 participant