@rollup/wasm-node 4.68.3 → 4.68.4

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 CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  /*
3
3
  @license
4
- Rollup.js v4.68.3
5
- Fri, 13 Nov 2026 08:23:38 GMT - commit 0c5497fb4d86cc769380d4945574488113e08ac2
4
+ Rollup.js v4.68.4
5
+ Mon, 16 Nov 2026 08:59:19 GMT - commit 9b2de5068e925a3b07bea67c972de21a347af9d9
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.68.3\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--interop <value> Interop mode for external imports (compat, auto,\n esModule, default, defaultOnly)\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";
30
+ const help = "rollup version 4.68.4\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--interop <value> Interop mode for external imports (compat, auto,\n esModule, default, defaultOnly)\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
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.68.3
4
- Fri, 13 Nov 2026 08:23:38 GMT - commit 0c5497fb4d86cc769380d4945574488113e08ac2
3
+ Rollup.js v4.68.4
4
+ Mon, 16 Nov 2026 08:59:19 GMT - commit 9b2de5068e925a3b07bea67c972de21a347af9d9
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.68.3
4
- Fri, 13 Nov 2026 08:23:38 GMT - commit 0c5497fb4d86cc769380d4945574488113e08ac2
3
+ Rollup.js v4.68.4
4
+ Mon, 16 Nov 2026 08:59:19 GMT - commit 9b2de5068e925a3b07bea67c972de21a347af9d9
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/es/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.68.3
4
- Fri, 13 Nov 2026 08:23:38 GMT - commit 0c5497fb4d86cc769380d4945574488113e08ac2
3
+ Rollup.js v4.68.4
4
+ Mon, 16 Nov 2026 08:59:19 GMT - commit 9b2de5068e925a3b07bea67c972de21a347af9d9
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.68.3
4
- Fri, 13 Nov 2026 08:23:38 GMT - commit 0c5497fb4d86cc769380d4945574488113e08ac2
3
+ Rollup.js v4.68.4
4
+ Mon, 16 Nov 2026 08:59:19 GMT - commit 9b2de5068e925a3b07bea67c972de21a347af9d9
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.68.3";
30
+ var version = "4.68.4";
31
31
  const pkg = {
32
32
  version: version};
33
33
 
@@ -4528,6 +4528,29 @@ const IMPURE = {
4528
4528
  getLiteralValue: getUnknownValue,
4529
4529
  hasEffectsWhenCalled: returnTrue
4530
4530
  };
4531
+ // For functions that return their arguments, the arguments can be mutated via
4532
+ // the return value
4533
+ const deoptimizeArguments = ({ args }) => {
4534
+ for (let index = 1; index < args.length; index++) {
4535
+ args[index]?.deoptimizePath(UNKNOWN_PATH);
4536
+ }
4537
+ };
4538
+ // For functions that return values stored in their arguments (but not the
4539
+ // arguments themselves), those values can be mutated via the return value
4540
+ const UNKNOWN_VALUES_PATH = [UnknownKey, UnknownKey];
4541
+ const deoptimizeArgumentValues = ({ args }) => {
4542
+ for (let index = 1; index < args.length; index++) {
4543
+ args[index]?.deoptimizePath(UNKNOWN_VALUES_PATH);
4544
+ }
4545
+ };
4546
+ const returningArguments = (description) => ({
4547
+ ...description,
4548
+ deoptimizeArgumentsOnCall: deoptimizeArguments
4549
+ });
4550
+ const returningArgumentValues = (description) => ({
4551
+ ...description,
4552
+ deoptimizeArgumentsOnCall: deoptimizeArgumentValues
4553
+ });
4531
4554
  const PURE_WITH_ARRAY = {
4532
4555
  deoptimizeArgumentsOnCall: doNothing,
4533
4556
  getLiteralValue: getUnknownValue,
@@ -4547,8 +4570,9 @@ const PURE_WITH_ARRAY_OR_LENGTH = {
4547
4570
  }) !== 'number');
4548
4571
  }
4549
4572
  };
4573
+ // Used for Object.entries and Object.values, which return the property values
4550
4574
  const GETTER_ACCESS = {
4551
- deoptimizeArgumentsOnCall: doNothing,
4575
+ deoptimizeArgumentsOnCall: deoptimizeArgumentValues,
4552
4576
  getLiteralValue: getUnknownValue,
4553
4577
  hasEffectsWhenCalled({ args }, context) {
4554
4578
  const [_thisArgument, firstArgument] = args;
@@ -4567,17 +4591,60 @@ const PF = {
4567
4591
  __proto__: null,
4568
4592
  [ValueProperties]: PURE
4569
4593
  };
4594
+ /* OBJECT THAT RETURNS ITS ARGUMENTS WHEN CALLED */
4595
+ const O_RETURNING_ARGS = {
4596
+ __proto__: null,
4597
+ [ValueProperties]: returningArguments(IMPURE)
4598
+ };
4599
+ /* OBJECT THAT RETURNS VALUES STORED IN ITS ARGUMENTS WHEN CALLED */
4600
+ const O_RETURNING_ARG_VALUES = {
4601
+ __proto__: null,
4602
+ [ValueProperties]: returningArgumentValues(IMPURE)
4603
+ };
4604
+ /* Array.from RETURNS THE VALUES OF THE ITERABLE OR WHATEVER THE MAPPER RETURNS */
4605
+ const ARRAY_FROM = {
4606
+ __proto__: null,
4607
+ [ValueProperties]: {
4608
+ ...IMPURE,
4609
+ deoptimizeArgumentsOnCall({ args: [, iterable, ...otherArguments] }) {
4610
+ iterable?.deoptimizePath(UNKNOWN_VALUES_PATH);
4611
+ // The mapper is called by the global, so its return value and its
4612
+ // parameters, as well as the this argument, are no longer tracked.
4613
+ // As spread arguments mean that the mapper and this argument do not
4614
+ // necessarily have a fixed position, we deoptimize all remaining
4615
+ // arguments.
4616
+ for (const argument of otherArguments) {
4617
+ argument.deoptimizePath(UNKNOWN_PATH);
4618
+ }
4619
+ }
4620
+ }
4621
+ };
4622
+ /* PURE FUNCTION THAT RETURNS ITS ARGUMENTS */
4623
+ const PF_RETURNING_ARGS = {
4624
+ __proto__: null,
4625
+ [ValueProperties]: returningArguments(PURE)
4626
+ };
4627
+ /* PURE FUNCTION THAT RETURNS VALUES STORED IN ITS ARGUMENTS */
4628
+ const PF_RETURNING_ARG_VALUES = {
4629
+ __proto__: null,
4630
+ [ValueProperties]: returningArgumentValues(PURE)
4631
+ };
4570
4632
  /* PURE FUNCTION IF FIRST ARG DOES NOT CONTAIN A GETTER */
