Closed jclem closed 9 years ago
issue with ember-cli add ons. WIP solution: https://github.com/ember-cli/ember-cli/pull/3166
Yeah, just saw that (https://github.com/ember-cli/ember-cli/issues/2354). Bummer.
@stefanpenner BTW, updating the readme with this info might be useful. I spent about 20 minutes thinking I was doing something wrong before I opened this.
@jclem its possible, but a-bit tricky. I have this working in my app, by overriding compileAddon in my add-on.
Please note, this is clearly shitty and pretty well unsupported, hence @lukemelia's work to make this work correctly with-out gotchas
Something like allows my to "make it work":
Thanks, @stefanpenner I'll try that out in the meantime.
Thanks, @stefanpenner I'll try that out in the meantime.
you do so at your own risk ;)
@lukemelia's work will allow deeply nested add ons to correctly attach their own filters and transpilers. It will be nice :)
That PR is getting close. @jclem if you want to help out, you could help with one of the outstanding tasks in the checklist.
@lukemelia I've never looked into Ember CLI's internals at all, actually :\ I'll take a look at it if I have some time. If not, I'm perfectly happy being patient :)
Can anybody confirm this is still pending as of 0.2.0?
@aceofspades - using babel in an addon works properly under ember-cli 0.2.0
@rwjblue Thanks for confirming, oddly modules in addon are definitely not getting transpiled. Assuming it should be automatic w/default config... Will dig further.
Modules don't get compiled with babel we use Esperanto for thst
@stefanpenner Are you saying something different happens for addons? I'm finding the various steps and recent changes confusing, not sure how up to date the docs are
@stefanpenner Are you saying something different happens for addons? I'm finding the various steps and recent changes confusing, not sure how up to date the docs are
nope, everything should be the same. babel handles es syntax except for modules, esperanto handles modules
@stefanpenner Just created an issue per fail https://github.com/ember-cli/ember-cli/issues/3556
With a new add-on generated from Ember CLI v0.1.12, simply running
npm install --save-dev ember-cli-6to5
as the readme states does not run the add-on code through 6to5. Is there an extra step for Ember CLI add-ons?