Skip to content

Commit

Permalink
fix: fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson committed Mar 15, 2022
1 parent e38b1d4 commit 6a96e20
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/@lwc/babel-plugin-component/src/decorators/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,9 @@ function decorators({ types: t }) {
}

if (node.superClass === null) {
// Components *must* extend from either LightningElement or some other superclass (e.g. a mixin).
// We can skip classes without a superclass to avoid adding unnecessary registerDecorators() calls
// Any class exposing a field *must* extend either LightningElement or some other superclass.
// Even in the case of superclasses and mixins that expose fields, those must extend something as well.
// So we can skip classes without a superclass to avoid adding unnecessary registerDecorators calls.
return;
}

Expand Down

0 comments on commit 6a96e20

Please sign in to comment.