Skip to content

Conversation

@timostamm
Copy link
Member

No description provided.

Signed-off-by: Timo Stamm <ts@timostamm.de>
Comment on lines +7 to +8
"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",
Copy link
Member Author

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.

@timostamm timostamm requested a review from smaye81 August 4, 2025 16:55
@timostamm timostamm merged commit d0b0dad into sayers/deps_aug_25 Aug 4, 2025
6 checks passed
@timostamm timostamm deleted the tstamm/Fix-parcel-bundle-size-report branch August 4, 2025 16:57
Copy link

@Yaheo Yaheo left a 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",
Copy link

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 |
Copy link

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 |

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.

3 participants