Skip to content

Commit fe5a35e

Browse files
committed
docs: add a note about supported decorator stage
1 parent 7f785c9 commit fe5a35e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
If you use Babel, [babel-plugin-transform-decorators-legacy](https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy) is needed.
1111
If you use TypeScript, enable `--experimentalDecorators` and `--allowSyntheticDefaultImports` flag.
1212

13+
> It does not support the stage 2 decorators yet since mainstream transpilers still tranpile to the old decorators.
14+
1315
Note:
1416

1517
1. `methods` can be declared directly as class member methods.

0 commit comments

Comments
 (0)