Update README for ember-cli-babel@6
See original GitHub issueHigh Level items:
- We use
babel-preset-env
to control transpilation. - The
project.targets
property (which comes from config/targets.js`) is used to pass babel-preset-env’s list of targets. - All options added in
options.babel
are passed on tobabel-preset-env
New public API’s:
transpileTree
(from https://github.com/babel/ember-cli-babel/pull/126)isPluginRequired
(from https://github.com/babel/ember-cli-babel/commit/16ed3369658c296444fc6df6d5a9e8e8a560f111 and https://github.com/babel/ember-cli-babel/pull/117)- We allow
options.babel6
for backwards compat with older ember-cli versions (which were sharing the projects babel config fromember-cli-build.js
between both the app/addon itself and ember-cli’s internal transpilation)
Plugin ordering:
- plugins in
options.babel.plugins
- modules plugin if
options['ember-cli-babel'].compileModules
is true - plugins from `babel-preset-env
- plugins in
options.babel.postTransformPlugins
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Upgrading - Basic use - Ember CLI Guides
To upgrade an Ember app, use ember-cli-update . Installation instructions can be found here. Review the project README for the most up-to-date instructions...
Read more >ember-test-selectors | Yarn - Package Manager
Removes attributes starting with data-test- from HTML tags and component/helper invocations in your templates for production builds.
Read more >ember-cli-htmlbars-inline-precompile
Yes; Is the README filled out? ... ember-cli-babel · ember-cli-coffeescript ... Please upgrade to ember-cli-htmlbars@4.0.3 or higher.
Read more >How do I upgrade ember-cli-babel? - Stack Overflow
Open you Command Prompt and type ember install ember-cli-babel and press enter. If you have ...
Read more >Developers - Update README for ember-cli-babel@6 -
Update README for ember-cli-babel @6. ... The project.targets property (which comes from config/targets.js`) is used to pass babel-preset-env's list of ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://github.com/babel/ember-cli-babel/pull/154 did a significant pass to refactor the README. I believe the snippets have been simplified (and are now valid), and all of the options we support are documented.
Closing…
When you turn on the custom
treeForAddon
hook, the finalvendor.js
looks a bit different, resulting in this error:Here’s a diff: https://gist.github.com/buschtoens/20a8a96b9c5ac07b73db0ef96abf08e3/revisions