Skip to content

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

Open
docd27 wants to merge 2 commits into
surma:masterfrom
docd27:relative-omt-urls
Open

Make 'omt:' URLs have relative emitted paths in sourcemaps#45
docd27 wants to merge 2 commits into
surma:masterfrom
docd27:relative-omt-urls

Conversation

@docd27

@docd27 docd27 commented Jun 5, 2021

Copy link
Copy Markdown

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.

1 participant