-
Notifications
You must be signed in to change notification settings - Fork 788
Closed
Description
As it stands, our npm package index.js
is 218KiB (which is being compiled by the closure compiler here).
With the Echo example echo.proto, that has about 7 message types, 1 service, 3 unary methods and 5 streaming methods:
- The Closure example final
compiled.js
compiled by the Closure compiler: 317KiB - The CommonJS example final
dist/main.js
compiled bywebpack
: 415KiB - The same CommonJS example compiled by
browserify
: 479KiB - The CommonJS example with
.d.ts
typings generated, and then compiled bywebpack
: 499KiB
I tried babel-minify
and uglify-js
on some of these JS files and the output are not any particularly smaller.
There should be some other things we can do to further minimize the compiled JS code size.
Reference: #79
R-omk, draffensperger, jjbubudi, basharal, mleonhard and 12 more
Metadata
Metadata
Assignees
Labels
No labels