Skip to content

Commit adeff25

Browse files
authored
Enable tree-shaking (#76)
1 parent a1ea8e6 commit adeff25

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/bench-codesize/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ minify the bundle, and compress it like a web server would usually do.
99

1010
| code generator | bundle size | minified | compressed |
1111
|-------------------|------------------------:|-----------------------:|-------------------:|
12-
| protobuf-es | 160,619 b | 86,421 b | 15,098 b |
12+
| protobuf-es | 72,457 b | 35,936 b | 9,393 b |
1313
| google-protobuf | 368,034 b | 270,748 b | 43,704 b |

packages/protobuf/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"url": "https://github.com/bufbuild/protobuf-es.git",
99
"directory": "packages/protobuf"
1010
},
11+
"sideEffects": false,
1112
"scripts": {
1213
"clean": "rm -rf ./dist/cjs/* ./dist/esm/* ./dist/types/*",
1314
"build": "npm run build:cjs && npm run build:esm+types",

0 commit comments

Comments
 (0)