Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(compiler): adds more compiler checks
- Component must be the only decorator - Component must be exported - Component must the only export of a module - Component can not inherit from a base class
- Loading branch information
1 parent
2865fae
commit 6fa63fd
Showing
2 changed files
with
73 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Why this? Adding a decorator to the class seems to work fine, and since inheritance doesn't work. forbidding decorators is basically forcing to copy/paste code all over the components