rollup-plugin-sourcemaps
rollup-plugin-sourcemaps copied to clipboard
Feature request { include, exclude } options applied to sourcemap sources
The FilterPattern applied to include or exclude seem to have no bearing on the sourcemap files included or excluded (instead being applied to the .js files).
It would be ideal to apply these filters so that sourcemaps could be excluded if they fit a pattern.
At the moment this can be done with the readfile option and passing to fs.readFile only if the path fits a predicate, but applying the include/exclude filters would seem a little cleaner.
Thanks for the library and thanks for considering.
@mcshaz I'm facing the same issue, may you please elaborate on the method using readfile?