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.
This commit is contained in:
shimataro
2019-12-06 21:30:23 +09:00
committed by Nicolò Ribaudo
parent c9a68984d6
commit d3a37b5d08
193 changed files with 4547 additions and 4548 deletions

View File

@@ -1,5 +1,5 @@
import _Array$from from "../../core-js/array/from";
import _isIterable from "../../core-js/is-iterable";
import _Array$from from "../../core-js/array/from.js";
import _isIterable from "../../core-js/is-iterable.js";
export default function _iterableToArray(iter) {
if (_isIterable(Object(iter)) || Object.prototype.toString.call(iter) === "[object Arguments]") return _Array$from(iter);
}

View File

@@ -1,6 +1,6 @@
var _Array$from = require("../core-js/array/from");
var _Array$from = require("../core-js/array/from.js");
var _isIterable = require("../core-js/is-iterable");
var _isIterable = require("../core-js/is-iterable.js");
function _iterableToArray(iter) {
if (_isIterable(Object(iter)) || Object.prototype.toString.call(iter) === "[object Arguments]") return _Array$from(iter);