Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request { include, exclude } options applied to sourcemap sources #106

Open
mcshaz opened this issue Apr 24, 2020 · 1 comment
Open

Comments

@mcshaz
Copy link

mcshaz commented Apr 24, 2020

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 mcshaz changed the title Feature request { include, exclude } options applied to sourcemap Feature request { include, exclude } options applied to sourcemap URL Apr 24, 2020
@mcshaz mcshaz changed the title Feature request { include, exclude } options applied to sourcemap URL Feature request { include, exclude } options applied to sourcemap sources Apr 24, 2020
@GideonMax
Copy link

@mcshaz I'm facing the same issue, may you please elaborate on the method using readfile?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants