Skip to content
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

Transpile static js before minification #418

Merged
merged 2 commits into from
Mar 24, 2017
Merged

Conversation

matteofigus
Copy link
Member

Fixes #409

Quick note, I think we discussed about using babili, but after having a chat with @nickbalestra and making a test, I decided to still use uglify, but with babel on top.

With a test I made (using moment.js), babel+uglify => ~30KB VS babel+babili => ~45KB - so it turns out es5 + uglify is still more effective. We obviously may revisit in the future if makes sense.

Copy link
Contributor

@nickbalestra nickbalestra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@matteofigus matteofigus merged commit 3ab2427 into master Mar 24, 2017
@matteofigus matteofigus deleted the transpile-static-js branch March 24, 2017 10:51
@char1e5
Copy link
Collaborator

char1e5 commented Mar 24, 2017

@matteofigus @nickbalestra This version 0.36.12 breaks our widget static bundle.
We still stuck in early es5. https://github.com/opentable/reservation-widget
screen shot 2017-03-24 at 11 39 11 am

can we make transpile is optional?

@matteofigus
Copy link
Member Author

@char1e5 yes, while we fix it, oc.minify = true on the package.json
https://github.com/opentable/oc/wiki/package.json-structure

matteofigus added a commit that referenced this pull request Mar 24, 2017
@matteofigus matteofigus mentioned this pull request Mar 24, 2017
matteofigus added a commit that referenced this pull request Mar 24, 2017
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