Skip to content

Commit

Permalink
Update ast-transform.js (#717)
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeart authored Feb 16, 2022
1 parent 7efce68 commit b4217e4
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions lib/ast-transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,19 +309,6 @@ function isAngleBrackedComponent(node) {
if (tagName === 'Input' || tagName === 'Textarea' || tagName === 'LinkTo') {
return false;
}
// https://github.com/emberjs/ember.js/pull/17146
// https://github.com/emberjs/ember.js/pull/17160
// https://github.com/glimmerjs/glimmer-vm/pull/892
// dunno how to detect in transformation time
if (node.attributes && node.attributes.length) {
// looks like ember can't handle ...attributes inside `let'ed` component.
let attrs = node.attributes.filter(
(attr) => attr.name === '...attributes'
);
if (attrs.length) {
return false;
}
}
if (tagName.indexOf('.') !== -1) {
return false;
}
Expand Down

0 comments on commit b4217e4

Please sign in to comment.