Skip to content
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

Remove babel transform plugin by default #30

Merged
merged 1 commit into from
Aug 6, 2019
Merged

Remove babel transform plugin by default #30

merged 1 commit into from
Aug 6, 2019

Conversation

achambers
Copy link
Collaborator

The babel transform that replaces the variation JS helper is problematic. It mostly works, however, detecting whether the helper is used inside a computed property is buggy and I'm yet to get it to a point that I feel is solid to be used by default in this addon.

Also, this helper is essentially syntactic sugar and does feel like something that should be an "opt in".

Therefore, this commit removes the babel transform from being added by default and, instead, gives users instructions on how they can include it in their app if they wish to use it.

This is a breaking change.

@achambers achambers self-assigned this Aug 2, 2019
@achambers achambers requested a review from patcoll August 2, 2019 11:04
The babel transform that replaces the `variation` JS helper is
problematic. It mostly works, however, detecting whether the helper is
used inside a computed property is buggy and I'm yet to get it to a
point that I feel is solid to be used by default in this addon.

Also, this helper is essentially syntactic sugar and does feel like
something that should be an "opt in".

Therefore, this commit removes the babel transform from being added by
default and, instead, gives users instructions on how they can include
it in their app if they wish to use it.

This is a breaking change.
Copy link
Collaborator

@patcoll patcoll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, tests still pass. :shipit:

@achambers achambers merged commit 14c5c74 into adopted-ember-addons:master Aug 6, 2019
@achambers achambers deleted the make-babel-transform-optional branch August 6, 2019 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants