Fix code quality violations for publish
Progressive breadcrumb resolution with caching, fix double headers 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
116
node_modules/rollup/dist/es/shared/node-entry.js
generated
vendored
Executable file → Normal file
116
node_modules/rollup/dist/es/shared/node-entry.js
generated
vendored
Executable file → Normal file
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
@license
|
||||
Rollup.js v4.53.3
|
||||
Wed, 19 Nov 2025 06:31:27 GMT - commit 998b5950a6ea7cea1a7b994e8dab45472c3cbe7e
|
||||
Rollup.js v4.53.4
|
||||
Mon, 15 Dec 2025 12:00:59 GMT - commit 7df7947fdb51ead87b71d38ece3752796bd0249c
|
||||
|
||||
https://github.com/rollup/rollup
|
||||
|
||||
@@ -27,7 +27,7 @@ function _mergeNamespaces(n, m) {
|
||||
return Object.defineProperty(n, Symbol.toStringTag, { value: 'Module' });
|
||||
}
|
||||
|
||||
var version = "4.53.3";
|
||||
var version = "4.53.4";
|
||||
|
||||
// src/vlq.ts
|
||||
var comma = ",".charCodeAt(0);
|
||||
@@ -2002,6 +2002,10 @@ const UnknownKey = Symbol('Unknown Key');
|
||||
const UnknownNonAccessorKey = Symbol('Unknown Non-Accessor Key');
|
||||
const UnknownInteger = Symbol('Unknown Integer');
|
||||
const SymbolToStringTag = Symbol('Symbol.toStringTag');
|
||||
const SymbolDispose = Symbol('Symbol.asyncDispose');
|
||||
const SymbolAsyncDispose = Symbol('Symbol.dispose');
|
||||
const WELL_KNOWN_SYMBOLS_LIST = [SymbolToStringTag, SymbolDispose, SymbolAsyncDispose];
|
||||
const WELL_KNOWN_SYMBOLS = new Set(WELL_KNOWN_SYMBOLS_LIST);
|
||||
const EMPTY_PATH = [];
|
||||
const UNKNOWN_PATH = [UnknownKey];
|
||||
// For deoptimizations, this means we are modifying an unknown property but did
|
||||
@@ -4270,6 +4274,27 @@ const knownGlobals = {
|
||||
for: PF,
|
||||
keyFor: PF,
|
||||
prototype: O,
|
||||
asyncDispose: {
|
||||
__proto__: null,
|
||||
[ValueProperties]: {
|
||||
deoptimizeArgumentsOnCall: doNothing,
|
||||
getLiteralValue() {
|
||||
return SymbolAsyncDispose;
|
||||
},
|
||||
// This might not be needed, but then we need to check a few more cases
|
||||
hasEffectsWhenCalled: returnTrue
|
||||
}
|
||||
},
|
||||
dispose: {
|
||||
__proto__: null,
|
||||
[ValueProperties]: {
|
||||
deoptimizeArgumentsOnCall: doNothing,
|
||||
getLiteralValue() {
|
||||
return SymbolDispose;
|
||||
},
|
||||
hasEffectsWhenCalled: returnTrue
|
||||
}
|
||||
},
|
||||
toStringTag: {
|
||||
__proto__: null,
|
||||
[ValueProperties]: {
|
||||
@@ -7670,11 +7695,11 @@ class MemberExpression extends NodeBase {
|
||||
this.dynamicPropertyKey = this.propertyKey;
|
||||
const value = this.property.getLiteralValueAtPath(EMPTY_PATH, SHARED_RECURSION_TRACKER, this);
|
||||
return (this.dynamicPropertyKey =
|
||||
value === SymbolToStringTag
|
||||
? value
|
||||
: typeof value === 'symbol'
|
||||
? UnknownKey
|
||||
: String(value));
|
||||
typeof value === 'symbol'
|
||||
? WELL_KNOWN_SYMBOLS.has(value)
|
||||
? value
|
||||
: UnknownKey
|
||||
: String(value));
|
||||
}
|
||||
return this.dynamicPropertyKey;
|
||||
}
|
||||
@@ -13052,8 +13077,9 @@ function isReassignedExportsMember(variable, exportNamesByVariable) {
|
||||
}
|
||||
|
||||
class VariableDeclarator extends NodeBase {
|
||||
declareDeclarator(kind, isUsingDeclaration) {
|
||||
this.isUsingDeclaration = isUsingDeclaration;
|
||||
declareDeclarator(kind) {
|
||||
this.isUsingDeclaration = kind === 'using';
|
||||
this.isAsyncUsingDeclaration = kind === 'await using';
|
||||
this.id.declare(kind, EMPTY_PATH, this.init || UNDEFINED_EXPRESSION);
|
||||
}
|
||||
deoptimizePath(path) {
|
||||
@@ -13064,6 +13090,7 @@ class VariableDeclarator extends NodeBase {
|
||||
this.id.markDeclarationReached();
|
||||
return (initEffect ||
|
||||
this.isUsingDeclaration ||
|
||||
this.isAsyncUsingDeclaration ||
|
||||
this.id.hasEffects(context) ||
|
||||
(this.scope.context.options.treeshake
|
||||
.propertyReadSideEffects &&
|
||||
@@ -13072,7 +13099,7 @@ class VariableDeclarator extends NodeBase {
|
||||
include(context, includeChildrenRecursively) {
|
||||
const { id, init } = this;
|
||||
if (!this.included)
|
||||
this.includeNode();
|
||||
this.includeNode(context);
|
||||
init?.include(context, includeChildrenRecursively);
|
||||
id.markDeclarationReached();
|
||||
if (includeChildrenRecursively) {
|
||||
@@ -13088,7 +13115,7 @@ class VariableDeclarator extends NodeBase {
|
||||
render(code, options) {
|
||||
const { exportNamesByVariable, snippets: { _, getPropertyAccess } } = options;
|
||||
const { end, id, init, start } = this;
|
||||
const renderId = id.included || this.isUsingDeclaration;
|
||||
const renderId = id.included || this.isUsingDeclaration || this.isAsyncUsingDeclaration;
|
||||
if (renderId) {
|
||||
id.render(code, options);
|
||||
}
|
||||
@@ -13110,20 +13137,30 @@ class VariableDeclarator extends NodeBase {
|
||||
code.appendLeft(end, `${_}=${_}void 0`);
|
||||
}
|
||||
}
|
||||
includeNode() {
|
||||
includeNode(context) {
|
||||
this.included = true;
|
||||
const { id, init } = this;
|
||||
if (init && id instanceof Identifier && init instanceof ClassExpression && !init.id) {
|
||||
const { name, variable } = id;
|
||||
for (const accessedVariable of init.scope.accessedOutsideVariables.values()) {
|
||||
if (accessedVariable !== variable) {
|
||||
accessedVariable.forbidName(name);
|
||||
if (init) {
|
||||
if (this.isUsingDeclaration) {
|
||||
init.includePath(SYMBOL_DISPOSE_PATH, context);
|
||||
}
|
||||
else if (this.isAsyncUsingDeclaration) {
|
||||
init.includePath(SYMBOL_ASYNC_DISPOSE_PATH, context);
|
||||
}
|
||||
if (id instanceof Identifier && init instanceof ClassExpression && !init.id) {
|
||||
const { name, variable } = id;
|
||||
for (const accessedVariable of init.scope.accessedOutsideVariables.values()) {
|
||||
if (accessedVariable !== variable) {
|
||||
accessedVariable.forbidName(name);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
VariableDeclarator.prototype.applyDeoptimizations = doNotDeoptimize;
|
||||
const SYMBOL_DISPOSE_PATH = [SymbolDispose];
|
||||
const SYMBOL_ASYNC_DISPOSE_PATH = [SymbolAsyncDispose];
|
||||
|
||||
function getChunkInfoWithPath(chunk) {
|
||||
return { fileName: chunk.getFileName(), ...chunk.getPreRenderedChunkInfo() };
|
||||
@@ -15361,23 +15398,6 @@ class UpdateExpression extends NodeBase {
|
||||
}
|
||||
UpdateExpression.prototype.includeNode = onlyIncludeSelf;
|
||||
|
||||
function areAllDeclarationsIncludedAndNotExported(declarations, exportNamesByVariable) {
|
||||
for (const declarator of declarations) {
|
||||
if (!declarator.id.included)
|
||||
return false;
|
||||
if (declarator.id.type === Identifier$1) {
|
||||
if (exportNamesByVariable.has(declarator.id.variable))
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
const exportedVariables = [];
|
||||
declarator.id.addExportedVariables(exportedVariables, exportNamesByVariable);
|
||||
if (exportedVariables.length > 0)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
class VariableDeclaration extends NodeBase {
|
||||
deoptimizePath() {
|
||||
for (const declarator of this.declarations) {
|
||||
@@ -15407,17 +15427,15 @@ class VariableDeclaration extends NodeBase {
|
||||
}
|
||||
initialise() {
|
||||
super.initialise();
|
||||
this.isUsingDeclaration = this.kind === 'await using' || this.kind === 'using';
|
||||
for (const declarator of this.declarations) {
|
||||
declarator.declareDeclarator(this.kind, this.isUsingDeclaration);
|
||||
declarator.declareDeclarator(this.kind);
|
||||
}
|
||||
}
|
||||
removeAnnotations(code) {
|
||||
this.declarations[0].removeAnnotations(code);
|
||||
}
|
||||
render(code, options, nodeRenderOptions = BLANK) {
|
||||
if (this.isUsingDeclaration ||
|
||||
areAllDeclarationsIncludedAndNotExported(this.declarations, options.exportNamesByVariable)) {
|
||||
if (this.areAllDeclarationsIncludedAndNotExported(options.exportNamesByVariable)) {
|
||||
for (const declarator of this.declarations) {
|
||||
declarator.render(code, options);
|
||||
}
|
||||
@@ -15517,6 +15535,26 @@ class VariableDeclaration extends NodeBase {
|
||||
}
|
||||
this.renderDeclarationEnd(code, separatorString, lastSeparatorPos, actualContentEnd, renderedContentEnd, aggregatedSystemExports, options);
|
||||
}
|
||||
areAllDeclarationsIncludedAndNotExported(exportNamesByVariable) {
|
||||
if (this.kind === 'await using' || this.kind === 'using') {
|
||||
return true;
|
||||
}
|
||||
for (const declarator of this.declarations) {
|
||||
if (!declarator.id.included)
|
||||
return false;
|
||||
if (declarator.id.type === Identifier$1) {
|
||||
if (exportNamesByVariable.has(declarator.id.variable))
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
const exportedVariables = [];
|
||||
declarator.id.addExportedVariables(exportedVariables, exportNamesByVariable);
|
||||
if (exportedVariables.length > 0)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
function gatherSystemExportsAndGetSingleExport(separatedNodes, options, aggregatedSystemExports) {
|
||||
let singleSystemExport = null;
|
||||
|
||||
Reference in New Issue
Block a user