Skip to content

Commit

Permalink
Fix in-element assertion in Ember's transform-in-element
Browse files Browse the repository at this point in the history
Fixes #2
  • Loading branch information
simonihmig committed Aug 15, 2018
1 parent 0a00988 commit 7cfd896
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/in-element-transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ module.exports = class InElementTransform {
this.syntax.traverse(ast, {
BlockStatement(node) {
if (node.path.original === 'in-element') {
node.path.parts[0] = '-in-element';
node.path.original = '-in-element';
node.path.parts = ['-in-element'];
}
}
});
Expand Down

0 comments on commit 7cfd896

Please sign in to comment.