-
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,9 @@ | |
| "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 commentThe reason will be displayed to describe this comment to others. Learn more. Build |
||
| "build": "npm run build:js && npm run build:ts", | ||
| "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", | ||
|
Comment on lines
+7
to
+8
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
| "test": "npm run test:js && npm run test:ts", | ||
| "test:js": "node dist/js/js.cf4251ac.js", | ||
| "test:ts": "node dist/ts/ts.dc635180.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 |