4571
4633
  const PF_NO_GETTER = {
4572
4634
  __proto__: null,
4573
4635
  [ValueProperties]: GETTER_ACCESS
4574
4636
  };
4575
4637
  /* FUNCTION THAT MUTATES FIRST ARG WITHOUT TRIGGERING ACCESSORS */
4638
+ // For defineProperty and defineProperties, the values of the property
4639
+ // descriptors also become reachable via the first argument
4576
4640
  const MUTATES_ARG_WITHOUT_ACCESSOR = {
4577
4641
  __proto__: null,
4578
4642
  [ValueProperties]: {
4579
- deoptimizeArgumentsOnCall({ args: [, firstArgument] }) {
4643
+ deoptimizeArgumentsOnCall({ args: [, firstArgument, ...otherArguments] }) {
4580
4644
  firstArgument?.deoptimizePath(UNKNOWN_PATH);
4645
+ for (const argument of otherArguments) {
4646
+ argument.deoptimizePath(UNKNOWN_VALUES_PATH);
4647
+ }
4581
4648
  },
4582
4649
  getLiteralValue: getUnknownValue,
4583
4650
  hasEffectsWhenCalled({ args }, context) {
@@ -4603,6 +4670,18 @@ const PC_WITH_ARRAY = {
4603
4670
  [ValueProperties]: PURE_WITH_ARRAY,
4604
4671
  prototype: O
4605
4672
  };
4673
+ /* PURE CONSTRUCTOR WITH ARRAY WHOSE INSTANCES EXPOSE THE VALUES OF THE ARRAY */
4674
+ const PC_WITH_ARRAY_RETURNING_ARG_VALUES = {
4675
+ __proto__: null,
4676
+ [ValueProperties]: returningArgumentValues(PURE_WITH_ARRAY),
4677
+ prototype: O
4678
+ };
4679
+ /* PURE CONSTRUCTOR WHOSE INSTANCES EXPOSE VALUES STORED IN ITS ARGUMENTS */
4680
+ const PC_RETURNING_ARG_VALUES = {
4681
+ __proto__: null,
4682
+ [ValueProperties]: returningArgumentValues(PURE),
4683
+ prototype: O
4684
+ };
4606
4685
  const ARRAY_TYPE = {
4607
4686
  __proto__: null,
4608
4687
  [ValueProperties]: PURE_WITH_ARRAY_OR_LENGTH,
@@ -4631,10 +4710,10 @@ const knownGlobals = {
4631
4710
  [ValueProperties]: IMPURE,
4632
4711
  Array: {
4633
4712
  __proto__: null,
4634
- [ValueProperties]: IMPURE,
4635
- from: O,
4713
+ [ValueProperties]: returningArguments(IMPURE),
4714
+ from: ARRAY_FROM,
4636
4715
  isArray: PF,
4637
- of: PF,
4716
+ of: PF_RETURNING_ARGS,
4638
4717
  prototype: O
4639
4718
  },
4640
4719
  ArrayBuffer: {
@@ -4643,7 +4722,7 @@ const knownGlobals = {
4643
4722
  isView: PF,
4644
4723
  prototype: O
4645
4724
  },
4646
- AggregateError: PC_WITH_ARRAY,
4725
+ AggregateError: PC_WITH_ARRAY_RETURNING_ARG_VALUES,
4647
4726
  Atomics: O,
4648
4727
  BigInt: C,
4649
4728
  BigInt64Array: C,
@@ -4663,10 +4742,10 @@ const knownGlobals = {
4663
4742
  decodeURIComponent: PF,
4664
4743
  encodeURI: PF,
4665
4744
  encodeURIComponent: PF,
4666
- Error: PC,
4745
+ Error: PC_RETURNING_ARG_VALUES,
4667
4746
  escape: PF,
4668
4747
  eval: O,
4669
- EvalError: PC,
4748
+ EvalError: PC_RETURNING_ARG_VALUES,
4670
4749
  FinalizationRegistry: C,
4671
4750
  Float32Array: ARRAY_TYPE,
4672
4751
  Float64Array: ARRAY_TYPE,
@@ -4680,7 +4759,7 @@ const knownGlobals = {
4680
4759
  isNaN: PF,
4681
4760
  isPrototypeOf: O,
4682
4761
  JSON: O,
4683
- Map: PC_WITH_ARRAY,
4762
+ Map: PC_WITH_ARRAY_RETURNING_ARG_VALUES,
4684
4763
  Math: {
4685
4764
  __proto__: null,
4686
4765
  [ValueProperties]: IMPURE,
@@ -4734,16 +4813,16 @@ const knownGlobals = {
4734
4813
  },
4735
4814
  Object: {
4736
4815
  __proto__: null,
4737
- [ValueProperties]: PURE,
4738
- create: PF,
4816
+ [ValueProperties]: returningArguments(PURE),
4817
+ create: PF_RETURNING_ARG_VALUES,
4739
4818
  // Technically those can throw in certain situations, but we ignore this as
4740
4819
  // code that relies on this will hopefully wrap this in a try-catch, which
4741
4820
  // deoptimizes everything anyway
4742
4821
  defineProperty: MUTATES_ARG_WITHOUT_ACCESSOR,
4743
4822
  defineProperties: MUTATES_ARG_WITHOUT_ACCESSOR,
4744
4823
  freeze: MUTATES_ARG_WITHOUT_ACCESSOR,
4745
- getOwnPropertyDescriptor: PF,
4746
- getOwnPropertyDescriptors: PF,
4824
+ getOwnPropertyDescriptor: PF_RETURNING_ARG_VALUES,
4825
+ getOwnPropertyDescriptors: PF_RETURNING_ARG_VALUES,
4747
4826
  getOwnPropertyNames: PF,
4748
4827
  getOwnPropertySymbols: PF,
4749
4828
  getPrototypeOf: PF,
@@ -4753,7 +4832,7 @@ const knownGlobals = {
4753
4832
  isFrozen: PF,
4754
4833
  isSealed: PF,
4755
4834
  keys: PF,
4756
- fromEntries: O,
4835
+ fromEntries: O_RETURNING_ARG_VALUES,
4757
4836
  entries: PF_NO_GETTER,
4758
4837
  values: PF_NO_GETTER,
4759
4838
  prototype: O
@@ -4763,13 +4842,13 @@ const knownGlobals = {
4763
4842
  Promise: {
4764
4843
  __proto__: null,
4765
4844
  [ValueProperties]: IMPURE,
4766
- all: O,
4767
- allSettled: O,
4768
- any: O,
4845
+ all: O_RETURNING_ARG_VALUES,
4846
+ allSettled: O_RETURNING_ARG_VALUES,
4847
+ any: O_RETURNING_ARG_VALUES,
4769
4848
  prototype: O,
4770
- race: O,
4771
- reject: O,
4772
- resolve: O
4849
+ race: O_RETURNING_ARG_VALUES,
4850
+ reject: O_RETURNING_ARGS,
4851
+ resolve: O_RETURNING_ARGS
4773
4852
  },
4774
4853
  propertyIsEnumerable: O,
4775
4854
  Proxy: {
@@ -4795,11 +4874,11 @@ const knownGlobals = {
4795
4874
  hasEffectsWhenCalled: returnTrue
4796
4875
  }
4797
4876
  },
4798
- RangeError: PC,
4799
- ReferenceError: PC,
4877
+ RangeError: PC_RETURNING_ARG_VALUES,
4878
+ ReferenceError: PC_RETURNING_ARG_VALUES,
4800
4879
  Reflect: O,
4801
4880
  RegExp: PC,
4802
- Set: PC_WITH_ARRAY,
4881
+ Set: PC_WITH_ARRAY_RETURNING_ARG_VALUES,
4803
4882
  SharedArrayBuffer: C,
4804
4883
  String: {
4805
4884
  __proto__: null,
@@ -4820,10 +4899,10 @@ const knownGlobals = {
4820
4899
  hasInstance: getWellKnownSymbol(SymbolHasInstance),
4821
4900
  toStringTag: getWellKnownSymbol(SymbolToStringTag)
4822
4901
  },
4823
- SyntaxError: PC,
4902
+ SyntaxError: PC_RETURNING_ARG_VALUES,
4824
4903
  toLocaleString: O,
4825
4904
  toString: O,
4826
- TypeError: PC,
4905
+ TypeError: PC_RETURNING_ARG_VALUES,
4827
4906
  Uint16Array: ARRAY_TYPE,
4828
4907
  Uint32Array: ARRAY_TYPE,
4829
4908
  Uint8Array: ARRAY_TYPE,
@@ -4831,10 +4910,14 @@ const knownGlobals = {
4831
4910
  // Technically, this is a global, but it needs special handling
4832
4911
  // undefined: ?,
4833
4912
  unescape: PF,
4834
- URIError: PC,
4913
+ URIError: PC_RETURNING_ARG_VALUES,
4835
4914
  valueOf: O,
4836
- WeakMap: PC_WITH_ARRAY,
4837
- WeakRef: C,
4915
+ WeakMap: PC_WITH_ARRAY_RETURNING_ARG_VALUES,
4916
+ WeakRef: {
4917
+ __proto__: null,
4918
+ [ValueProperties]: returningArguments(IMPURE),
4919
+ prototype: O
4920
+ },
4838
4921
  WeakSet: PC_WITH_ARRAY,
4839
4922
  // Additional globals shared by Node and Browser that are not strictly part of the language
4840
4923
  clearInterval: C,
@@ -18472,13 +18555,15 @@ class Module {
18472
18555
  code: null,
18473
18556
  get dynamicallyImportedIdResolutions() {
18474
18557
  return dynamicImports
18475
- .map(({ argument }) => typeof argument === 'string' && module.resolvedIds[argument])
18476
- .filter(Boolean);
18558
+ .map(({ resolution }) => resolution)
18559
+ .filter((resolution) => resolution !== null);
18477
18560
  },
18478
18561
  get dynamicallyImportedIds() {
18479
18562
  // We cannot use this.dynamicDependencies because this is needed before
18480
18563
  // dynamicDependencies are populated
18481
- return dynamicImports.map(({ id }) => id).filter((id) => id != null);
18564
+ return dynamicImports
18565
+ .map(({ resolution }) => resolution?.id)
18566
+ .filter((id) => id != null);
18482
18567
  },
18483
18568
  get dynamicImporters() {
18484
18569
  return dynamicImporters.sort();
@@ -19037,7 +19122,7 @@ class Module {
19037
19122
  typeof argument.value === 'string') {
19038
19123
  argument = argument.value;
19039
19124
  }
19040
- this.dynamicImports.push({ argument, id: null, node });
19125
+ this.dynamicImports.push({ argument, node, resolution: null });
19041
19126
  }
19042
19127
  assertUniqueExportName(name, nodeStart) {
19043
19128
  if (this.exportDescriptions.has(name) || this.reexportDescriptions.has(name)) {
@@ -22708,19 +22793,12 @@ async function resolveId(source, importer, preserveSymlinks, pluginDriver, modul
22708
22793
  const pluginResult = await resolveIdViaPlugins(source, importer, pluginDriver, moduleLoaderResolveId, skip, customOptions, isEntry, attributes, importerAttributes);
22709
22794
  if (pluginResult != null) {
22710
22795
  const [resolveIdResult, plugin] = pluginResult;
22711
- if (typeof resolveIdResult === 'object' && !resolveIdResult.resolvedBy) {
22712
- return {
22713
- ...resolveIdResult,
22714
- resolvedBy: plugin.name
22715
- };
22716
- }
22717
22796
  if (typeof resolveIdResult === 'string') {
22718
- return {
22719
- id: resolveIdResult,
22720
- resolvedBy: plugin.name
22721
- };
22797
+ return { id: resolveIdResult, resolvedBy: plugin.name };
22722
22798
  }
22723
- return resolveIdResult;
22799
+ return typeof resolveIdResult === 'object'
22800
+ ? withDefaultResolvedBy(resolveIdResult, plugin.name)
22801
+ : resolveIdResult;
22724
22802
  }
22725
22803
  // external modules (non-entry modules that start with neither '.' or '/')
22726
22804
  // are skipped at this stage.
@@ -22754,6 +22832,11 @@ async function findFile(file, preserveSymlinks, fs) {
22754
22832
  // suppress
22755
22833
  }
22756
22834
  }
22835
+ function withDefaultResolvedBy(resolution, pluginName) {
22836
+ return resolution.resolvedBy || !pluginName
22837
+ ? resolution
22838
+ : { ...resolution, resolvedBy: pluginName };
22839
+ }
22757
22840
 
22758
22841
  function stripBom(content) {
22759
22842
  if (content.charCodeAt(0) === 0xfe_ff) {
@@ -23461,7 +23544,7 @@ class ModuleLoader {
23461
23544
  }
23462
23545
  else {
23463
23546
  dynamicImport.node.shouldIncludeDynamicAttributes = !!resolvedId.external;
23464
- dynamicImport.id = resolvedId.id;
23547
+ dynamicImport.resolution = resolvedId;
23465
23548
  }
23466
23549
  return [dynamicImport, resolvedId];
23467
23550
  });
@@ -23549,11 +23632,13 @@ class ModuleLoader {
23549
23632
  : { id: resolveIdResult }, EMPTY_OBJECT), undefined, isEntry, false);
23550
23633
  }
23551
23634
  async resolveDynamicImport(module, specifier, importer, attributes) {
23552
- const resolution = await this.pluginDriver.hookFirst('resolveDynamicImport', [
23635
+ const pluginResult = await this.pluginDriver.hookFirstAndGetPlugin('resolveDynamicImport', [
23553
23636
  specifier,
23554
23637
  importer,
23555
23638
  { attributes, importerAttributes: module.info.attributes }
23556
23639
  ]);
23640
+ const resolution = pluginResult && pluginResult[0];
23641
+ const resolvedBy = resolution ? pluginResult[1].name : undefined;
23557
23642
  if (typeof specifier !== 'string') {
23558
23643
  if (typeof resolution === 'string') {
23559
23644
  return resolution;
@@ -23561,7 +23646,7 @@ class ModuleLoader {
23561
23646
  if (!resolution) {
23562
23647
  return null;
23563
23648
  }
23564
- return this.getResolvedIdWithDefaults(resolution, attributes);
23649
+ return this.getResolvedIdWithDefaults(withDefaultResolvedBy(resolution, resolvedBy), attributes);
23565
23650
  }
23566
23651
  if (resolution == null) {
23567
23652
  const existingResolution = module.resolvedIds[specifier];
@@ -23573,7 +23658,8 @@ class ModuleLoader {
23573
23658
  }
23574
23659
  return (module.resolvedIds[specifier] = this.handleInvalidResolvedId(await this.resolveId(specifier, module.id, EMPTY_OBJECT, false, attributes, module.info.attributes), specifier, module.id, attributes));
23575
23660
  }
23576
- return this.handleInvalidResolvedId(this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(resolution, importer, specifier), attributes), specifier, importer, attributes);
23661
+ const normalizedResolution = this.getNormalizedResolvedIdWithoutDefaults(resolution, importer, specifier);
23662
+ return this.handleInvalidResolvedId(this.getResolvedIdWithDefaults(normalizedResolution && withDefaultResolvedBy(normalizedResolution, resolvedBy), attributes), specifier, importer, attributes);
23577
23663
  }
23578
23664
  }
23579
23665
  function normalizeRelativeExternalId(source, importer) {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.68.3
4
- Fri, 13 Nov 2026 08:23:38 GMT - commit 0c5497fb4d86cc769380d4945574488113e08ac2
3
+ Rollup.js v4.68.4
4
+ Mon, 16 Nov 2026 08:59:19 GMT - commit 9b2de5068e925a3b07bea67c972de21a347af9d9
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.68.3
4
- Fri, 13 Nov 2026 08:23:38 GMT - commit 0c5497fb4d86cc769380d4945574488113e08ac2
3
+ Rollup.js v4.68.4
4
+ Mon, 16 Nov 2026 08:59:19 GMT - commit 9b2de5068e925a3b07bea67c972de21a347af9d9
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.68.3
4
- Fri, 13 Nov 2026 08:23:38 GMT - commit 0c5497fb4d86cc769380d4945574488113e08ac2
3
+ Rollup.js v4.68.4
4
+ Mon, 16 Nov 2026 08:59:19 GMT - commit 9b2de5068e925a3b07bea67c972de21a347af9d9
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.68.3
4
- Fri, 13 Nov 2026 08:23:38 GMT - commit 0c5497fb4d86cc769380d4945574488113e08ac2
3
+ Rollup.js v4.68.4
4
+ Mon, 16 Nov 2026 08:59:19 GMT - commit 9b2de5068e925a3b07bea67c972de21a347af9d9
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/parseAst.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.68.3
4
- Fri, 13 Nov 2026 08:23:38 GMT - commit 0c5497fb4d86cc769380d4945574488113e08ac2
3
+ Rollup.js v4.68.4
4
+ Mon, 16 Nov 2026 08:59:19 GMT - commit 9b2de5068e925a3b07bea67c972de21a347af9d9
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.68.3
4
- Fri, 13 Nov 2026 08:23:38 GMT - commit 0c5497fb4d86cc769380d4945574488113e08ac2
3
+ Rollup.js v4.68.4
4
+ Mon, 16 Nov 2026 08:59:19 GMT - commit 9b2de5068e925a3b07bea67c972de21a347af9d9
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.68.3
4
- Fri, 13 Nov 2026 08:23:38 GMT - commit 0c5497fb4d86cc769380d4945574488113e08ac2
3
+ Rollup.js v4.68.4
4
+ Mon, 16 Nov 2026 08:59:19 GMT - commit 9b2de5068e925a3b07bea67c972de21a347af9d9
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.68.3
4
- Fri, 13 Nov 2026 08:23:38 GMT - commit 0c5497fb4d86cc769380d4945574488113e08ac2
3
+ Rollup.js v4.68.4
4
+ Mon, 16 Nov 2026 08:59:19 GMT - commit 9b2de5068e925a3b07bea67c972de21a347af9d9
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.68.3
4
- Fri, 13 Nov 2026 08:23:38 GMT - commit 0c5497fb4d86cc769380d4945574488113e08ac2
3
+ Rollup.js v4.68.4
4
+ Mon, 16 Nov 2026 08:59:19 GMT - commit 9b2de5068e925a3b07bea67c972de21a347af9d9
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.68.3
4
- Fri, 13 Nov 2026 08:23:38 GMT - commit 0c5497fb4d86cc769380d4945574488113e08ac2
3
+ Rollup.js v4.68.4
4
+ Mon, 16 Nov 2026 08:59:19 GMT - commit 9b2de5068e925a3b07bea67c972de21a347af9d9
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.68.3
4
- Fri, 13 Nov 2026 08:23:38 GMT - commit 0c5497fb4d86cc769380d4945574488113e08ac2
3
+ Rollup.js v4.68.4
4
+ Mon, 16 Nov 2026 08:59:19 GMT - commit 9b2de5068e925a3b07bea67c972de21a347af9d9
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.68.3
4
- Fri, 13 Nov 2026 08:23:38 GMT - commit 0c5497fb4d86cc769380d4945574488113e08ac2
3
+ Rollup.js v4.68.4
4
+ Mon, 16 Nov 2026 08:59:19 GMT - commit 9b2de5068e925a3b07bea67c972de21a347af9d9
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.68.3";
45
+ var version = "4.68.4";
46
46
  const package_ = {
47
47
  version: version};
48
48
 
@@ -8688,6 +8688,29 @@ const IMPURE = {
8688
8688
  getLiteralValue: getUnknownValue,
8689
8689
  hasEffectsWhenCalled: returnTrue
8690
8690
  };
8691
+ // For functions that return their arguments, the arguments can be mutated via
8692
+ // the return value
8693
+ const deoptimizeArguments = ({ args }) => {
8694
+ for (let index = 1; index < args.length; index++) {
8695
+ args[index]?.deoptimizePath(UNKNOWN_PATH);
8696
+ }
8697
+ };
8698
+ // For functions that return values stored in their arguments (but not the
8699
+ // arguments themselves), those values can be mutated via the return value
8700
+ const UNKNOWN_VALUES_PATH = [UnknownKey, UnknownKey];
8701
+ const deoptimizeArgumentValues = ({ args }) => {
8702
+ for (let index = 1; index < args.length; index++) {
8703
+ args[index]?.deoptimizePath(UNKNOWN_VALUES_PATH);
8704
+ }
8705
+ };
8706
+ const returningArguments = (description) => ({
8707
+ ...description,
8708
+ deoptimizeArgumentsOnCall: deoptimizeArguments
8709
+ });
8710
+ const returningArgumentValues = (description) => ({
8711
+ ...description,
8712
+ deoptimizeArgumentsOnCall: deoptimizeArgumentValues
8713
+ });
8691
8714
  const PURE_WITH_ARRAY = {
8692
8715
  deoptimizeArgumentsOnCall: doNothing,
8693
8716
  getLiteralValue: getUnknownValue,
@@ -8707,8 +8730,9 @@ const PURE_WITH_ARRAY_OR_LENGTH = {
8707
8730
  }) !== 'number');
8708
8731
  }
8709
8732
  };
8733
+ // Used for Object.entries and Object.values, which return the property values
8710
8734
  const GETTER_ACCESS = {
8711
- deoptimizeArgumentsOnCall: doNothing,
8735
+ deoptimizeArgumentsOnCall: deoptimizeArgumentValues,
8712
8736
  getLiteralValue: getUnknownValue,
8713
8737
  hasEffectsWhenCalled({ args }, context) {
8714
8738
  const [_thisArgument, firstArgument] = args;
@@ -8727,17 +8751,60 @@ const PF = {
8727
8751
  __proto__: null,
8728
8752
  [ValueProperties]: PURE
8729
8753
  };
8754
+ /* OBJECT THAT RETURNS ITS ARGUMENTS WHEN CALLED */
8755
+ const O_RETURNING_ARGS = {
8756
+ __proto__: null,
8757
+ [ValueProperties]: returningArguments(IMPURE)
8758
+ };
8759
+ /* OBJECT THAT RETURNS VALUES STORED IN ITS ARGUMENTS WHEN CALLED */
8760
+ const O_RETURNING_ARG_VALUES = {
8761
+ __proto__: null,
8762
+ [ValueProperties]: returningArgumentValues(IMPURE)
8763
+ };
8764
+ /* Array.from RETURNS THE VALUES OF THE ITERABLE OR WHATEVER THE MAPPER RETURNS */
8765
+ const ARRAY_FROM = {
8766
+ __proto__: null,
8767
+ [ValueProperties]: {
8768
+ ...IMPURE,
8769
+ deoptimizeArgumentsOnCall({ args: [, iterable, ...otherArguments] }) {
8770
+ iterable?.deoptimizePath(UNKNOWN_VALUES_PATH);
8771
+ // The mapper is called by the global, so its return value and its
8772
+ // parameters, as well as the this argument, are no longer tracked.
8773
+ // As spread arguments mean that the mapper and this argument do not
8774
+ // necessarily have a fixed position, we deoptimize all remaining
8775
+ // arguments.
8776
+ for (const argument of otherArguments) {
8777
+ argument.deoptimizePath(UNKNOWN_PATH);
8778
+ }
8779
+ }
8780
+ }
8781
+ };
8782
+ /* PURE FUNCTION THAT RETURNS ITS ARGUMENTS */
8783
+ const PF_RETURNING_ARGS = {
8784
+ __proto__: null,
8785
+ [ValueProperties]: returningArguments(PURE)
8786
+ };
8787
+ /* PURE FUNCTION THAT RETURNS VALUES STORED IN ITS ARGUMENTS */
8788
+ const PF_RETURNING_ARG_VALUES = {
8789
+ __proto__: null,
8790
+ [ValueProperties]: returningArgumentValues(PURE)
8791
+ };
8730
8792
  /* PURE FUNCTION IF FIRST ARG DOES NOT CONTAIN A GETTER */
8731
8793
  const PF_NO_GETTER = {
8732
8794
  __proto__: null,
8733
8795
  [ValueProperties]: GETTER_ACCESS
8734
8796
  };
8735
8797
  /* FUNCTION THAT MUTATES FIRST ARG WITHOUT TRIGGERING ACCESSORS */
8798
+ // For defineProperty and defineProperties, the values of the property
8799
+ // descriptors also become reachable via the first argument
8736
8800
  const MUTATES_ARG_WITHOUT_ACCESSOR = {
8737
8801
  __proto__: null,
8738
8802
  [ValueProperties]: {
8739
- deoptimizeArgumentsOnCall({ args: [, firstArgument] }) {
8803
+ deoptimizeArgumentsOnCall({ args: [, firstArgument, ...otherArguments] }) {
8740
8804
  firstArgument?.deoptimizePath(UNKNOWN_PATH);
8805
+ for (const argument of otherArguments) {
8806
+ argument.deoptimizePath(UNKNOWN_VALUES_PATH);
8807
+ }
8741
8808
  },
8742
8809
  getLiteralValue: getUnknownValue,
8743
8810
  hasEffectsWhenCalled({ args }, context) {
@@ -8763,6 +8830,18 @@ const PC_WITH_ARRAY = {
8763
8830
  [ValueProperties]: PURE_WITH_ARRAY,
8764
8831
  prototype: O
8765
8832
  };
8833
+ /* PURE CONSTRUCTOR WITH ARRAY WHOSE INSTANCES EXPOSE THE VALUES OF THE ARRAY */
8834
+ const PC_WITH_ARRAY_RETURNING_ARG_VALUES = {
8835
+ __proto__: null,
8836
+ [ValueProperties]: returningArgumentValues(PURE_WITH_ARRAY),
8837
+ prototype: O
8838
+ };
8839
+ /* PURE CONSTRUCTOR WHOSE INSTANCES EXPOSE VALUES STORED IN ITS ARGUMENTS */
8840
+ const PC_RETURNING_ARG_VALUES = {
8841
+ __proto__: null,
8842
+ [ValueProperties]: returningArgumentValues(PURE),
8843
+ prototype: O
8844
+ };
8766
8845
  const ARRAY_TYPE = {
8767
8846
  __proto__: null,
8768
8847
  [ValueProperties]: PURE_WITH_ARRAY_OR_LENGTH,
@@ -8791,10 +8870,10 @@ const knownGlobals = {
8791
8870
  [ValueProperties]: IMPURE,
8792
8871
  Array: {
8793
8872
  __proto__: null,
8794
- [ValueProperties]: IMPURE,
8795
- from: O,
8873
+ [ValueProperties]: returningArguments(IMPURE),
8874
+ from: ARRAY_FROM,
8796
8875
  isArray: PF,
8797
- of: PF,
8876
+ of: PF_RETURNING_ARGS,
8798
8877
  prototype: O
8799
8878
  },
8800
8879
  ArrayBuffer: {
@@ -8803,7 +8882,7 @@ const knownGlobals = {
8803
8882
  isView: PF,
8804
8883
  prototype: O
8805
8884
  },
8806
- AggregateError: PC_WITH_ARRAY,
8885
+ AggregateError: PC_WITH_ARRAY_RETURNING_ARG_VALUES,
8807
8886
  Atomics: O,
8808
8887
  BigInt: C,
8809
8888
  BigInt64Array: C,
@@ -8823,10 +8902,10 @@ const knownGlobals = {
8823
8902
  decodeURIComponent: PF,
8824
8903
  encodeURI: PF,
8825
8904
  encodeURIComponent: PF,
8826
- Error: PC,
8905
+ Error: PC_RETURNING_ARG_VALUES,
8827
8906
  escape: PF,
8828
8907
  eval: O,
8829
- EvalError: PC,
8908
+ EvalError: PC_RETURNING_ARG_VALUES,
8830
8909
  FinalizationRegistry: C,
8831
8910
  Float32Array: ARRAY_TYPE,
8832
8911
  Float64Array: ARRAY_TYPE,
@@ -8840,7 +8919,7 @@ const knownGlobals = {
8840
8919
  isNaN: PF,
8841
8920
  isPrototypeOf: O,
8842
8921
  JSON: O,
8843
- Map: PC_WITH_ARRAY,
8922
+ Map: PC_WITH_ARRAY_RETURNING_ARG_VALUES,
8844
8923
  Math: {
8845
8924
  __proto__: null,
8846
8925
  [ValueProperties]: IMPURE,
@@ -8894,16 +8973,16 @@ const knownGlobals = {
8894
8973
  },
8895
8974
  Object: {
8896
8975
  __proto__: null,
8897
- [ValueProperties]: PURE,
8898
- create: PF,
8976
+ [ValueProperties]: returningArguments(PURE),
8977
+ create: PF_RETURNING_ARG_VALUES,
8899
8978
  // Technically those can throw in certain situations, but we ignore this as
8900
8979
  // code that relies on this will hopefully wrap this in a try-catch, which
8901
8980
  // deoptimizes everything anyway
8902
8981
  defineProperty: MUTATES_ARG_WITHOUT_ACCESSOR,
8903
8982
  defineProperties: MUTATES_ARG_WITHOUT_ACCESSOR,
8904
8983
  freeze: MUTATES_ARG_WITHOUT_ACCESSOR,
8905
- getOwnPropertyDescriptor: PF,
8906
- getOwnPropertyDescriptors: PF,
8984
+ getOwnPropertyDescriptor: PF_RETURNING_ARG_VALUES,
8985
+ getOwnPropertyDescriptors: PF_RETURNING_ARG_VALUES,
8907
8986
  getOwnPropertyNames: PF,
8908
8987
  getOwnPropertySymbols: PF,
8909
8988
  getPrototypeOf: PF,
@@ -8913,7 +8992,7 @@ const knownGlobals = {
8913
8992
  isFrozen: PF,
8914
8993
  isSealed: PF,
8915
8994
  keys: PF,
8916
- fromEntries: O,
8995
+ fromEntries: O_RETURNING_ARG_VALUES,
8917
8996
  entries: PF_NO_GETTER,
8918
8997
  values: PF_NO_GETTER,
8919
8998
  prototype: O
@@ -8923,13 +9002,13 @@ const knownGlobals = {
8923
9002
  Promise: {
8924
9003
  __proto__: null,
8925
9004
  [ValueProperties]: IMPURE,
8926
- all: O,
8927
- allSettled: O,
8928
- any: O,
9005
+ all: O_RETURNING_ARG_VALUES,
9006
+ allSettled: O_RETURNING_ARG_VALUES,
9007
+ any: O_RETURNING_ARG_VALUES,
8929
9008
  prototype: O,
8930
- race: O,
8931
- reject: O,
8932
- resolve: O
9009
+ race: O_RETURNING_ARG_VALUES,
9010
+ reject: O_RETURNING_ARGS,
9011
+ resolve: O_RETURNING_ARGS
8933
9012
  },
8934
9013
  propertyIsEnumerable: O,
8935
9014
  Proxy: {
@@ -8955,11 +9034,11 @@ const knownGlobals = {
8955
9034
  hasEffectsWhenCalled: returnTrue
8956
9035
  }
8957
9036
  },
8958
- RangeError: PC,
8959
- ReferenceError: PC,
9037
+ RangeError: PC_RETURNING_ARG_VALUES,
9038
+ ReferenceError: PC_RETURNING_ARG_VALUES,
8960
9039
  Reflect: O,
8961
9040
  RegExp: PC,
8962
- Set: PC_WITH_ARRAY,
9041
+ Set: PC_WITH_ARRAY_RETURNING_ARG_VALUES,
8963
9042
  SharedArrayBuffer: C,
8964
9043
  String: {
8965
9044
  __proto__: null,
@@ -8980,10 +9059,10 @@ const knownGlobals = {
8980
9059
  hasInstance: getWellKnownSymbol(SymbolHasInstance),
8981
9060
  toStringTag: getWellKnownSymbol(SymbolToStringTag)
8982
9061
  },
8983
- SyntaxError: PC,
9062
+ SyntaxError: PC_RETURNING_ARG_VALUES,
8984
9063
  toLocaleString: O,
8985
9064
  toString: O,
8986
- TypeError: PC,
9065
+ TypeError: PC_RETURNING_ARG_VALUES,
8987
9066
  Uint16Array: ARRAY_TYPE,
8988
9067
  Uint32Array: ARRAY_TYPE,
8989
9068
  Uint8Array: ARRAY_TYPE,
@@ -8991,10 +9070,14 @@ const knownGlobals = {
8991
9070
  // Technically, this is a global, but it needs special handling
8992
9071
  // undefined: ?,
8993
9072
  unescape: PF,
8994
- URIError: PC,
9073
+ URIError: PC_RETURNING_ARG_VALUES,
8995
9074
  valueOf: O,
8996
- WeakMap: PC_WITH_ARRAY,
8997
- WeakRef: C,
9075
+ WeakMap: PC_WITH_ARRAY_RETURNING_ARG_VALUES,
9076
+ WeakRef: {
9077
+ __proto__: null,
9078
+ [ValueProperties]: returningArguments(IMPURE),
9079
+ prototype: O
9080
+ },
8998
9081
  WeakSet: PC_WITH_ARRAY,
8999
9082
  // Additional globals shared by Node and Browser that are not strictly part of the language
9000
9083
  clearInterval: C,
@@ -20082,13 +20165,15 @@ class Module {
20082
20165
  code: null,
20083
20166
  get dynamicallyImportedIdResolutions() {
20084
20167
  return dynamicImports
20085
- .map(({ argument }) => typeof argument === 'string' && module.resolvedIds[argument])
20086
- .filter(Boolean);
20168
+ .map(({ resolution }) => resolution)
20169
+ .filter((resolution) => resolution !== null);
20087
20170
  },
20088
20171
  get dynamicallyImportedIds() {
20089
20172
  // We cannot use this.dynamicDependencies because this is needed before
20090
20173
  // dynamicDependencies are populated
20091
- return dynamicImports.map(({ id }) => id).filter((id) => id != null);
20174
+ return dynamicImports
20175
+ .map(({ resolution }) => resolution?.id)
20176
+ .filter((id) => id != null);
20092
20177
  },
20093
20178
  get dynamicImporters() {
20094
20179
  return dynamicImporters.sort();
@@ -20647,7 +20732,7 @@ class Module {
20647
20732
  typeof argument.value === 'string') {
20648
20733
  argument = argument.value;
20649
20734
  }
20650
- this.dynamicImports.push({ argument, id: null, node });
20735
+ this.dynamicImports.push({ argument, node, resolution: null });
20651
20736
  }
20652
20737
  assertUniqueExportName(name, nodeStart) {
20653
20738
  if (this.exportDescriptions.has(name) || this.reexportDescriptions.has(name)) {
@@ -24184,19 +24269,12 @@ async function resolveId(source, importer, preserveSymlinks, pluginDriver, modul
24184
24269
  const pluginResult = await resolveIdViaPlugins(source, importer, pluginDriver, moduleLoaderResolveId, skip, customOptions, isEntry, attributes, importerAttributes);
24185
24270
  if (pluginResult != null) {
24186
24271
  const [resolveIdResult, plugin] = pluginResult;
24187
- if (typeof resolveIdResult === 'object' && !resolveIdResult.resolvedBy) {
24188
- return {
24189
- ...resolveIdResult,
24190
- resolvedBy: plugin.name
24191
- };
24192
- }
24193
24272
  if (typeof resolveIdResult === 'string') {
24194
- return {
24195
- id: resolveIdResult,
24196
- resolvedBy: plugin.name
24197
- };
24273
+ return { id: resolveIdResult, resolvedBy: plugin.name };
24198
24274
  }
24199
- return resolveIdResult;
24275
+ return typeof resolveIdResult === 'object'
24276
+ ? withDefaultResolvedBy(resolveIdResult, plugin.name)
24277
+ : resolveIdResult;
24200
24278
  }
24201
24279
  // external modules (non-entry modules that start with neither '.' or '/')
24202
24280
  // are skipped at this stage.
@@ -24230,6 +24308,11 @@ async function findFile(file, preserveSymlinks, fs) {
24230
24308
  // suppress
24231
24309
  }
24232
24310
  }
24311
+ function withDefaultResolvedBy(resolution, pluginName) {
24312
+ return resolution.resolvedBy || !pluginName
24313
+ ? resolution
24314
+ : { ...resolution, resolvedBy: pluginName };
24315
+ }
24233
24316
 
24234
24317
  function stripBom(content) {
24235
24318
  if (content.charCodeAt(0) === 0xfe_ff) {
@@ -24692,7 +24775,7 @@ class ModuleLoader {
24692
24775
  }
24693
24776
  else {
24694
24777
  dynamicImport.node.shouldIncludeDynamicAttributes = !!resolvedId.external;
24695
- dynamicImport.id = resolvedId.id;
24778
+ dynamicImport.resolution = resolvedId;
24696
24779
  }
24697
24780
  return [dynamicImport, resolvedId];
24698
24781
  });
@@ -24780,11 +24863,13 @@ class ModuleLoader {
24780
24863
  : { id: resolveIdResult }, parseAst_js.EMPTY_OBJECT), undefined, isEntry, false);
24781
24864
  }
24782
24865
  async resolveDynamicImport(module, specifier, importer, attributes) {
24783
- const resolution = await this.pluginDriver.hookFirst('resolveDynamicImport', [
24866
+ const pluginResult = await this.pluginDriver.hookFirstAndGetPlugin('resolveDynamicImport', [
24784
24867
  specifier,
24785
24868
  importer,
24786
24869
  { attributes, importerAttributes: module.info.attributes }
24787
24870
  ]);
24871
+ const resolution = pluginResult && pluginResult[0];
24872
+ const resolvedBy = resolution ? pluginResult[1].name : undefined;
24788
24873
  if (typeof specifier !== 'string') {
24789
24874
  if (typeof resolution === 'string') {
24790
24875
  return resolution;
@@ -24792,7 +24877,7 @@ class ModuleLoader {
24792
24877
  if (!resolution) {
24793
24878
  return null;
24794
24879
  }
24795
- return this.getResolvedIdWithDefaults(resolution, attributes);
24880
+ return this.getResolvedIdWithDefaults(withDefaultResolvedBy(resolution, resolvedBy), attributes);
24796
24881
  }
24797
24882
  if (resolution == null) {
24798
24883
  const existingResolution = module.resolvedIds[specifier];
@@ -24804,7 +24889,8 @@ class ModuleLoader {
24804
24889
  }
24805
24890
  return (module.resolvedIds[specifier] = this.handleInvalidResolvedId(await this.resolveId(specifier, module.id, parseAst_js.EMPTY_OBJECT, false, attributes, module.info.attributes), specifier, module.id, attributes));
24806
24891
  }
24807
- return this.handleInvalidResolvedId(this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(resolution, importer, specifier), attributes), specifier, importer, attributes);
24892
+ const normalizedResolution = this.getNormalizedResolvedIdWithoutDefaults(resolution, importer, specifier);
24893
+ return this.handleInvalidResolvedId(this.getResolvedIdWithDefaults(normalizedResolution && withDefaultResolvedBy(normalizedResolution, resolvedBy), attributes), specifier, importer, attributes);
24808
24894
  }
24809
24895
  }
24810
24896
  function normalizeRelativeExternalId(source, importer) {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.68.3
4
- Fri, 13 Nov 2026 08:23:38 GMT - commit 0c5497fb4d86cc769380d4945574488113e08ac2
3
+ Rollup.js v4.68.4
4
+ Mon, 16 Nov 2026 08:59:19 GMT - commit 9b2de5068e925a3b07bea67c972de21a347af9d9
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.68.3
4
- Fri, 13 Nov 2026 08:23:38 GMT - commit 0c5497fb4d86cc769380d4945574488113e08ac2
3
+ Rollup.js v4.68.4
4
+ Mon, 16 Nov 2026 08:59:19 GMT - commit 9b2de5068e925a3b07bea67c972de21a347af9d9
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rollup/wasm-node",
3
- "version": "4.68.3",
3
+ "version": "4.68.4",
4
4
  "description": "Next-generation ES module bundler with Node wasm",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",