privatenumber / esbuild-loader

💠 Speed up your Webpack with esbuild ⚡️
MIT License
3.56k stars 108 forks source link

sourceMappingURL getting removed by minifier #329

Closed Rishi500 closed 1 year ago

Rishi500 commented 1 year ago

Bug description

Issue: In webpack v4. sourceMappingURL has legal comment //# example: //# sourceMappingURL: xyz.chunk.js.map

As per esbuild docs, it does not consider //# as a legal comment hence it is getting removed during minification.

Minimal reproduction link

NA

Environment

this is not environment specific.

Can you contribute a fix?

privatenumber commented 1 year ago

Not really sure what you mean. Can you provide a minimal reproduction?

Happy to reopen once the bug is demonstrated.