isolated-externals-plugin
Advanced tools
Comparing version 2.4.0-preload-non-esm-e559461.9 to 2.4.0-preload-non-esm-e559461.10
@@ -266,4 +266,14 @@ "use strict"; | ||
} | ||
const doRebuildEntryModule = async (result) => { | ||
const entryName = (0, getRequestParam_1.default)(result.request, 'isolatedExternalsEntry'); | ||
const isNormal = (0, getRequestParam_1.default)(result.request, 'normal') === true.toString(); | ||
if (!entryName || isNormal || !unpromisedEntries[entryName]) | ||
return false; | ||
await rebuildEntryModule(entryName); | ||
return true; | ||
}; | ||
normalModuleFactory.hooks.beforeResolve.tapPromise('IsolatedExternalsPlugin', async (result) => { | ||
try { | ||
if (await doRebuildEntryModule(result)) | ||
return; | ||
if (result.dependencyType === 'esm') | ||
@@ -270,0 +280,0 @@ return; // the bug does not happen in esm |
{ | ||
"name": "isolated-externals-plugin", | ||
"version": "2.4.0-preload-non-esm-e559461.9", | ||
"version": "2.4.0-preload-non-esm-e559461.10", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
73385
1401