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:
35
node_modules/webpack/lib/css/CssGenerator.js
generated
vendored
35
node_modules/webpack/lib/css/CssGenerator.js
generated
vendored
@@ -19,6 +19,7 @@ const {
|
||||
const RuntimeGlobals = require("../RuntimeGlobals");
|
||||
const Template = require("../Template");
|
||||
const CssImportDependency = require("../dependencies/CssImportDependency");
|
||||
const EntryDependency = require("../dependencies/EntryDependency");
|
||||
const { getUndoPath } = require("../util/identifier");
|
||||
const memoize = require("../util/memoize");
|
||||
|
||||
@@ -362,6 +363,7 @@ class CssGenerator extends Generator {
|
||||
|
||||
if (generateContext.concatenationScope) {
|
||||
const source = new ConcatSource();
|
||||
/** @type {Set<string>} */
|
||||
const usedIdentifiers = new Set();
|
||||
const { RESERVED_IDENTIFIER } = getPropertyName();
|
||||
|
||||
@@ -413,6 +415,7 @@ class CssGenerator extends Generator {
|
||||
);
|
||||
}
|
||||
|
||||
/** @type {string[]} */
|
||||
const exports = [];
|
||||
|
||||
for (const [name, v] of cssData.exports) {
|
||||
@@ -465,13 +468,19 @@ class CssGenerator extends Generator {
|
||||
* @returns {SourceTypes} available types (do not mutate)
|
||||
*/
|
||||
getTypes(module) {
|
||||
if (this._generatesJsOnly(module)) {
|
||||
return JAVASCRIPT_TYPES;
|
||||
}
|
||||
const exportType = /** @type {BuildMeta} */ (module.buildMeta).exportType;
|
||||
const sourceTypes = new Set();
|
||||
const connections = this._moduleGraph.getIncomingConnections(module);
|
||||
|
||||
let isEntryModule = false;
|
||||
for (const connection of connections) {
|
||||
if (connection.dependency instanceof CssImportDependency) {
|
||||
if (connection.dependency instanceof EntryDependency) {
|
||||
isEntryModule = true;
|
||||
}
|
||||
if (
|
||||
exportType === "link" &&
|
||||
connection.dependency instanceof CssImportDependency
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
if (!connection.originModule) {
|
||||
@@ -479,8 +488,26 @@ class CssGenerator extends Generator {
|
||||
}
|
||||
if (connection.originModule.type.split("/")[0] !== CSS_TYPE) {
|
||||
sourceTypes.add(JAVASCRIPT_TYPE);
|
||||
} else {
|
||||
const originModule = /** @type {CssModule} */ connection.originModule;
|
||||
const originExportType = /** @type {BuildMeta} */ (
|
||||
originModule.buildMeta
|
||||
).exportType;
|
||||
if (
|
||||
/** @type {boolean} */ (
|
||||
originExportType && originExportType !== "link"
|
||||
)
|
||||
) {
|
||||
sourceTypes.add(JAVASCRIPT_TYPE);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this._generatesJsOnly(module)) {
|
||||
if (sourceTypes.has(JAVASCRIPT_TYPE) || isEntryModule) {
|
||||
return JAVASCRIPT_TYPES;
|
||||
}
|
||||
return new Set();
|
||||
}
|
||||
if (sourceTypes.has(JAVASCRIPT_TYPE)) {
|
||||
return JAVASCRIPT_AND_CSS_TYPES;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user