Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create bundle size analysis report on build #817

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Snurppa
Copy link

@Snurppa Snurppa commented Aug 11, 2023

I think there is room for improvements in distribution bundle size, as zxing is currently distributed directly here as UMD.
We could possibly be in a better situation if we could use @zxing/library which is released as ESM modules nowadays.

As a helper for that possible endeavor this webpack-bundle-analyzer
plugin creates a static HTML page to dist/report.html during build.

Screenshot of the HTML view:
Screenshot 2023-08-11 at 10 06 13

I think there is room for improvements in distribution bundle size,
as zxing is currently distributed directly here as UMD.
We could possible be in better situation if we could use @zxing/library
 which is released as ESM modules nowadays.

As a helper for that possible endeavour this [webpack-bundle-analyzer](https://www.npmjs.com/package/webpack-bundle-analyzer)
 plugin creates a static HTML page to dist/report.html during build.
@Snurppa Snurppa force-pushed the feature/webpack-bundle-analyzer branch from 1a54acc to a64ebb1 Compare August 11, 2023 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant