A Rollup utility that provides a sourcemapPathTransform function to rebase source map file paths, allowing grouping of sources under a common prefix in browser debuggers. Current stable version is 1.2.0, with a release cadence of about once a year. Supports Rollup 2, 3, and 4. Differentiators: supports multiple prefix replacements with optional wildcard matching and strict mode that throws on unmapped paths.
npm install rollup-sourcemap-path-transformNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures Rollup to rebase source map paths under /myproj/ prefix.
Switch to import syntax or use dynamic import().
Use '*src/' to match only paths starting with 'src/' or containing that segment.
Order prefixes from most specific to least specific.
Ensure all source paths are covered by at least one prefix, or use false to ignore unmapped ones.
Change to import statement: import { createPathTransform } from 'rollup-sourcemap-path-transform'Use named import: import { createPathTransform } from 'rollup-sourcemap-path-transform'