@rollup/wasm-node 4.64.5 → 4.64.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/rollup +3 -3
- package/dist/es/getLogFilter.js +2 -2
- package/dist/es/parseAst.js +2 -2
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/node-entry.js +98 -52
- package/dist/es/shared/parseAst.js +2 -2
- package/dist/es/shared/watch.js +3 -3
- package/dist/getLogFilter.js +2 -2
- package/dist/loadConfigFile.js +2 -2
- package/dist/parseAst.js +2 -2
- package/dist/rollup.js +2 -2
- package/dist/shared/fsevents-importer.js +2 -2
- package/dist/shared/index.js +3 -3
- package/dist/shared/loadConfigFile.js +2 -2
- package/dist/shared/node-entry.js +2 -2
- package/dist/shared/parseAst.js +2 -2
- package/dist/shared/rollup.js +98 -52
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/dist/wasm-node/bindings_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/dist/bin/rollup
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/*
|
|
3
3
|
@license
|
|
4
|
-
Rollup.js v4.64.
|
|
5
|
-
|
|
4
|
+
Rollup.js v4.64.7
|
|
5
|
+
Thu, 15 Oct 2026 05:41:37 GMT - commit 5f658604845ca7fb4d8e8a27a9e68e166c6f9973
|
|
6
6
|
|
|
7
7
|
https://github.com/rollup/rollup
|
|
8
8
|
|
|
@@ -27,7 +27,7 @@ require('node:perf_hooks');
|
|
|
27
27
|
require('node:url');
|
|
28
28
|
require('../getLogFilter.js');
|
|
29
29
|
|
|
30
|
-
const help = "rollup version 4.64.
|
|
30
|
+
const help = "rollup version 4.64.7\n=====================================\n\nUsage: rollup [options] <entry file>\n\nOptions:\n\n-c, --config <filename> Use this config file (if argument is used but value\n is unspecified, Rollup will try to load configuration files in\n the following order:\n rollup.config.mjs -> rollup.config.cjs -> rollup.config.js)\n-d, --dir <dirname> Directory for chunks (if absent, prints to stdout)\n-e, --external <ids> Comma-separate list of module IDs to exclude\n-f, --format <format> Type of output (amd, cjs, es, iife, umd, system)\n-g, --globals <pairs> Comma-separate list of `moduleID:Global` pairs\n-h, --help Show this help message\n-i, --input <filename> Input (alternative to <entry file>)\n-m, --sourcemap Generate sourcemap (`-m inline` for inline map)\n-n, --name <name> Name for UMD export\n-o, --file <output> Single output file (if absent, prints to stdout)\n-p, --plugin <plugin> Use the plugin specified (may be repeated)\n-v, --version Show version number\n-w, --watch Watch files in bundle and rebuild on changes\n--amd.autoId Generate the AMD ID based off the chunk name\n--amd.basePath <prefix> Path to prepend to auto generated AMD ID\n--amd.define <name> Function to use in place of `define`\n--amd.forceJsExtensionForImports Use `.js` extension in AMD imports\n--amd.id <id> ID for AMD module (default is anonymous)\n--assetFileNames <pattern> Name pattern for emitted assets\n--banner <text> Code to insert at top of bundle (outside wrapper)\n--chunkFileNames <pattern> Name pattern for emitted secondary chunks\n--compact Minify wrapper code\n--context <variable> Specify top-level `this` value\n--no-dynamicImportInCjs Write external dynamic CommonJS imports as require\n--entryFileNames <pattern> Name pattern for emitted entry chunks\n--environment <values> Settings passed to config file (see example)\n--no-esModule Do not add __esModule property\n--exports <mode> Specify export mode (auto, default, named, none)\n--extend Extend global variable defined by --name\n--no-externalImportAttributes Omit import attributes in \"es\" output\n--no-externalLiveBindings Do not generate code to support live bindings\n--failAfterWarnings Exit with an error if the build produced warnings\n--filterLogs <filter> Filter log messages\n--footer <text> Code to insert at end of bundle (outside wrapper)\n--forceExit Force exit the process when done\n--no-freeze Do not freeze namespace objects\n--generatedCode <preset> Which code features to use (es5/es2015)\n--generatedCode.arrowFunctions Use arrow functions in generated code\n--generatedCode.constBindings Use \"const\" in generated code\n--generatedCode.objectShorthand Use shorthand properties in generated code\n--no-generatedCode.reservedNamesAsProps Always quote reserved names as props\n--generatedCode.symbols Use symbols in generated code\n--hashCharacters <name> Use the specified character set for file hashes\n--no-hoistTransitiveImports Do not hoist transitive imports into entry chunks\n--importAttributesKey <name> Use the specified keyword for import attributes\n--no-indent Don't indent result\n--inlineDynamicImports Create single bundle when using dynamic imports\n--no-interop Do not include interop block\n--intro <text> Code to insert at top of bundle (inside wrapper)\n--logLevel <level> Which kind of logs to display\n--no-makeAbsoluteExternalsRelative Prevent normalization of external imports\n--maxParallelFileOps <value> How many files to read in parallel\n--minifyInternalExports Force or disable minification of internal exports\n--noConflict Generate a noConflict method for UMD globals\n--outro <text> Code to insert at end of bundle (inside wrapper)\n--perf Display performance timings\n--no-preserveEntrySignatures Avoid facade chunks for entry points\n--preserveModules Preserve module structure\n--preserveModulesRoot Put preserved modules under this path at root level\n--preserveSymlinks Do not follow symlinks when resolving files\n--no-reexportProtoFromExternal Ignore `__proto__` in star re-exports\n--no-sanitizeFileName Do not replace invalid characters in file names\n--shimMissingExports Create shim variables for missing exports\n--silent Don't print warnings\n--sourcemapBaseUrl <url> Emit absolute sourcemap URLs with given base\n--sourcemapDebugIds Emit unique debug ids in source and sourcemaps\n--sourcemapExcludeSources Do not include source code in source maps\n--sourcemapFile <file> Specify bundle position for source maps\n--sourcemapFileNames <pattern> Name pattern for emitted sourcemaps\n--stdin=ext Specify file extension used for stdin input\n--no-stdin Do not read \"-\" from stdin\n--no-strict Don't emit `\"use strict\";` in the generated modules\n--strictDeprecations Throw errors for deprecated features\n--no-systemNullSetters Do not replace empty SystemJS setters with `null`\n--no-treeshake Disable tree-shaking optimisations\n--no-treeshake.annotations Ignore pure call annotations\n--treeshake.correctVarValueBeforeDeclaration Deoptimize variables until declared\n--treeshake.manualPureFunctions <names> Manually declare functions as pure\n--no-treeshake.moduleSideEffects Assume modules have no side effects\n--no-treeshake.propertyReadSideEffects Ignore property access side effects\n--no-treeshake.tryCatchDeoptimization Do not turn off try-catch-tree-shaking\n--no-treeshake.unknownGlobalSideEffects Assume unknown globals do not throw\n--validate Validate output\n--waitForBundleInput Wait for bundle input files\n--watch.allowInputInsideOutputPath Whether the input path is allowed to be a\n subpath of the output path\n--watch.buildDelay <number> Throttle watch rebuilds\n--no-watch.clearScreen Do not clear the screen when rebuilding\n--watch.exclude <files> Exclude files from being watched\n--watch.include <files> Limit watching to specified files\n--watch.onBundleEnd <cmd> Shell command to run on `\"BUNDLE_END\"` event\n--watch.onBundleStart <cmd> Shell command to run on `\"BUNDLE_START\"` event\n--watch.onEnd <cmd> Shell command to run on `\"END\"` event\n--watch.onError <cmd> Shell command to run on `\"ERROR\"` event\n--watch.onStart <cmd> Shell command to run on `\"START\"` event\n--watch.skipWrite Do not write files to disk when watching\n\nExamples:\n\n# use settings in config file\nrollup -c\n\n# in config file, process.env.INCLUDE_DEPS === 'true'\n# and process.env.BUILD === 'production'\nrollup -c --environment INCLUDE_DEPS,BUILD:production\n\n# create CommonJS bundle.js from src/main.js\nrollup --format=cjs --file=bundle.js -- src/main.js\n\n# create self-executing IIFE using `window.jQuery`\n# and `window._` as external globals\nrollup -f iife --globals jquery:jQuery,lodash:_ \\\n -i src/app.js -o build/app.js -m build/app.js.map\n\nNotes:\n\n* When piping to stdout, only inline sourcemaps are permitted\n\nFor more information visit https://rollupjs.org\n";
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* @license
|
package/dist/es/getLogFilter.js
CHANGED
package/dist/es/parseAst.js
CHANGED
package/dist/es/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.64.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.64.7
|
|
4
|
+
Thu, 15 Oct 2026 05:41:37 GMT - commit 5f658604845ca7fb4d8e8a27a9e68e166c6f9973
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -27,7 +27,7 @@ function _mergeNamespaces(n, m) {
|
|
|
27
27
|
return Object.defineProperty(n, Symbol.toStringTag, { value: 'Module' });
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
var version = "4.64.
|
|
30
|
+
var version = "4.64.7";
|
|
31
31
|
const pkg = {
|
|
32
32
|
version: version};
|
|
33
33
|
|
|
@@ -6064,6 +6064,47 @@ class MethodDefinition extends MethodBase {
|
|
|
6064
6064
|
}
|
|
6065
6065
|
}
|
|
6066
6066
|
|
|
6067
|
+
class PropertyDefinition extends NodeBase {
|
|
6068
|
+
get computed() {
|
|
6069
|
+
return isFlagSet(this.flags, 1024 /* Flag.computed */);
|
|
6070
|
+
}
|
|
6071
|
+
set computed(value) {
|
|
6072
|
+
this.flags = setFlag(this.flags, 1024 /* Flag.computed */, value);
|
|
6073
|
+
}
|
|
6074
|
+
deoptimizeArgumentsOnInteractionAtPath(interaction, path, recursionTracker) {
|
|
6075
|
+
this.value?.deoptimizeArgumentsOnInteractionAtPath(interaction, path, recursionTracker);
|
|
6076
|
+
}
|
|
6077
|
+
deoptimizePath(path) {
|
|
6078
|
+
this.value?.deoptimizePath(path);
|
|
6079
|
+
}
|
|
6080
|
+
getLiteralValueAtPath(path, recursionTracker, origin) {
|
|
6081
|
+
return this.value
|
|
6082
|
+
? this.value.getLiteralValueAtPath(path, recursionTracker, origin)
|
|
6083
|
+
: UnknownValue;
|
|
6084
|
+
}
|
|
6085
|
+
getReturnExpressionWhenCalledAtPath(path, interaction, recursionTracker, origin) {
|
|
6086
|
+
return this.value
|
|
6087
|
+
? this.value.getReturnExpressionWhenCalledAtPath(path, interaction, recursionTracker, origin)
|
|
6088
|
+
: UNKNOWN_RETURN_EXPRESSION;
|
|
6089
|
+
}
|
|
6090
|
+
hasEffects(context) {
|
|
6091
|
+
return (this.key.hasEffects(context) ||
|
|
6092
|
+
(this.static && !!this.value?.hasEffects(context)) ||
|
|
6093
|
+
checkEffectForNodes(this.decorators, context));
|
|
6094
|
+
}
|
|
6095
|
+
hasEffectsOnInteractionAtPath(path, interaction, context) {
|
|
6096
|
+
return !this.value || this.value.hasEffectsOnInteractionAtPath(path, interaction, context);
|
|
6097
|
+
}
|
|
6098
|
+
includeNode(context) {
|
|
6099
|
+
this.included = true;
|
|
6100
|
+
this.value?.includePath(UNKNOWN_PATH, context);
|
|
6101
|
+
for (const decorator of this.decorators) {
|
|
6102
|
+
decorator.includePath(UNKNOWN_PATH, context);
|
|
6103
|
+
}
|
|
6104
|
+
}
|
|
6105
|
+
}
|
|
6106
|
+
PropertyDefinition.prototype.applyDeoptimizations = doNotDeoptimize;
|
|
6107
|
+
|
|
6067
6108
|
class BlockScope extends ChildScope {
|
|
6068
6109
|
constructor(parent) {
|
|
6069
6110
|
super(parent, parent.context);
|
|
@@ -6129,6 +6170,7 @@ function isStaticBlock(statement) {
|
|
|
6129
6170
|
class ClassNode extends NodeBase {
|
|
6130
6171
|
constructor() {
|
|
6131
6172
|
super(...arguments);
|
|
6173
|
+
this.instanceFieldValues = null;
|
|
6132
6174
|
this.objectEntity = null;
|
|
6133
6175
|
}
|
|
6134
6176
|
createScope(parentScope) {
|
|
@@ -6162,7 +6204,7 @@ class ClassNode extends NodeBase {
|
|
|
6162
6204
|
(this.classConstructor === null
|
|
6163
6205
|
? this.superClass?.hasEffectsOnInteractionAtPath(path, interaction, context)
|
|
6164
6206
|
: this.classConstructor.hasEffectsOnInteractionAtPath(path, interaction, context)) ||
|
|
6165
|
-
|
|
6207
|
+
this.hasEffectsOnInstanceFieldInitialization(context)
|
|
6166
6208
|
: this.getObjectEntity().hasEffectsOnInteractionAtPath(path, interaction, context);
|
|
6167
6209
|
}
|
|
6168
6210
|
include(context, includeChildrenRecursively) {
|
|
@@ -6180,6 +6222,10 @@ class ClassNode extends NodeBase {
|
|
|
6180
6222
|
initialise() {
|
|
6181
6223
|
super.initialise();
|
|
6182
6224
|
this.id?.declare('class', EMPTY_PATH, this);
|
|
6225
|
+
this.instanceEntity = new ObjectEntity(new Map(), new ObjectMember(this, ['prototype']));
|
|
6226
|
+
// This makes sure that all deoptimizations of "this" are applied to the
|
|
6227
|
+
// instance entity, even if the class is only instantiated by unknown code.
|
|
6228
|
+
this.body.scope.instanceThisVariable.addArgumentForDeoptimization(this.instanceEntity);
|
|
6183
6229
|
for (const method of this.body.body) {
|
|
6184
6230
|
if (method instanceof MethodDefinition && method.kind === 'constructor') {
|
|
6185
6231
|
this.classConstructor = method;
|
|
@@ -6200,6 +6246,36 @@ class ClassNode extends NodeBase {
|
|
|
6200
6246
|
}
|
|
6201
6247
|
this.scope.context.requestTreeshakingPass();
|
|
6202
6248
|
}
|
|
6249
|
+
hasEffectsOnInstanceFieldInitialization(context) {
|
|
6250
|
+
const fieldValues = this.getInstanceFieldValues();
|
|
6251
|
+
if (fieldValues.length === 0)
|
|
6252
|
+
return false;
|
|
6253
|
+
const { replacedVariableInits } = context;
|
|
6254
|
+
const thisVariable = this.body.scope.instanceThisVariable;
|
|
6255
|
+
const thisInit = replacedVariableInits.get(thisVariable);
|
|
6256
|
+
replacedVariableInits.set(thisVariable, this.instanceEntity);
|
|
6257
|
+
const hasEffects = fieldValues.some(value => value.hasEffects(context));
|
|
6258
|
+
if (thisInit) {
|
|
6259
|
+
replacedVariableInits.set(thisVariable, thisInit);
|
|
6260
|
+
}
|
|
6261
|
+
else {
|
|
6262
|
+
replacedVariableInits.delete(thisVariable);
|
|
6263
|
+
}
|
|
6264
|
+
return hasEffects;
|
|
6265
|
+
}
|
|
6266
|
+
getInstanceFieldValues() {
|
|
6267
|
+
if (this.instanceFieldValues === null) {
|
|
6268
|
+
this.instanceFieldValues = [];
|
|
6269
|
+
for (const definition of this.body.body) {
|
|
6270
|
+
if (definition instanceof PropertyDefinition &&
|
|
6271
|
+
!definition.static &&
|
|
6272
|
+
definition.value !== null) {
|
|
6273
|
+
this.instanceFieldValues.push(definition.value);
|
|
6274
|
+
}
|
|
6275
|
+
}
|
|
6276
|
+
}
|
|
6277
|
+
return this.instanceFieldValues;
|
|
6278
|
+
}
|
|
6203
6279
|
getObjectEntity() {
|
|
6204
6280
|
if (this.objectEntity !== null) {
|
|
6205
6281
|
return this.objectEntity;
|
|
@@ -12623,6 +12699,17 @@ class AssignmentPattern extends NodeBase {
|
|
|
12623
12699
|
}
|
|
12624
12700
|
}
|
|
12625
12701
|
|
|
12702
|
+
function markTopLevelAwait(node) {
|
|
12703
|
+
if (node.scope.context.usesTopLevelAwait)
|
|
12704
|
+
return;
|
|
12705
|
+
let parent = node.parent;
|
|
12706
|
+
do {
|
|
12707
|
+
if (parent instanceof FunctionBase)
|
|
12708
|
+
return;
|
|
12709
|
+
} while ((parent = parent.parent));
|
|
12710
|
+
node.scope.context.usesTopLevelAwait = true;
|
|
12711
|
+
}
|
|
12712
|
+
|
|
12626
12713
|
class AwaitExpression extends NodeBase {
|
|
12627
12714
|
deoptimizePath(path) {
|
|
12628
12715
|
this.argument.deoptimizePath(path);
|
|
@@ -12634,12 +12721,7 @@ class AwaitExpression extends NodeBase {
|
|
|
12634
12721
|
}
|
|
12635
12722
|
initialise() {
|
|
12636
12723
|
super.initialise();
|
|
12637
|
-
|
|
12638
|
-
do {
|
|
12639
|
-
if (parent instanceof FunctionNode || parent instanceof ArrowFunctionExpression)
|
|
12640
|
-
return;
|
|
12641
|
-
} while ((parent = parent.parent));
|
|
12642
|
-
this.scope.context.usesTopLevelAwait = true;
|
|
12724
|
+
markTopLevelAwait(this);
|
|
12643
12725
|
}
|
|
12644
12726
|
include(context, includeChildrenRecursively) {
|
|
12645
12727
|
if (!this.included)
|
|
@@ -13130,7 +13212,8 @@ class ClassBodyScope extends ChildScope {
|
|
|
13130
13212
|
super(parent, context);
|
|
13131
13213
|
this.variables.set('this', (this.thisVariable = new LocalVariable('this', null, classNode, EMPTY_PATH, context, 'other')));
|
|
13132
13214
|
this.instanceScope = new ChildScope(this, context);
|
|
13133
|
-
this.
|
|
13215
|
+
this.instanceThisVariable = new ThisVariable(context);
|
|
13216
|
+
this.instanceScope.variables.set('this', this.instanceThisVariable);
|
|
13134
13217
|
}
|
|
13135
13218
|
findLexicalBoundary() {
|
|
13136
13219
|
return this;
|
|
@@ -13630,6 +13713,8 @@ class ForOfStatement extends NodeBase {
|
|
|
13630
13713
|
}
|
|
13631
13714
|
initialise() {
|
|
13632
13715
|
super.initialise();
|
|
13716
|
+
if (this.await)
|
|
13717
|
+
markTopLevelAwait(this);
|
|
13633
13718
|
this.left.setAssignedValue(UNKNOWN_EXPRESSION);
|
|
13634
13719
|
}
|
|
13635
13720
|
render(code, options) {
|
|
@@ -15432,47 +15517,6 @@ class Property extends MethodBase {
|
|
|
15432
15517
|
Property.prototype.includeNode = onlyIncludeSelfNoDeoptimize;
|
|
15433
15518
|
Property.prototype.applyDeoptimizations = doNotDeoptimize;
|
|
15434
15519
|
|
|
15435
|
-
class PropertyDefinition extends NodeBase {
|
|
15436
|
-
get computed() {
|
|
15437
|
-
return isFlagSet(this.flags, 1024 /* Flag.computed */);
|
|
15438
|
-
}
|
|
15439
|
-
set computed(value) {
|
|
15440
|
-
this.flags = setFlag(this.flags, 1024 /* Flag.computed */, value);
|
|
15441
|
-
}
|
|
15442
|
-
deoptimizeArgumentsOnInteractionAtPath(interaction, path, recursionTracker) {
|
|
15443
|
-
this.value?.deoptimizeArgumentsOnInteractionAtPath(interaction, path, recursionTracker);
|
|
15444
|
-
}
|
|
15445
|
-
deoptimizePath(path) {
|
|
15446
|
-
this.value?.deoptimizePath(path);
|
|
15447
|
-
}
|
|
15448
|
-
getLiteralValueAtPath(path, recursionTracker, origin) {
|
|
15449
|
-
return this.value
|
|
15450
|
-
? this.value.getLiteralValueAtPath(path, recursionTracker, origin)
|
|
15451
|
-
: UnknownValue;
|
|
15452
|
-
}
|
|
15453
|
-
getReturnExpressionWhenCalledAtPath(path, interaction, recursionTracker, origin) {
|
|
15454
|
-
return this.value
|
|
15455
|
-
? this.value.getReturnExpressionWhenCalledAtPath(path, interaction, recursionTracker, origin)
|
|
15456
|
-
: UNKNOWN_RETURN_EXPRESSION;
|
|
15457
|
-
}
|
|
15458
|
-
hasEffects(context) {
|
|
15459
|
-
return (this.key.hasEffects(context) ||
|
|
15460
|
-
(this.static && !!this.value?.hasEffects(context)) ||
|
|
15461
|
-
checkEffectForNodes(this.decorators, context));
|
|
15462
|
-
}
|
|
15463
|
-
hasEffectsOnInteractionAtPath(path, interaction, context) {
|
|
15464
|
-
return !this.value || this.value.hasEffectsOnInteractionAtPath(path, interaction, context);
|
|
15465
|
-
}
|
|
15466
|
-
includeNode(context) {
|
|
15467
|
-
this.included = true;
|
|
15468
|
-
this.value?.includePath(UNKNOWN_PATH, context);
|
|
15469
|
-
for (const decorator of this.decorators) {
|
|
15470
|
-
decorator.includePath(UNKNOWN_PATH, context);
|
|
15471
|
-
}
|
|
15472
|
-
}
|
|
15473
|
-
}
|
|
15474
|
-
PropertyDefinition.prototype.applyDeoptimizations = doNotDeoptimize;
|
|
15475
|
-
|
|
15476
15520
|
class ReturnStatement extends NodeBase {
|
|
15477
15521
|
hasEffects(context) {
|
|
15478
15522
|
if (!context.ignore.returnYield || this.argument?.hasEffects(context))
|
|
@@ -16200,6 +16244,8 @@ class VariableDeclaration extends NodeBase {
|
|
|
16200
16244
|
}
|
|
16201
16245
|
initialise() {
|
|
16202
16246
|
super.initialise();
|
|
16247
|
+
if (this.kind === 'await using')
|
|
16248
|
+
markTopLevelAwait(this);
|
|
16203
16249
|
for (const declarator of this.declarations) {
|
|
16204
16250
|
declarator.declareDeclarator(this.kind);
|
|
16205
16251
|
}
|
package/dist/es/shared/watch.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.64.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.64.7
|
|
4
|
+
Thu, 15 Oct 2026 05:41:37 GMT - commit 5f658604845ca7fb4d8e8a27a9e68e166c6f9973
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -7898,7 +7898,7 @@ function requireNodefsHandler () {
|
|
|
7898
7898
|
directory = sysPath.join(directory, EMPTY_STR);
|
|
7899
7899
|
|
|
7900
7900
|
if (!wh.hasGlob) {
|
|
7901
|
-
throttler = this.fsw._throttle('readdir', directory, 1000);
|
|
7901
|
+
throttler = this.fsw._throttle('readdir', target ? `${directory}:${target}` : directory, 1000);
|
|
7902
7902
|
if (!throttler) return;
|
|
7903
7903
|
}
|
|
7904
7904
|
|
package/dist/getLogFilter.js
CHANGED
package/dist/loadConfigFile.js
CHANGED
package/dist/parseAst.js
CHANGED
package/dist/rollup.js
CHANGED
package/dist/shared/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.64.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.64.7
|
|
4
|
+
Thu, 15 Oct 2026 05:41:37 GMT - commit 5f658604845ca7fb4d8e8a27a9e68e166c6f9973
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -7894,7 +7894,7 @@ function requireNodefsHandler () {
|
|
|
7894
7894
|
directory = sysPath.join(directory, EMPTY_STR);
|
|
7895
7895
|
|
|
7896
7896
|
if (!wh.hasGlob) {
|
|
7897
|
-
throttler = this.fsw._throttle('readdir', directory, 1000);
|
|
7897
|
+
throttler = this.fsw._throttle('readdir', target ? `${directory}:${target}` : directory, 1000);
|
|
7898
7898
|
if (!throttler) return;
|
|
7899
7899
|
}
|
|
7900
7900
|
|
package/dist/shared/parseAst.js
CHANGED
package/dist/shared/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.64.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.64.7
|
|
4
|
+
Thu, 15 Oct 2026 05:41:37 GMT - commit 5f658604845ca7fb4d8e8a27a9e68e166c6f9973
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -42,7 +42,7 @@ function _mergeNamespaces(n, m) {
|
|
|
42
42
|
|
|
43
43
|
const promises__namespace = /*#__PURE__*/_interopNamespaceDefault(promises);
|
|
44
44
|
|
|
45
|
-
var version = "4.64.
|
|
45
|
+
var version = "4.64.7";
|
|
46
46
|
const package_ = {
|
|
47
47
|
version: version};
|
|
48
48
|
|
|
@@ -10224,6 +10224,47 @@ class MethodDefinition extends MethodBase {
|
|
|
10224
10224
|
}
|
|
10225
10225
|
}
|
|
10226
10226
|
|
|
10227
|
+
class PropertyDefinition extends NodeBase {
|
|
10228
|
+
get computed() {
|
|
10229
|
+
return isFlagSet(this.flags, 1024 /* Flag.computed */);
|
|
10230
|
+
}
|
|
10231
|
+
set computed(value) {
|
|
10232
|
+
this.flags = setFlag(this.flags, 1024 /* Flag.computed */, value);
|
|
10233
|
+
}
|
|
10234
|
+
deoptimizeArgumentsOnInteractionAtPath(interaction, path, recursionTracker) {
|
|
10235
|
+
this.value?.deoptimizeArgumentsOnInteractionAtPath(interaction, path, recursionTracker);
|
|
10236
|
+
}
|
|
10237
|
+
deoptimizePath(path) {
|
|
10238
|
+
this.value?.deoptimizePath(path);
|
|
10239
|
+
}
|
|
10240
|
+
getLiteralValueAtPath(path, recursionTracker, origin) {
|
|
10241
|
+
return this.value
|
|
10242
|
+
? this.value.getLiteralValueAtPath(path, recursionTracker, origin)
|
|
10243
|
+
: UnknownValue;
|
|
10244
|
+
}
|
|
10245
|
+
getReturnExpressionWhenCalledAtPath(path, interaction, recursionTracker, origin) {
|
|
10246
|
+
return this.value
|
|
10247
|
+
? this.value.getReturnExpressionWhenCalledAtPath(path, interaction, recursionTracker, origin)
|
|
10248
|
+
: UNKNOWN_RETURN_EXPRESSION;
|
|
10249
|
+
}
|
|
10250
|
+
hasEffects(context) {
|
|
10251
|
+
return (this.key.hasEffects(context) ||
|
|
10252
|
+
(this.static && !!this.value?.hasEffects(context)) ||
|
|
10253
|
+
checkEffectForNodes(this.decorators, context));
|
|
10254
|
+
}
|
|
10255
|
+
hasEffectsOnInteractionAtPath(path, interaction, context) {
|
|
10256
|
+
return !this.value || this.value.hasEffectsOnInteractionAtPath(path, interaction, context);
|
|
10257
|
+
}
|
|
10258
|
+
includeNode(context) {
|
|
10259
|
+
this.included = true;
|
|
10260
|
+
this.value?.includePath(UNKNOWN_PATH, context);
|
|
10261
|
+
for (const decorator of this.decorators) {
|
|
10262
|
+
decorator.includePath(UNKNOWN_PATH, context);
|
|
10263
|
+
}
|
|
10264
|
+
}
|
|
10265
|
+
}
|
|
10266
|
+
PropertyDefinition.prototype.applyDeoptimizations = doNotDeoptimize;
|
|
10267
|
+
|
|
10227
10268
|
class BlockScope extends ChildScope {
|
|
10228
10269
|
constructor(parent) {
|
|
10229
10270
|
super(parent, parent.context);
|
|
@@ -10289,6 +10330,7 @@ function isStaticBlock(statement) {
|
|
|
10289
10330
|
class ClassNode extends NodeBase {
|
|
10290
10331
|
constructor() {
|
|
10291
10332
|
super(...arguments);
|
|
10333
|
+
this.instanceFieldValues = null;
|
|
10292
10334
|
this.objectEntity = null;
|
|
10293
10335
|
}
|
|
10294
10336
|
createScope(parentScope) {
|
|
@@ -10322,7 +10364,7 @@ class ClassNode extends NodeBase {
|
|
|
10322
10364
|
(this.classConstructor === null
|
|
10323
10365
|
? this.superClass?.hasEffectsOnInteractionAtPath(path, interaction, context)
|
|
10324
10366
|
: this.classConstructor.hasEffectsOnInteractionAtPath(path, interaction, context)) ||
|
|
10325
|
-
|
|
10367
|
+
this.hasEffectsOnInstanceFieldInitialization(context)
|
|
10326
10368
|
: this.getObjectEntity().hasEffectsOnInteractionAtPath(path, interaction, context);
|
|
10327
10369
|
}
|
|
10328
10370
|
include(context, includeChildrenRecursively) {
|
|
@@ -10340,6 +10382,10 @@ class ClassNode extends NodeBase {
|
|
|
10340
10382
|
initialise() {
|
|
10341
10383
|
super.initialise();
|
|
10342
10384
|
this.id?.declare('class', EMPTY_PATH, this);
|
|
10385
|
+
this.instanceEntity = new ObjectEntity(new Map(), new ObjectMember(this, ['prototype']));
|
|
10386
|
+
// This makes sure that all deoptimizations of "this" are applied to the
|
|
10387
|
+
// instance entity, even if the class is only instantiated by unknown code.
|
|
10388
|
+
this.body.scope.instanceThisVariable.addArgumentForDeoptimization(this.instanceEntity);
|
|
10343
10389
|
for (const method of this.body.body) {
|
|
10344
10390
|
if (method instanceof MethodDefinition && method.kind === 'constructor') {
|
|
10345
10391
|
this.classConstructor = method;
|
|
@@ -10360,6 +10406,36 @@ class ClassNode extends NodeBase {
|
|
|
10360
10406
|
}
|
|
10361
10407
|
this.scope.context.requestTreeshakingPass();
|
|
10362
10408
|
}
|
|
10409
|
+
hasEffectsOnInstanceFieldInitialization(context) {
|
|
10410
|
+
const fieldValues = this.getInstanceFieldValues();
|
|
10411
|
+
if (fieldValues.length === 0)
|
|
10412
|
+
return false;
|
|
10413
|
+
const { replacedVariableInits } = context;
|
|
10414
|
+
const thisVariable = this.body.scope.instanceThisVariable;
|
|
10415
|
+
const thisInit = replacedVariableInits.get(thisVariable);
|
|
10416
|
+
replacedVariableInits.set(thisVariable, this.instanceEntity);
|
|
10417
|
+
const hasEffects = fieldValues.some(value => value.hasEffects(context));
|
|
10418
|
+
if (thisInit) {
|
|
10419
|
+
replacedVariableInits.set(thisVariable, thisInit);
|
|
10420
|
+
}
|
|
10421
|
+
else {
|
|
10422
|
+
replacedVariableInits.delete(thisVariable);
|
|
10423
|
+
}
|
|
10424
|
+
return hasEffects;
|
|
10425
|
+
}
|
|
10426
|
+
getInstanceFieldValues() {
|
|
10427
|
+
if (this.instanceFieldValues === null) {
|
|
10428
|
+
this.instanceFieldValues = [];
|
|
10429
|
+
for (const definition of this.body.body) {
|
|
10430
|
+
if (definition instanceof PropertyDefinition &&
|
|
10431
|
+
!definition.static &&
|
|
10432
|
+
definition.value !== null) {
|
|
10433
|
+
this.instanceFieldValues.push(definition.value);
|
|
10434
|
+
}
|
|
10435
|
+
}
|
|
10436
|
+
}
|
|
10437
|
+
return this.instanceFieldValues;
|
|
10438
|
+
}
|
|
10363
10439
|
getObjectEntity() {
|
|
10364
10440
|
if (this.objectEntity !== null) {
|
|
10365
10441
|
return this.objectEntity;
|
|
@@ -14240,6 +14316,17 @@ class AssignmentPattern extends NodeBase {
|
|
|
14240
14316
|
}
|
|
14241
14317
|
}
|
|
14242
14318
|
|
|
14319
|
+
function markTopLevelAwait(node) {
|
|
14320
|
+
if (node.scope.context.usesTopLevelAwait)
|
|
14321
|
+
return;
|
|
14322
|
+
let parent = node.parent;
|
|
14323
|
+
do {
|
|
14324
|
+
if (parent instanceof FunctionBase)
|
|
14325
|
+
return;
|
|
14326
|
+
} while ((parent = parent.parent));
|
|
14327
|
+
node.scope.context.usesTopLevelAwait = true;
|
|
14328
|
+
}
|
|
14329
|
+
|
|
14243
14330
|
class AwaitExpression extends NodeBase {
|
|
14244
14331
|
deoptimizePath(path) {
|
|
14245
14332
|
this.argument.deoptimizePath(path);
|
|
@@ -14251,12 +14338,7 @@ class AwaitExpression extends NodeBase {
|
|
|
14251
14338
|
}
|
|
14252
14339
|
initialise() {
|
|
14253
14340
|
super.initialise();
|
|
14254
|
-
|
|
14255
|
-
do {
|
|
14256
|
-
if (parent instanceof FunctionNode || parent instanceof ArrowFunctionExpression)
|
|
14257
|
-
return;
|
|
14258
|
-
} while ((parent = parent.parent));
|
|
14259
|
-
this.scope.context.usesTopLevelAwait = true;
|
|
14341
|
+
markTopLevelAwait(this);
|
|
14260
14342
|
}
|
|
14261
14343
|
include(context, includeChildrenRecursively) {
|
|
14262
14344
|
if (!this.included)
|
|
@@ -14747,7 +14829,8 @@ class ClassBodyScope extends ChildScope {
|
|
|
14747
14829
|
super(parent, context);
|
|
14748
14830
|
this.variables.set('this', (this.thisVariable = new LocalVariable('this', null, classNode, EMPTY_PATH, context, 'other')));
|
|
14749
14831
|
this.instanceScope = new ChildScope(this, context);
|
|
14750
|
-
this.
|
|
14832
|
+
this.instanceThisVariable = new ThisVariable(context);
|
|
14833
|
+
this.instanceScope.variables.set('this', this.instanceThisVariable);
|
|
14751
14834
|
}
|
|
14752
14835
|
findLexicalBoundary() {
|
|
14753
14836
|
return this;
|
|
@@ -15247,6 +15330,8 @@ class ForOfStatement extends NodeBase {
|
|
|
15247
15330
|
}
|
|
15248
15331
|
initialise() {
|
|
15249
15332
|
super.initialise();
|
|
15333
|
+
if (this.await)
|
|
15334
|
+
markTopLevelAwait(this);
|
|
15250
15335
|
this.left.setAssignedValue(UNKNOWN_EXPRESSION);
|
|
15251
15336
|
}
|
|
15252
15337
|
render(code, options) {
|
|
@@ -17049,47 +17134,6 @@ class Property extends MethodBase {
|
|
|
17049
17134
|
Property.prototype.includeNode = onlyIncludeSelfNoDeoptimize;
|
|
17050
17135
|
Property.prototype.applyDeoptimizations = doNotDeoptimize;
|
|
17051
17136
|
|
|
17052
|
-
class PropertyDefinition extends NodeBase {
|
|
17053
|
-
get computed() {
|
|
17054
|
-
return isFlagSet(this.flags, 1024 /* Flag.computed */);
|
|
17055
|
-
}
|
|
17056
|
-
set computed(value) {
|
|
17057
|
-
this.flags = setFlag(this.flags, 1024 /* Flag.computed */, value);
|
|
17058
|
-
}
|
|
17059
|
-
deoptimizeArgumentsOnInteractionAtPath(interaction, path, recursionTracker) {
|
|
17060
|
-
this.value?.deoptimizeArgumentsOnInteractionAtPath(interaction, path, recursionTracker);
|
|
17061
|
-
}
|
|
17062
|
-
deoptimizePath(path) {
|
|
17063
|
-
this.value?.deoptimizePath(path);
|
|
17064
|
-
}
|
|
17065
|
-
getLiteralValueAtPath(path, recursionTracker, origin) {
|
|
17066
|
-
return this.value
|
|
17067
|
-
? this.value.getLiteralValueAtPath(path, recursionTracker, origin)
|
|
17068
|
-
: UnknownValue;
|
|
17069
|
-
}
|
|
17070
|
-
getReturnExpressionWhenCalledAtPath(path, interaction, recursionTracker, origin) {
|
|
17071
|
-
return this.value
|
|
17072
|
-
? this.value.getReturnExpressionWhenCalledAtPath(path, interaction, recursionTracker, origin)
|
|
17073
|
-
: UNKNOWN_RETURN_EXPRESSION;
|
|
17074
|
-
}
|
|
17075
|
-
hasEffects(context) {
|
|
17076
|
-
return (this.key.hasEffects(context) ||
|
|
17077
|
-
(this.static && !!this.value?.hasEffects(context)) ||
|
|
17078
|
-
checkEffectForNodes(this.decorators, context));
|
|
17079
|
-
}
|
|
17080
|
-
hasEffectsOnInteractionAtPath(path, interaction, context) {
|
|
17081
|
-
return !this.value || this.value.hasEffectsOnInteractionAtPath(path, interaction, context);
|
|
17082
|
-
}
|
|
17083
|
-
includeNode(context) {
|
|
17084
|
-
this.included = true;
|
|
17085
|
-
this.value?.includePath(UNKNOWN_PATH, context);
|
|
17086
|
-
for (const decorator of this.decorators) {
|
|
17087
|
-
decorator.includePath(UNKNOWN_PATH, context);
|
|
17088
|
-
}
|
|
17089
|
-
}
|
|
17090
|
-
}
|
|
17091
|
-
PropertyDefinition.prototype.applyDeoptimizations = doNotDeoptimize;
|
|
17092
|
-
|
|
17093
17137
|
class ReturnStatement extends NodeBase {
|
|
17094
17138
|
hasEffects(context) {
|
|
17095
17139
|
if (!context.ignore.returnYield || this.argument?.hasEffects(context))
|
|
@@ -17817,6 +17861,8 @@ class VariableDeclaration extends NodeBase {
|
|
|
17817
17861
|
}
|
|
17818
17862
|
initialise() {
|
|
17819
17863
|
super.initialise();
|
|
17864
|
+
if (this.kind === 'await using')
|
|
17865
|
+
markTopLevelAwait(this);
|
|
17820
17866
|
for (const declarator of this.declarations) {
|
|
17821
17867
|
declarator.declareDeclarator(this.kind);
|
|
17822
17868
|
}
|
package/dist/shared/watch-cli.js
CHANGED
package/dist/shared/watch.js
CHANGED
|
Binary file
|