rollup-plugin-off-main-thread icon indicating copy to clipboard operation
rollup-plugin-off-main-thread copied to clipboard

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

Open docd27 opened this issue 4 years ago • 0 comments

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 avatar Jun 05 '21 02:06 docd27