-
Notifications
You must be signed in to change notification settings - Fork 6
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
fix: Allow the babel plugin to be registered for addons #85
Conversation
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.
I ran into TypeError: decorator is not a function
when using this in an addon, and was lucky to see this PR has already been raised - thanks @dcyriller!. Using this branch in my addon fixed this problem! 🎉
I think the change here is correct, and having enabled CI now - which is green - seems to confirm this. Although technically I have the privileges to merge, I would rather want someone else to have a 2nd pair of 👀 /cc @rwjblue
following this change I've started encountering #97 |
@void-mAlex I'm experiencing #97 as well. |
@NullVoxPopuli from the minimal digging I've done I think it might be a case where the app importing the addon has other dependencies that pull in older versions of 'ember-cli-babel' (and maybe related to #81 (comment)). |
hmm, that might be much harder to track down. we have a lot of deps |
0.1.4 should have been a 0.2.0 or 1.0.0 as this was a breaking change for addon authors. |
Does anyone have a fix for the |
I read #97 as an issue, where the app is using
Again, if the above is true, then I would disagree. If things break, then because people were accidentally relying on the buggy behavior before the latest release. But that's strictly speaking not a SemVer breaking change. (yes, I see that it can feel as such) |
Even after removing |
I was able to get this working in ember-flow by moving it to dependencies (addon with 3.28 ember-cli-update) |
Description
This PR would fix the case when
@cached
is used in an addon.When ember-cached-decorator-polyfill is used in an addon... Currently the babel polyfill is registered for the host app. So, adding the polyfill to the addon's package.json file doesn't allow the
@cached
transpilation to happen.This PR would allow the babel plugin to be registered for the addon instead.
Links
If merged, this PR would make emberjs/data#7599 possible.
It would fix concordnow/ember-aria-tabs#218.
It might fix (I'm not sure) #75 (comment).