html5-qrcode icon indicating copy to clipboard operation
html5-qrcode copied to clipboard

[Feature Request] Minify the zxing-js.umd.js

Open nygmaaa opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe. When I analyze the bundle size of my project, I find that the html5-qrcode library is a huge block with zxing-js.umd.js, the zxing-js.umd.js size is 1.05 MB, The file takes 1/5 of my app bundle size. image

Describe the solution you'd like Can you help minify the zxing-js.umd.js to zxing-js.umd.min.js and require the minified one instead? The picture below is the result I used https://minify-js.com/ to minify the zxing-js.umd.js, we can save 785.36 kB after minifying. image

Describe alternatives you've considered

Additional context

nygmaaa avatar Sep 14 '23 03:09 nygmaaa

Could we get an ESM version of zxing-js too, please? That will surely help with the bundle sizes.

Robula avatar Mar 08 '24 09:03 Robula

you can make a PR if you wish

ROBERT-MCDOWELL avatar Mar 08 '24 12:03 ROBERT-MCDOWELL