jridgewell / remapping

https://github.com/ampproject/remapping
Apache License 2.0
0 stars 0 forks source link

Support several default sourcemap loaders #9

Open jridgewell opened 5 years ago

jridgewell commented 5 years ago

Eg, a transformationChain, where a series of transformations on a single file are remapped to a root sorucemap

jridgewell commented 5 years ago

Or a builder API:

// Given 3 transforms on a file x.js:
const builder = new resorcery.Builder(finalSourcemap);

const secondMap = builder.traceSource(0, secondSourcemap);

const firstMap = secondMap.traceSource(0, originalFile);

etc.