question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update README for ember-cli-babel@6

See original GitHub issue

High 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 to babel-preset-env

New public API’s:

Plugin ordering:

  1. plugins in options.babel.plugins
  2. modules plugin if options['ember-cli-babel'].compileModules is true
  3. plugins from `babel-preset-env
  4. plugins in options.babel.postTransformPlugins

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
rwjbluecommented, Jul 5, 2017

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…

0reactions
buschtoenscommented, May 15, 2017

When you turn on the custom treeForAddon hook, the final vendor.js looks a bit different, resulting in this error:

Error: Could not find module `foo-addon/components/foo-component/component` imported from `in-repo-addon-demo/components/foo-component`
    at missingModule (loader.js:232)
    at findModule (loader.js:243)
    at Module.findDeps (loader.js:173)
    at findModule (loader.js:247)
    at requireModule (loader.js:26)
    at Class._extractDefaultExport (index.js:392)
    at Class.resolveOther (index.js:108)
    at Class.superWrapper [as resolveOther] (ember.debug.js:42849)
    at Class.resolve (ember.debug.js:7201)
    at resolve (ember.debug.js:4590)

Here’s a diff: https://gist.github.com/buschtoens/20a8a96b9c5ac07b73db0ef96abf08e3/revisions

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found