Split @babel/runtime into two separate runtime modules.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"plugins": [["transform-runtime", { "corejs": 2, "useESModules": true }], "transform-classes"]
|
||||
}
|
||||
23
packages/babel-plugin-transform-runtime/test/fixtures/use-options/corejs-useES6Modules/output.js
vendored
Normal file
23
packages/babel-plugin-transform-runtime/test/fixtures/use-options/corejs-useES6Modules/output.js
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
var _classCallCheck = require("@babel/runtime-corejs2/helpers/esm/classCallCheck");
|
||||
|
||||
var _possibleConstructorReturn = require("@babel/runtime-corejs2/helpers/esm/possibleConstructorReturn");
|
||||
|
||||
var _getPrototypeOf = require("@babel/runtime-corejs2/helpers/esm/getPrototypeOf");
|
||||
|
||||
var _inherits = require("@babel/runtime-corejs2/helpers/esm/inherits");
|
||||
|
||||
let Foo =
|
||||
/*#__PURE__*/
|
||||
function (_Bar) {
|
||||
"use strict";
|
||||
|
||||
_inherits(Foo, _Bar);
|
||||
|
||||
function Foo() {
|
||||
_classCallCheck(this, Foo);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(Foo).apply(this, arguments));
|
||||
}
|
||||
|
||||
return Foo;
|
||||
}(Bar);
|
||||
3
packages/babel-plugin-transform-runtime/test/fixtures/use-options/corejs/options.json
vendored
Normal file
3
packages/babel-plugin-transform-runtime/test/fixtures/use-options/corejs/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"plugins": [["transform-runtime", { "corejs": 2 }], "transform-classes"]
|
||||
}
|
||||
23
packages/babel-plugin-transform-runtime/test/fixtures/use-options/corejs/output.js
vendored
Normal file
23
packages/babel-plugin-transform-runtime/test/fixtures/use-options/corejs/output.js
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
var _classCallCheck = require("@babel/runtime-corejs2/helpers/classCallCheck");
|
||||
|
||||
var _possibleConstructorReturn = require("@babel/runtime-corejs2/helpers/possibleConstructorReturn");
|
||||
|
||||
var _getPrototypeOf = require("@babel/runtime-corejs2/helpers/getPrototypeOf");
|
||||
|
||||
var _inherits = require("@babel/runtime-corejs2/helpers/inherits");
|
||||
|
||||
let Foo =
|
||||
/*#__PURE__*/
|
||||
function (_Bar) {
|
||||
"use strict";
|
||||
|
||||
_inherits(Foo, _Bar);
|
||||
|
||||
function Foo() {
|
||||
_classCallCheck(this, Foo);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(Foo).apply(this, arguments));
|
||||
}
|
||||
|
||||
return Foo;
|
||||
}(Bar);
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"plugins": [["transform-runtime", { "corejsVersion": 2, "useESModules": true }], "transform-classes"]
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
var _classCallCheck = require("@babel/runtime/helpers/es6/classCallCheck");
|
||||
|
||||
var _possibleConstructorReturn = require("@babel/runtime/helpers/es6/possibleConstructorReturn");
|
||||
|
||||
var _getPrototypeOf = require("@babel/runtime/helpers/es6/getPrototypeOf");
|
||||
|
||||
var _inherits = require("@babel/runtime/helpers/es6/inherits");
|
||||
|
||||
let Foo =
|
||||
/*#__PURE__*/
|
||||
function (_Bar) {
|
||||
"use strict";
|
||||
|
||||
_inherits(Foo, _Bar);
|
||||
|
||||
function Foo() {
|
||||
_classCallCheck(this, Foo);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(Foo).apply(this, arguments));
|
||||
}
|
||||
|
||||
return Foo;
|
||||
}(Bar);
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"plugins": [["transform-runtime", { "corejsVersion": 2 }], "transform-classes"]
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
var _classCallCheck = require("@babel/runtime/helpers/classCallCheck");
|
||||
|
||||
var _possibleConstructorReturn = require("@babel/runtime/helpers/possibleConstructorReturn");
|
||||
|
||||
var _getPrototypeOf = require("@babel/runtime/helpers/getPrototypeOf");
|
||||
|
||||
var _inherits = require("@babel/runtime/helpers/inherits");
|
||||
|
||||
let Foo =
|
||||
/*#__PURE__*/
|
||||
function (_Bar) {
|
||||
"use strict";
|
||||
|
||||
_inherits(Foo, _Bar);
|
||||
|
||||
function Foo() {
|
||||
_classCallCheck(this, Foo);
|
||||
|
||||
return _possibleConstructorReturn(this, _getPrototypeOf(Foo).apply(this, arguments));
|
||||
}
|
||||
|
||||
return Foo;
|
||||
}(Bar);
|
||||
@@ -1,10 +1,10 @@
|
||||
var _classCallCheck = require("@babel/runtime/helpers/es6/builtin/classCallCheck");
|
||||
var _classCallCheck = require("@babel/runtime/helpers/esm/classCallCheck");
|
||||
|
||||
var _possibleConstructorReturn = require("@babel/runtime/helpers/es6/builtin/possibleConstructorReturn");
|
||||
var _possibleConstructorReturn = require("@babel/runtime/helpers/esm/possibleConstructorReturn");
|
||||
|
||||
var _getPrototypeOf = require("@babel/runtime/helpers/es6/builtin/getPrototypeOf");
|
||||
var _getPrototypeOf = require("@babel/runtime/helpers/esm/getPrototypeOf");
|
||||
|
||||
var _inherits = require("@babel/runtime/helpers/es6/builtin/inherits");
|
||||
var _inherits = require("@babel/runtime/helpers/esm/inherits");
|
||||
|
||||
let Foo =
|
||||
/*#__PURE__*/
|
||||
|
||||
Reference in New Issue
Block a user