developit / developit/microbundle
[Feature request] Use sourcemap files from imports
- Dominant language
- JavaScript
- Stars
- 8.1k
- Forks
- 358
- PR merge metrics
- No merged PRs in 30d
Description
Using microbundle@0.15.1
In a multistage build (such as when using peggy), I'd like the final output map file to make use of map files declared by imported files. For example, if I run:
```bash
npx peggy --format es --output src/grammar.mjs --source-map src/grammar.mjs.map src/grammar.pegjs
# generates src/grammar.mjs and src/grammar.mjs.map
# src/grammar.mjs ends with `//# sourceMappingURL=grammar.mjs.map`
# src/index.mjs has `import { parse } from "src/grammar.mjs";`
npx microbundle src/index.mjs --compress=false --strict=true --sourcemap=true
```
I'd expect the resultant sourcemap to contain a reference to `../src/grammar.pegjs". Instead, it contains a reference to "../src/grammar.mjs".
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.