-
Notifications
You must be signed in to change notification settings - Fork 66
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
npm package is fatter than before #95
Comments
Unfortunately that is too much for us to maintain right now. It's also much harder for people to keep plugins in sync with compiler versions for this strategy. We knew that combining repos would increase the size of the package, but this is after all a build tool and rarely used in production. The benefits of being able to switch between platforms with an single option far outweigh the size constraints. |
understood. is there anywhere that a pre-built if not, i'll just maintain https://github.com/domvm/closure-compiler-js-prebuilt manually. |
Let me talk to the team about adding the prebuilt jscomp.js and native binaries to github release. |
awesome, thank you. |
hey @ChadKillingsworth,
i try to keep my
node_modules
weight as small as possible, and have noticed thatgoogle-closure-compiler
is much heavier than the previousgoogle-closure-compiler-js
. i do see that it has facilities for detecting what version to run behind the scenes (native, java or js) and spends some time potentially downloading those. however, if i explicitly want the js version, then all i technically need is the compiler itself (jscomp.js
) which is a mere 3.2MB single file. ideally, my build script would simply download & require this file (is it hosted anywhere?) without any additional npm dependency bloat.below is a screenshot of
node_modules
stats withgoogle-closure-compiler-js
(left) and the currentgoogle-closure-compiler
(right). if i just grabbed the singlejscomp.js
file myself, the result would be about 13MB smaller than even the former.do you have any advice?
thanks!
The text was updated successfully, but these errors were encountered: