This repository was archived by the owner on Aug 4, 2021. It is now read-only.
This repository was archived by the owner on Aug 4, 2021. It is now read-only.
PreflightCheck Error #267
Closed
Description
The code below emitted a error, because transpiled code with babel had no matching condition
if (check.match(/\/helpers\/(esm\/)?inherits/)) helpers = RUNTIME;
else if (~check.indexOf('function _inherits')) helpers = INLINE;
else if (~check.indexOf('babelHelpers')) helpers = EXTERNAL;
else {
ctx.error(UNEXPECTED_ERROR);
}
babel version: 7.0.0-beta.47
the output code was
import _classCallCheck from "/path/to/node_modules/@babel/runtime/helpers/builtin/es6/classCallCheck";
import _inherits from "/path/to/node_modules/@babel/runtime/helpers/builtin/es6/inherits";
import _possibleConstructorReturn from "/path/to/node_modules/@babel/runtime/helpers/builtin/es6/possibleConstructorReturn";
import _getPrototypeOf from "/path/to/node_modules/@babel/runtime/helpers/builtin/es6/getPrototypeOf";
var Foo =
/*#__PURE__*/
function (_Bar) {
function Foo() {
_classCallCheck(this, Foo);
return _possibleConstructorReturn(this, _getPrototypeOf(Foo).apply(this, arguments));
}
_inherits(Foo, _Bar);
return Foo;
}(Bar);
;
export default Foo;
I tried babel 7.1.2, also got error
Metadata
Metadata
Assignees
Labels
No labels