feat: refactoring project
This commit is contained in:
9
node_modules/webpack/lib/javascript/EnableChunkLoadingPlugin.js
generated
vendored
9
node_modules/webpack/lib/javascript/EnableChunkLoadingPlugin.js
generated
vendored
@@ -53,8 +53,9 @@ class EnableChunkLoadingPlugin {
|
||||
"EnableChunkLoadingPlugin need to be used to enable this type of chunk loading. " +
|
||||
'This usually happens through the "output.enabledChunkLoadingTypes" option. ' +
|
||||
'If you are using a function as entry which sets "chunkLoading", you need to add all potential chunk loading types to "output.enabledChunkLoadingTypes". ' +
|
||||
"These types are enabled: " +
|
||||
Array.from(getEnabledTypes(compiler)).join(", ")
|
||||
`These types are enabled: ${Array.from(
|
||||
getEnabledTypes(compiler)
|
||||
).join(", ")}`
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -85,7 +86,7 @@ class EnableChunkLoadingPlugin {
|
||||
break;
|
||||
}
|
||||
case "require": {
|
||||
//@ts-expect-error https://github.com/microsoft/TypeScript/issues/41697
|
||||
// @ts-expect-error https://github.com/microsoft/TypeScript/issues/41697
|
||||
const CommonJsChunkLoadingPlugin = require("../node/CommonJsChunkLoadingPlugin");
|
||||
new CommonJsChunkLoadingPlugin({
|
||||
asyncChunkLoading: false
|
||||
@@ -93,7 +94,7 @@ class EnableChunkLoadingPlugin {
|
||||
break;
|
||||
}
|
||||
case "async-node": {
|
||||
//@ts-expect-error https://github.com/microsoft/TypeScript/issues/41697
|
||||
// @ts-expect-error https://github.com/microsoft/TypeScript/issues/41697
|
||||
const CommonJsChunkLoadingPlugin = require("../node/CommonJsChunkLoadingPlugin");
|
||||
new CommonJsChunkLoadingPlugin({
|
||||
asyncChunkLoading: true
|
||||
|
||||
Reference in New Issue
Block a user