feat: refactoring project
This commit is contained in:
21
node_modules/webpack/lib/runtime/EnsureChunkRuntimeModule.js
generated
vendored
21
node_modules/webpack/lib/runtime/EnsureChunkRuntimeModule.js
generated
vendored
@@ -51,18 +51,17 @@ class EnsureChunkRuntimeModule extends RuntimeModule {
|
||||
]
|
||||
)};`
|
||||
]);
|
||||
} else {
|
||||
// There ensureChunk is used somewhere in the tree, so we need an empty requireEnsure
|
||||
// function. This can happen with multiple entrypoints.
|
||||
return Template.asString([
|
||||
"// The chunk loading function for additional chunks",
|
||||
"// Since all referenced chunks are already included",
|
||||
"// in this file, this function is empty here.",
|
||||
`${RuntimeGlobals.ensureChunk} = ${runtimeTemplate.returningFunction(
|
||||
"Promise.resolve()"
|
||||
)};`
|
||||
]);
|
||||
}
|
||||
// There ensureChunk is used somewhere in the tree, so we need an empty requireEnsure
|
||||
// function. This can happen with multiple entrypoints.
|
||||
return Template.asString([
|
||||
"// The chunk loading function for additional chunks",
|
||||
"// Since all referenced chunks are already included",
|
||||
"// in this file, this function is empty here.",
|
||||
`${RuntimeGlobals.ensureChunk} = ${runtimeTemplate.returningFunction(
|
||||
"Promise.resolve()"
|
||||
)};`
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user