feat: refactoring project
This commit is contained in:
4
node_modules/webpack/lib/webworker/ImportScriptsChunkLoadingPlugin.js
generated
vendored
4
node_modules/webpack/lib/webworker/ImportScriptsChunkLoadingPlugin.js
generated
vendored
@@ -48,7 +48,9 @@ class ImportScriptsChunkLoadingPlugin {
|
||||
if (onceForChunkSet.has(chunk)) return;
|
||||
onceForChunkSet.add(chunk);
|
||||
if (!isEnabledForChunk(chunk)) return;
|
||||
const withCreateScriptUrl = !!compilation.outputOptions.trustedTypes;
|
||||
const withCreateScriptUrl = Boolean(
|
||||
compilation.outputOptions.trustedTypes
|
||||
);
|
||||
set.add(RuntimeGlobals.moduleFactoriesAddOnly);
|
||||
set.add(RuntimeGlobals.hasOwnProperty);
|
||||
if (withCreateScriptUrl) {
|
||||
|
||||
2
node_modules/webpack/lib/webworker/ImportScriptsChunkLoadingRuntimeModule.js
generated
vendored
2
node_modules/webpack/lib/webworker/ImportScriptsChunkLoadingRuntimeModule.js
generated
vendored
@@ -55,7 +55,7 @@ class ImportScriptsChunkLoadingRuntimeModule extends RuntimeModule {
|
||||
false
|
||||
);
|
||||
return `${RuntimeGlobals.baseURI} = self.location + ${JSON.stringify(
|
||||
rootOutputDir ? "/../" + rootOutputDir : ""
|
||||
rootOutputDir ? `/../${rootOutputDir}` : ""
|
||||
)};`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user