mondaychen / devtools-ignore-webpack-plugin

A Webpack plugin to ignore-list part of sourcemap in Chrome DevTools
MIT License
7 stars 1 forks source link

add potentialSourceMapExtension option #5

Closed broksonic21 closed 6 months ago

broksonic21 commented 6 months ago

Fixes https://github.com/mondaychen/devtools-ignore-webpack-plugin/issues/4 - adding a function/option to allow extension override (and sicne function, can use advanced logic)

Went with a function vs a list of extensions to match the other option

Open to alternate namings: went with potentialSourceMapExtension but called it out as rarely being needed

Note: I ran npm run format which modified the README.md in a few spots for consistency after I edited it.

mondaychen commented 6 months ago

How about isSourceMapAsset(name)?

broksonic21 commented 6 months ago

How about isSourceMapAsset(name)?

I like it - updated!

mondaychen commented 6 months ago

Love it. Thanks!

mondaychen commented 6 months ago

Released as 0.1.2 Please let me know if you see anything not working as expected!