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:
11
node_modules/webpack/lib/dependencies/CssIcssExportDependency.js
generated
vendored
11
node_modules/webpack/lib/dependencies/CssIcssExportDependency.js
generated
vendored
@@ -37,6 +37,8 @@ const getCssParser = memoize(() => require("../css/CssParser"));
|
||||
/** @typedef {import("../RuntimeTemplate")} RuntimeTemplate */
|
||||
/** @typedef {import("../css/CssParser").Range} Range */
|
||||
|
||||
/** @typedef {(name: string) => string} ExportsConventionFn */
|
||||
|
||||
/**
|
||||
* @param {string} local css local
|
||||
* @param {CssModule} module module
|
||||
@@ -60,7 +62,7 @@ const getLocalIdent = (local, module, chunkGraph, runtimeTemplate) => {
|
||||
|
||||
let localIdentHash = "";
|
||||
|
||||
if (/\[(fullhash|hash)\]/.test(localIdentName)) {
|
||||
if (/\[(?:fullhash|hash)\]/.test(localIdentName)) {
|
||||
const hashSalt = generator.options.localIdentHashSalt;
|
||||
const hashDigest =
|
||||
/** @type {string} */
|
||||
@@ -113,8 +115,8 @@ const getLocalIdent = (local, module, chunkGraph, runtimeTemplate) => {
|
||||
if (typeof id !== "string") return id;
|
||||
|
||||
return id
|
||||
.replace(/^([.-]|[^a-zA-Z0-9_-])+/, "")
|
||||
.replace(/[^a-zA-Z0-9_-]+/g, "_");
|
||||
.replace(/^([.-]|[^a-z0-9_-])+/i, "")
|
||||
.replace(/[^a-z0-9_-]+/gi, "_");
|
||||
},
|
||||
filename: relativeResourcePath,
|
||||
hash: localIdentHash,
|
||||
@@ -135,7 +137,7 @@ const getLocalIdent = (local, module, chunkGraph, runtimeTemplate) => {
|
||||
}
|
||||
|
||||
// Protect the first character from unsupported values
|
||||
return localIdent.replace(/^((-?[0-9])|--)/, "_$1");
|
||||
return localIdent.replace(/^((-?\d)|--)/, "_$1");
|
||||
};
|
||||
|
||||
// 0 - replace, 1 - replace, 2 - append, 2 - once
|
||||
@@ -170,6 +172,7 @@ class CssIcssExportDependency extends NullDependency {
|
||||
this.interpolate = interpolate;
|
||||
this.exportMode = exportMode;
|
||||
this.exportType = exportType;
|
||||
/** @type {undefined | string} */
|
||||
this._hashUpdate = undefined;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user