Update npm packages (73 packages including @jqhtml 2.3.36)
Update npm registry domain from privatenpm.hanson.xyz to npm.internal.hanson.xyz 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
9
node_modules/webpack/lib/ManifestPlugin.js
generated
vendored
9
node_modules/webpack/lib/ManifestPlugin.js
generated
vendored
@@ -22,6 +22,10 @@ const createSchemaValidation = require("./util/create-schema-validation");
|
||||
/** @typedef {import("../declarations/plugins/ManifestPlugin").ManifestEntrypoint} ManifestEntrypoint */
|
||||
/** @typedef {import("../declarations/plugins/ManifestPlugin").ManifestItem} ManifestItem */
|
||||
|
||||
/** @typedef {(item: ManifestItem) => boolean} Filter */
|
||||
/** @typedef {(manifest: ManifestObject) => ManifestObject} Generate */
|
||||
/** @typedef {(manifest: ManifestObject) => string} Serialize */
|
||||
|
||||
const PLUGIN_NAME = "ManifestPlugin";
|
||||
|
||||
const validate = createSchemaValidation(
|
||||
@@ -42,7 +46,9 @@ const extname = (filename) => {
|
||||
const split = replaced.split(".");
|
||||
const last = split.pop();
|
||||
if (!last) return "";
|
||||
return last && /^(gz|br|map)$/i.test(last) ? `${split.pop()}.${last}` : last;
|
||||
return last && /^(?:gz|br|map)$/i.test(last)
|
||||
? `${split.pop()}.${last}`
|
||||
: last;
|
||||
};
|
||||
|
||||
class ManifestPlugin {
|
||||
@@ -121,6 +127,7 @@ class ManifestPlugin {
|
||||
const entrypoints = {};
|
||||
|
||||
for (const [name, entrypoint] of compilation.entrypoints) {
|
||||
/** @type {string[]} */
|
||||
const imports = [];
|
||||
|
||||
for (const chunk of entrypoint.chunks) {
|
||||
|
||||
Reference in New Issue
Block a user