Add helpers: false option to babel-plugin-transform-runtime (#3603)
This commit is contained in:
committed by
Henry Zhu
parent
0ff1f089bb
commit
8d14f9f4d0
3
packages/babel-plugin-transform-runtime/test/fixtures/runtime/catch-all/options.json
vendored
Normal file
3
packages/babel-plugin-transform-runtime/test/fixtures/runtime/catch-all/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"plugins": ["transform-runtime", "transform-regenerator"]
|
||||
}
|
||||
3
packages/babel-plugin-transform-runtime/test/fixtures/runtime/full/options.json
vendored
Normal file
3
packages/babel-plugin-transform-runtime/test/fixtures/runtime/full/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"plugins": ["transform-runtime", "transform-regenerator"]
|
||||
}
|
||||
1
packages/babel-plugin-transform-runtime/test/fixtures/runtime/no-helpers/actual.js
vendored
Normal file
1
packages/babel-plugin-transform-runtime/test/fixtures/runtime/no-helpers/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
class Foo {}
|
||||
5
packages/babel-plugin-transform-runtime/test/fixtures/runtime/no-helpers/expected.js
vendored
Normal file
5
packages/babel-plugin-transform-runtime/test/fixtures/runtime/no-helpers/expected.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
|
||||
let Foo = function Foo() {
|
||||
_classCallCheck(this, Foo);
|
||||
};
|
||||
3
packages/babel-plugin-transform-runtime/test/fixtures/runtime/no-helpers/options.json
vendored
Normal file
3
packages/babel-plugin-transform-runtime/test/fixtures/runtime/no-helpers/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"plugins": [["transform-runtime", { "helpers": false }], "transform-es2015-classes"]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"plugins": ["transform-runtime", "transform-regenerator"]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"plugins": ["transform-runtime", "transform-regenerator"]
|
||||
}
|
||||
3
packages/babel-plugin-transform-runtime/test/fixtures/runtime/symbol-iterator/options.json
vendored
Normal file
3
packages/babel-plugin-transform-runtime/test/fixtures/runtime/symbol-iterator/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"plugins": ["transform-runtime", "transform-regenerator"]
|
||||
}
|
||||
Reference in New Issue
Block a user