isolated-externals-plugin
Advanced tools
Comparing version 2.1.0-refactor-externals-ee5e344.3 to 2.1.0-refactor-externals-ee5e344.4
@@ -46,3 +46,2 @@ "use strict"; | ||
var path_1 = __importDefault(require("path")); | ||
var OrigModuleDependency = webpack_1.dependencies.ModuleDependency; | ||
var configSchema = { | ||
@@ -226,6 +225,7 @@ type: 'object', | ||
var getTargetEntry = function (dep) { | ||
var _a; | ||
if (!dep) { | ||
return; | ||
} | ||
var _a = dep.rawRequest, rawRequest = _a === void 0 ? '' : _a; | ||
var _b = dep.rawRequest, rawRequest = _b === void 0 ? '' : _b; | ||
var entryName = getEntryName(rawRequest); | ||
@@ -236,7 +236,5 @@ if (entryName) { | ||
var connections = Array.from(compilation.moduleGraph.getIncomingConnections(dep)); | ||
return connections | ||
.map(function (conn) { | ||
return getTargetEntry((_a = connections.find(function (conn) { | ||
return getTargetEntry(conn.originModule); | ||
}) | ||
.find(Boolean); | ||
})) === null || _a === void 0 ? void 0 : _a.originModule); | ||
}; | ||
@@ -243,0 +241,0 @@ var targetEntry = (_a = data.dependencies) === null || _a === void 0 ? void 0 : _a.map(function (dep) { |
{ | ||
"name": "isolated-externals-plugin", | ||
"version": "2.1.0-refactor-externals-ee5e344.3", | ||
"version": "2.1.0-refactor-externals-ee5e344.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
52104
973