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:
25
node_modules/webpack/lib/dependencies/HarmonyImportSpecifierDependency.js
generated
vendored
25
node_modules/webpack/lib/dependencies/HarmonyImportSpecifierDependency.js
generated
vendored
@@ -6,6 +6,7 @@
|
||||
"use strict";
|
||||
|
||||
const Dependency = require("../Dependency");
|
||||
const InitFragment = require("../InitFragment");
|
||||
const Template = require("../Template");
|
||||
const {
|
||||
getDependencyUsedByExportsCondition
|
||||
@@ -72,10 +73,15 @@ class HarmonyImportSpecifierDependency extends HarmonyImportDependency {
|
||||
this.range = range;
|
||||
this.idRanges = idRanges;
|
||||
this.exportPresenceMode = exportPresenceMode;
|
||||
/** @type {undefined | boolean} */
|
||||
this.namespaceObjectAsContext = false;
|
||||
/** @type {undefined | boolean} */
|
||||
this.call = undefined;
|
||||
/** @type {undefined | boolean} */
|
||||
this.directImport = undefined;
|
||||
/** @type {undefined | boolean | string} */
|
||||
this.shorthand = undefined;
|
||||
/** @type {undefined | boolean} */
|
||||
this.asiSafe = undefined;
|
||||
/** @type {UsedByExports | undefined} */
|
||||
this.usedByExports = undefined;
|
||||
@@ -336,10 +342,22 @@ HarmonyImportSpecifierDependency.Template = class HarmonyImportSpecifierDependen
|
||||
*/
|
||||
apply(dependency, source, templateContext) {
|
||||
const dep = /** @type {HarmonyImportSpecifierDependency} */ (dependency);
|
||||
const { moduleGraph, runtime } = templateContext;
|
||||
const { moduleGraph, runtime, initFragments } = templateContext;
|
||||
const connection = moduleGraph.getConnection(dep);
|
||||
// Skip rendering depending when dependency is conditional
|
||||
if (connection && !connection.isTargetActive(runtime)) return;
|
||||
|
||||
// Only render declaration for import specifier when the dependency is conditional
|
||||
if (connection && !connection.isTargetActive(runtime)) {
|
||||
initFragments.push(
|
||||
new InitFragment(
|
||||
`/* unused harmony import specifier */ var ${dep.name};\n`,
|
||||
InitFragment.STAGE_HARMONY_IMPORTS,
|
||||
0,
|
||||
`unused import specifier ${dep.name}`
|
||||
)
|
||||
);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
const ids = dep.getIds(moduleGraph);
|
||||
const {
|
||||
@@ -431,6 +449,7 @@ HarmonyImportSpecifierDependency.Template = class HarmonyImportSpecifierDependen
|
||||
const { moduleGraph, module, runtime, concatenationScope } =
|
||||
templateContext;
|
||||
const connection = moduleGraph.getConnection(dep);
|
||||
/** @type {string} */
|
||||
let exportExpr;
|
||||
if (
|
||||
connection &&
|
||||
|
||||
Reference in New Issue
Block a user