nav tabs on admin dashboard
This commit is contained in:
22
node_modules/webpack/lib/performance/EntrypointsOverSizeLimitWarning.js
generated
vendored
22
node_modules/webpack/lib/performance/EntrypointsOverSizeLimitWarning.js
generated
vendored
@@ -9,19 +9,21 @@ const SizeFormatHelpers = require("../SizeFormatHelpers");
|
||||
|
||||
module.exports = class EntrypointsOverSizeLimitWarning extends WebpackError {
|
||||
constructor(entrypoints, entrypointLimit) {
|
||||
super();
|
||||
const entrypointList = entrypoints
|
||||
.map(
|
||||
entrypoint =>
|
||||
`\n ${entrypoint.name} (${SizeFormatHelpers.formatSize(
|
||||
entrypoint.size
|
||||
)})\n${entrypoint.files.map(asset => ` ${asset}`).join("\n")}`
|
||||
)
|
||||
.join("");
|
||||
super(`entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (${SizeFormatHelpers.formatSize(
|
||||
entrypointLimit
|
||||
)}). This can impact web performance.
|
||||
Entrypoints:${entrypointList}\n`);
|
||||
|
||||
this.name = "EntrypointsOverSizeLimitWarning";
|
||||
this.entrypoints = entrypoints;
|
||||
const entrypointList = this.entrypoints.map(entrypoint => `\n ${
|
||||
entrypoint.name
|
||||
} (${
|
||||
SizeFormatHelpers.formatSize(entrypoint.size)
|
||||
})\n${
|
||||
entrypoint.files.map(asset => ` ${asset}`).join("\n")
|
||||
}`).join("");
|
||||
this.message = `entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (${SizeFormatHelpers.formatSize(entrypointLimit)}). This can impact web performance.
|
||||
Entrypoints:${entrypointList}\n`;
|
||||
|
||||
Error.captureStackTrace(this, this.constructor);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user