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

Expose a public mechanism to transpile a tree. #126

merged 2 commits into from Mar 22, 2017


None yet
2 participants
Copy link

rwjblue commented Mar 22, 2017

Addons that depend on ember-cli-babel for their own transpilation, but also need to transpile other libs (from ES6 to whatever the project targets) can now use something like:

let babelAddon = this.addons.find(addon => === 'ember-cli-babel');
let transpiled = babelAddon.transpileTree(someTreeThatNeedsTranspiling);

This avoids having to encode the specific concepts of project.targets amongst every addon...

rwjblue added some commits Mar 22, 2017

@rwjblue rwjblue force-pushed the rwjblue:expose-helper-for-transpiling branch from 8966b8b to 2cdf16f Mar 22, 2017

@rwjblue rwjblue merged commit 513e9d1 into babel:master Mar 22, 2017

2 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
continuous-integration/travis-ci/pr The Travis CI build passed

@rwjblue rwjblue deleted the rwjblue:expose-helper-for-transpiling branch Mar 22, 2017

@Turbo87 Turbo87 added the enhancement label Oct 27, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment