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
Replace Esperanto With Babel #4764
Conversation
:dances: |
3c91205
to
dab7e04
Compare
Just to make sure I understand properly, |
@rwjblue yes |
I believe that |
modules: 'amdStrict', | ||
moduleIds: true, | ||
exportModuleMetadata: true, | ||
sourceMaps: !isProduction, |
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.
This should be based on options.sourcmaps.enabled
(which is defaulted to !isProduction
below but can be enabled and disabled independently of a production build).
I am very excited about this! Thanks for spearheading @chadhietala! |
From what i gathered you have to set |
fb9e93d
to
2f069c8
Compare
4ceb795
to
dfe8de7
Compare
No idea how any tests are passing on node 0.10.0 due to the fact broccoli-sri-hash uses a native promise. |
Update: Need to do further investigation as the trees created in |
This completely removes esperanto right? So module transpilation is done using Babel? Maybe update the PR title to reflect that? Also: very awesome. |
@joostdevries - It only removes the usage of Esperanto if the project has @stefanpenner / @chadhietala - I believe that master is ultimately going to become ember-cli 2.0.0, I think we should change to requiring |
@rwjblue yes agreed |
This PR actually drops esperanto all together and uses babel for the transpilation if they do not have |
Nice! Must have been added after I reviewed the diff initially... If we intend to support apps without ember-cli-babel, then we need some slow acceptance tests to confirm that works. I personally think that we should just require that ember-cli@2.0.0 apps have ember-cli-babel. If that is what we intend to do, we should add a deprecation on top of 1.13.8 and release as 1.13.9 to make it clear that this will be removed in 2.0.0. |
I'm up for making it required and ember-cli will just have some sane defaults for babel. I'm currently dealing with the fact that some addons were relying on the fact that in the post process hook they had un-processed files. In our app this is ember-browserify. Will probably need to PR and fix this as modules will be completely transpiled once they enter this hook. |
a7eb6a8
to
f7c5480
Compare
So I verified that we will save ~5sec on a rebuild in a pathological case. I would have expected more but could be our app ¯_(ツ)_/¯ However these Babel numbers look really strange. @rwjblue and @stefanpenner not sure what is going on with CI. Feel free to pull this locally and test. |
f7c5480
to
5994379
Compare
5994379
to
cc80e8e
Compare
d07f834
to
025d1f5
Compare
20% - 25% win in our big app – and its test suite passes. |
rebased and stuff here: #4792 |
so is the assumption of this PR that ember-cli master is now required to use ember-cli-babel? It seems taking out ember-cli-babel will make an app no longer work properly due to
|
It bundles its own. but that output looks like the wrong output, @chadhietala can you take a look? |
@stefanpenner I can take a look, but I had been using the master branch locally for a while with no issues. |
This makes babel required. The next step after this lands is to figure out what
Class
is referring to come up with a better concat strategy as it appears to be an issue.Final
Before
After