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

24 lines
567 B
JavaScript

var _classCallCheck = require("@babel/runtime/helpers/classCallCheck.js");
var _possibleConstructorReturn = require("@babel/runtime/helpers/possibleConstructorReturn.js");
var _getPrototypeOf = require("@babel/runtime/helpers/getPrototypeOf.js");
var _inherits = require("@babel/runtime/helpers/inherits.js");
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);