isolated-externals-plugin
Advanced tools
Comparing version 2.0.0-webpack-5-integration.1 to 2.0.0-webpack-5-integration-7ba8dfb.1
@@ -54,2 +54,11 @@ "use strict"; | ||
}; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | ||
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { | ||
if (ar || !(i in from)) { | ||
if (!ar) ar = Array.prototype.slice.call(from, 0, i); | ||
ar[i] = from[i]; | ||
} | ||
} | ||
return to.concat(ar || Array.prototype.slice.call(from)); | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -72,4 +81,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
} | ||
var prevExternals = []; | ||
function loadExternal(context, url) { | ||
function loadExternal(context, url, previousDeps) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -79,3 +87,3 @@ var cachedExternal, processingPromise; | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, Promise.all(prevExternals)]; | ||
case 0: return [4 /*yield*/, Promise.all(previousDeps || [])]; | ||
case 1: | ||
@@ -85,3 +93,2 @@ _a.sent(); | ||
processingPromise = (0, processExternals_1.processExternal)(context, cachedExternal); | ||
prevExternals.push(processingPromise); | ||
return [2 /*return*/, processingPromise]; | ||
@@ -94,2 +101,3 @@ } | ||
var _this = this; | ||
var orderedDeps = []; | ||
var externalsContext = {}; | ||
@@ -100,3 +108,4 @@ return Object.entries(externalsInfo).reduce(function (extObj, _a) { | ||
return extObj; | ||
var externalLoad = loadExternal(externalsContext, url); | ||
var externalLoad = loadExternal(externalsContext, url, orderedDeps); | ||
orderedDeps = __spreadArray(__spreadArray([], __read(orderedDeps), false), [externalLoad], false); | ||
Object.defineProperty(extObj, globalName, { | ||
@@ -103,0 +112,0 @@ get: function () { return __awaiter(_this, void 0, void 0, function () { |
{ | ||
"name": "isolated-externals-plugin", | ||
"version": "2.0.0-webpack-5-integration.1", | ||
"version": "2.0.0-webpack-5-integration-7ba8dfb.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
44648
860
1