-
Notifications
You must be signed in to change notification settings - Fork 28
Fix parcel bundle size report #2852
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
Fix parcel bundle size report #2852
Conversation
Signed-off-by: Timo Stamm <ts@timostamm.de>
| "build:js": "parcel build --log-level error --no-cache --no-content-hash --target=js", | ||
| "build:ts": "parcel build --log-level error --no-cache --no-content-hash --target=ts", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have to run parcel twice, so that it produces two separate and independent outputs. Otherwise, it still generates imports, and we didn't account for those imports when summing up the size.
Yaheo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
M
| "scripts": { | ||
| "pregenerate": "rm -rf dist", | ||
| "generate": "buf generate ../proto --template ../buf.gen.yaml", | ||
| "build": "parcel build --log-level error --no-cache --no-content-hash", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Build
| |------|-----:|----------| | ||
| | esbuild (js) | 135,295 bytes | dist/js/index.js | | ||
| | esbuild (ts) | 135,295 bytes | dist/ts/index.js | | ||
| | parcel (js) | 1,841 bytes | dist/js/js.cf4251ac.js | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| parcel (ts) | 1,845 bytes | dist/ts/ts.dc635180.js |
No description provided.