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,6 @@
{
"plugins": [
["proposal-class-properties", { "loose": true }, "name 1"],
["proposal-class-properties", { "loose": false }, "name 2"]
]
}

View File

@@ -0,0 +1,6 @@
class A {
constructor() {
this.foo = void 0;
}
}

View File

@@ -0,0 +1,3 @@
import runner from "@babel/helper-plugin-test-runner";
runner(__dirname);