schoero / swissqrbill

Swiss QR Bill generation in Node.js and browsers
MIT License
155 stars 29 forks source link

SourceMapping included in minified Bundle #406

Closed Juggern4ut closed 1 year ago

Juggern4ut commented 1 year ago

If you include the library directly as stated in the README like this:

<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/swissqrbill/lib/browser/bundle/index.js"></script>

You will also load the whole source mapping since it is included in this file. This blows up the file size immensely and is not really needed in a productive environment. I would suggest that the source mapping is removed from this file and made available in another file. This decreses the file size by more than 4'000 kB (over 80%).

Other than that, this is a great project. Thank you for your work.

schoero commented 1 year ago

Thank you for noticing and reporting. I have published a new version without the sourcemaps.