Make @babel/plugin-class-features a normal helper package (#9083)

* Make @babel/plugin-class-features a normal helper package

This effectively disallows using it directly.

* Rename helper

* Style

* Don't add prefix to plugin name

* Move private methods plugin
This commit is contained in:
Nicolò Ribaudo
2018-11-29 16:42:45 +01:00
committed by GitHub
parent c4d6f6dcce
commit 4e28459a2f
16 changed files with 33 additions and 79 deletions

View File

@@ -0,0 +1,3 @@
export function hasDecorators(path) {
return !!(path.node.decorators && path.node.decorators.length);
}