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

Use buildHelper as localName for Ember.Helper.helper #45

Merged
merged 1 commit into from
Apr 2, 2018

Conversation

bantic
Copy link
Contributor

@bantic bantic commented 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)

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)
@rwjblue rwjblue merged commit 2728fdb into ember-cli:master Apr 2, 2018
@bantic bantic deleted the use-build-helper-localname branch April 2, 2018 21:48
@rwjblue
Copy link
Member

rwjblue commented Apr 2, 2018

Thank you!

@bantic
Copy link
Contributor Author

bantic commented Apr 2, 2018

no problem!

I'll keep an eye on this and will issue a corresponding update PR to the codemod repo when this package gets a new release. (I'm happy to do the release myself if you want to add me)

bantic added a commit to bantic/ember-rfc176-data that referenced this pull request Apr 2, 2018
This was changed in ember-cli#45 but I forgot to update the README too.
@rwjblue rwjblue added the bug label Apr 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants