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

Fix an issue with helpers where we re-export the default as a named export #69

Merged
merged 2 commits into from
Mar 13, 2018

Conversation

bantic
Copy link
Collaborator

@bantic bantic commented Mar 13, 2018

This fixes the issue described here: emberjs/ember.js#16361 (comment)

@bantic
Copy link
Collaborator Author

bantic commented Mar 13, 2018

I will add a follow-up PR soon to clean up this code and add more import { helper } statements to some of the fixtures.

@rwjblue rwjblue merged commit 956729c into ember-codemods:master Mar 13, 2018
@bantic
Copy link
Collaborator Author

bantic commented Mar 13, 2018

published in 0.8.0

@bantic bantic mentioned this pull request Mar 14, 2018
bantic added a commit to bantic/ember-rfc176-data that referenced this pull request Apr 2, 2018
This change allows the ember-modules-codemod to generate transformed helper files
that `import { helper as buildHelper }`. This brings it
into alignment with the ember-module-migrator's output.

The related change in the module migrator is here: ember-codemods/ember-module-migrator#69

Importing the helper as buildHelper allows the module migrator to `export const helper = buildHelper(...`,
which is necessary to avoid an issue where incorrect `export const helper = helper(...` code was being generated.

The issue that motived the helper->buildHelper change is: emberjs/ember.js#16361 (comment)
@bantic bantic deleted the fix-named-helper-exports branch April 2, 2018 21:35
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.

None yet

2 participants