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

Refactor to work when before babel-plugin-transform-es2015-template-literals. #21

Merged
merged 4 commits into from
Mar 11, 2017

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Mar 11, 2017

Prior to this change, when babel-plugin-transform-es2015-template-literals was present in the plugins array its TaggedTemplateExpression visitor was always ran prior to this plugins Identifier plugin (because the TaggedTemplateExpression is "seen" before the Identifier).

Since the babel-plugin-transform-es2015-template-literals plugin then transforms the tagged template literal into a custom transpiled version (for use in runtime) the babel-plugin-htmlbars-inline-precompile plugin never functioned properly.

The refactor also seems to simplify (IMO) and make this a bit easier to reason about.


It may be easier to review this as independent commits (the first 3 are just setting up our testing mechanisms).

…iterals.

Prior to this change, when `babel-plugin-transform-es2015-template-literals`
was present in the `plugins` array its `TaggedTemplateExpression` visitor was
always ran prior to this plugins `Identifier` plugin (because the
`TaggedTemplateExpression` is "seen" before the `Identifier`).

Since the `babel-plugin-transform-es2015-template-literals` plugin then transforms
the tagged template literal into a custom transpiled version (for use in runtime)
the `babel-plugin-htmlbars-inline-precompile` plugin never functioned properly.

The refactor also seems to simplify (IMO) and make this a bit easier to reason about.
@rwjblue rwjblue merged commit f5fa089 into ember-cli:master Mar 11, 2017
@rwjblue rwjblue deleted the interop-with-transpile-plugin branch March 11, 2017 19:42
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

1 participant