shimataro d3a37b5d08 Add ".js" extension to injected polyfill imports (#10549)
* Node modules compatibility: add ".js" extension to imported polyfills

* Update fixtures

* add extensions on calling `addDefaultImport()`, not in the function.
2019-12-06 13:30:23 +01:00

19 lines
551 B
JavaScript

import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck.js";
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn.js";
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf.js";
import _inherits from "@babel/runtime/helpers/esm/inherits.js";
let Foo =
/*#__PURE__*/
function (_Bar) {
_inherits(Foo, _Bar);
function Foo() {
_classCallCheck(this, Foo);
return _possibleConstructorReturn(this, _getPrototypeOf(Foo).apply(this, arguments));
}
return Foo;
}(Bar);