-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
ARROW-12393: [JS] Use closure compiler for all UMD targets #10281
Conversation
Thanks for opening a pull request! If this is not a minor PR. Could you open an issue for this pull request on JIRA? https://issues.apache.org/jira/browse/ARROW Opening JIRAs ahead of time contributes to the Openness of the Apache Arrow project. Then could you also rename pull request title in the following format?
or
See also: |
@@ -2,10 +2,10 @@ | |||
{ | |||
"extends": "./tsconfig.base.json", | |||
"compilerOptions": { | |||
"target": "ES2015", |
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.
@trxcllnt why was this es2015? The output was always only used for closure so all .cls.json
files should be identical, no?
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.
Apparently the documentation for this file was incorrect.
Ahh, looks like the build system tricked me.
We should use closure for everything. |
.cls config also for terser and not just closure.
|
Co-authored-by: P42 <72252241+p42-ai[bot]@users.noreply.github.com> Co-authored-by: Dominik Moritz <[email protected]>
I updated the pull request to use closure for every target. |
Closure compiler creates smaller bundles. This branch ``` targets/es5/umd/: 695k -I Arrow.es5.min.js.map 55k -I Arrow.externs.js 254k -I Arrow.js targets/es2015/umd/: 534k -I Arrow.es2015.min.js.map 55k -I Arrow.externs.js 180k -I Arrow.js targets/esnext/umd/: 512k -I Arrow.esnext.min.js.map 55k -I Arrow.externs.js 172k -I Arrow.js ``` Master (which uses closure only for es5 targets and terser otherwise) ``` targets/es5/umd/: 694k -I Arrow.es5.min.js.map 55k -I Arrow.externs.js 253k -I Arrow.js targets/es2015/umd/: 1.2M -I Arrow.es2015.min.js.map 233k -I Arrow.js targets/esnext/umd/: 1.1M -I Arrow.esnext.min.js.map 225k -I Arrow.js ``` Closes apache#10281 from domoritz/dom/closure-everything-but-es5 Lead-authored-by: Dominik Moritz <[email protected]> Co-authored-by: p42-ai[bot] <72252241+p42-ai[bot]@users.noreply.github.com> Signed-off-by: Dominik Moritz <[email protected]>
Closure compiler creates smaller bundles.
This branch
Master (which uses closure only for es5 targets and terser otherwise)