zxing-js / library

Multi-format 1D/2D barcode image processing library, usable in JavaScript ecosystem.
https://zxing-js.github.io/library/
Apache License 2.0
2.52k stars 547 forks source link

Please kindly remove the source maps when publishing to the NPM registry #443

Open tmcdos opened 3 years ago

tmcdos commented 3 years ago

First of all - thank you for your hard work, guys! Really appreciated!

Is your feature request related to a problem? Please describe. Every time when I do npm install it downloads 17Mb from the NPM registry for @zxing/library - because it contains source map for every single JavaScript file there. Without those MAP files the archive becomes 9Mb.

Describe the solution you'd like Would you be so kind and remove the MAP files from the distributed package? When I include the library in my project - Webpack will generate new source maps (if I need them at all).

Describe alternatives you've considered I can write a shell script which will find and delete all MAP files after npm install - but it feels a workaround rather than a clean solution.

github-actions[bot] commented 7 months ago

Stale issue message