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:
committed by
Nicolò Ribaudo
parent
c9a68984d6
commit
d3a37b5d08
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user