rollup 4.62.1 → 4.62.2

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.62.1
5
- Fri, 19 Jun 2026 12:41:14 GMT - commit caacf701b89e5be4a94b3ffdbf70b51e5cfa3a1a
4
+ Rollup.js v4.62.2
5
+ Fri, 19 Jun 2026 14:55:11 GMT - commit 8faa18777374582bb813d54ce3623f4acf1f9e0b
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.62.1\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";
30
+ const help = "rollup version 4.62.2\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
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.62.1
4
- Fri, 19 Jun 2026 12:41:14 GMT - commit caacf701b89e5be4a94b3ffdbf70b51e5cfa3a1a
3
+ Rollup.js v4.62.2
4
+ Fri, 19 Jun 2026 14:55:11 GMT - commit 8faa18777374582bb813d54ce3623f4acf1f9e0b
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.62.1
4
- Fri, 19 Jun 2026 12:41:14 GMT - commit caacf701b89e5be4a94b3ffdbf70b51e5cfa3a1a
3
+ Rollup.js v4.62.2
4
+ Fri, 19 Jun 2026 14:55:11 GMT - commit 8faa18777374582bb813d54ce3623f4acf1f9e0b
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.62.1
4
- Fri, 19 Jun 2026 12:41:14 GMT - commit caacf701b89e5be4a94b3ffdbf70b51e5cfa3a1a
3
+ Rollup.js v4.62.2
4
+ Fri, 19 Jun 2026 14:55:11 GMT - commit 8faa18777374582bb813d54ce3623f4acf1f9e0b
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.62.1
4
- Fri, 19 Jun 2026 12:41:14 GMT - commit caacf701b89e5be4a94b3ffdbf70b51e5cfa3a1a
3
+ Rollup.js v4.62.2
4
+ Fri, 19 Jun 2026 14:55:11 GMT - commit 8faa18777374582bb813d54ce3623f4acf1f9e0b
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.62.1";
30
+ var version = "4.62.2";
31
31
  const package_ = {
32
32
  version: version};
33
33
 
@@ -8187,6 +8187,9 @@ class ExternalChunk {
8187
8187
  this.renormalizeRenderPath = module.renormalizeRenderPath;
8188
8188
  this.suggestedVariableName = module.suggestedVariableName;
8189
8189
  }
8190
+ get moduleSideEffects() {
8191
+ return this.moduleInfo.moduleSideEffects;
8192
+ }
8190
8193
  getFileName() {
8191
8194
  if (this.fileName) {
8192
8195
  return this.fileName;
@@ -18959,13 +18962,14 @@ class Chunk {
18959
18962
  if (this.renderedChunkInfo) {
18960
18963
  return this.renderedChunkInfo;
18961
18964
  }
18965
+ const renderedDependencies = this.getRenderedDependencies();
18962
18966
  return (this.renderedChunkInfo = {
18963
18967
  ...this.getPreRenderedChunkInfo(),
18964
18968
  dynamicImports: this.getDynamicDependencies().map(resolveFileName),
18965
18969
  fileName: this.getFileName(),
18966
18970
  implicitlyLoadedBefore: Array.from(this.implicitlyLoadedBefore, resolveFileName),
18967
- importedBindings: getImportedBindingsPerDependency(this.getRenderedDependencies(), resolveFileName),
18968
- imports: Array.from(this.dependencies, resolveFileName),
18971
+ importedBindings: getImportedBindingsPerDependency(renderedDependencies, resolveFileName),
18972
+ imports: Array.from(renderedDependencies.keys(), resolveFileName),
18969
18973
  modules: this.renderedModules,
18970
18974
  referencedFiles: this.getReferencedFiles()
18971
18975
  });
@@ -19467,6 +19471,18 @@ class Chunk {
19467
19471
  for (const dependency of this.dependencies) {
19468
19472
  const imports = importSpecifiers.get(dependency) || null;
19469
19473
  const reexports = reexportSpecifiers.get(dependency) || null;
19474
+ if (imports === null &&
19475
+ reexports === null &&
19476
+ dependency instanceof ExternalChunk &&
19477
+ !dependency.moduleSideEffects &&
19478
+ !this.outputOptions.hoistTransitiveImports) {
19479
+ // A side-effect-free external dependency without imported or
19480
+ // re-exported bindings can only be present because chunk assignment
19481
+ // placed otherwise unrelated modules into this chunk. When transitive
19482
+ // import hoisting is disabled, rendering it would emit a spurious
19483
+ // side effect import, see https://github.com/rollup/rollup/issues/6111
19484
+ continue;
19485
+ }
19470
19486
  const namedExportsMode = dependency instanceof ExternalChunk || dependency.exportMode !== 'default';
19471
19487
  const importPath = dependency.getImportPath(fileName);
19472
19488
  // Separate source-phase imports from regular imports
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.62.1
4
- Fri, 19 Jun 2026 12:41:14 GMT - commit caacf701b89e5be4a94b3ffdbf70b51e5cfa3a1a
3
+ Rollup.js v4.62.2
4
+ Fri, 19 Jun 2026 14:55:11 GMT - commit 8faa18777374582bb813d54ce3623f4acf1f9e0b
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.62.1
4
- Fri, 19 Jun 2026 12:41:14 GMT - commit caacf701b89e5be4a94b3ffdbf70b51e5cfa3a1a
3
+ Rollup.js v4.62.2
4
+ Fri, 19 Jun 2026 14:55:11 GMT - commit 8faa18777374582bb813d54ce3623f4acf1f9e0b
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.62.1
4
- Fri, 19 Jun 2026 12:41:14 GMT - commit caacf701b89e5be4a94b3ffdbf70b51e5cfa3a1a
3
+ Rollup.js v4.62.2
4
+ Fri, 19 Jun 2026 14:55:11 GMT - commit 8faa18777374582bb813d54ce3623f4acf1f9e0b
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.62.1
4
- Fri, 19 Jun 2026 12:41:14 GMT - commit caacf701b89e5be4a94b3ffdbf70b51e5cfa3a1a
3
+ Rollup.js v4.62.2
4
+ Fri, 19 Jun 2026 14:55:11 GMT - commit 8faa18777374582bb813d54ce3623f4acf1f9e0b
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.62.1
4
- Fri, 19 Jun 2026 12:41:14 GMT - commit caacf701b89e5be4a94b3ffdbf70b51e5cfa3a1a
3
+ Rollup.js v4.62.2
4
+ Fri, 19 Jun 2026 14:55:11 GMT - commit 8faa18777374582bb813d54ce3623f4acf1f9e0b
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.62.1
4
- Fri, 19 Jun 2026 12:41:14 GMT - commit caacf701b89e5be4a94b3ffdbf70b51e5cfa3a1a
3
+ Rollup.js v4.62.2
4
+ Fri, 19 Jun 2026 14:55:11 GMT - commit 8faa18777374582bb813d54ce3623f4acf1f9e0b
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.62.1
4
- Fri, 19 Jun 2026 12:41:14 GMT - commit caacf701b89e5be4a94b3ffdbf70b51e5cfa3a1a
3
+ Rollup.js v4.62.2
4
+ Fri, 19 Jun 2026 14:55:11 GMT - commit 8faa18777374582bb813d54ce3623f4acf1f9e0b
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.62.1
4
- Fri, 19 Jun 2026 12:41:14 GMT - commit caacf701b89e5be4a94b3ffdbf70b51e5cfa3a1a
3
+ Rollup.js v4.62.2
4
+ Fri, 19 Jun 2026 14:55:11 GMT - commit 8faa18777374582bb813d54ce3623f4acf1f9e0b
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.62.1
4
- Fri, 19 Jun 2026 12:41:14 GMT - commit caacf701b89e5be4a94b3ffdbf70b51e5cfa3a1a
3
+ Rollup.js v4.62.2
4
+ Fri, 19 Jun 2026 14:55:11 GMT - commit 8faa18777374582bb813d54ce3623f4acf1f9e0b
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.62.1
4
- Fri, 19 Jun 2026 12:41:14 GMT - commit caacf701b89e5be4a94b3ffdbf70b51e5cfa3a1a
3
+ Rollup.js v4.62.2
4
+ Fri, 19 Jun 2026 14:55:11 GMT - commit 8faa18777374582bb813d54ce3623f4acf1f9e0b
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.62.1
4
- Fri, 19 Jun 2026 12:41:14 GMT - commit caacf701b89e5be4a94b3ffdbf70b51e5cfa3a1a
3
+ Rollup.js v4.62.2
4
+ Fri, 19 Jun 2026 14:55:11 GMT - commit 8faa18777374582bb813d54ce3623f4acf1f9e0b
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.62.1";
45
+ var version = "4.62.2";
46
46
  const package_ = {
47
47
  version: version};
48
48
 
@@ -12284,6 +12284,9 @@ class ExternalChunk {
12284
12284
  this.renormalizeRenderPath = module.renormalizeRenderPath;
12285
12285
  this.suggestedVariableName = module.suggestedVariableName;
12286
12286
  }
12287
+ get moduleSideEffects() {
12288
+ return this.moduleInfo.moduleSideEffects;
12289
+ }
12287
12290
  getFileName() {
12288
12291
  if (this.fileName) {
12289
12292
  return this.fileName;
@@ -20455,13 +20458,14 @@ class Chunk {
20455
20458
  if (this.renderedChunkInfo) {
20456
20459
  return this.renderedChunkInfo;
20457
20460
  }
20461
+ const renderedDependencies = this.getRenderedDependencies();
20458
20462
  return (this.renderedChunkInfo = {
20459
20463
  ...this.getPreRenderedChunkInfo(),
20460
20464
  dynamicImports: this.getDynamicDependencies().map(resolveFileName),
20461
20465
  fileName: this.getFileName(),
20462
20466
  implicitlyLoadedBefore: Array.from(this.implicitlyLoadedBefore, resolveFileName),
20463
- importedBindings: getImportedBindingsPerDependency(this.getRenderedDependencies(), resolveFileName),
20464
- imports: Array.from(this.dependencies, resolveFileName),
20467
+ importedBindings: getImportedBindingsPerDependency(renderedDependencies, resolveFileName),
20468
+ imports: Array.from(renderedDependencies.keys(), resolveFileName),
20465
20469
  modules: this.renderedModules,
20466
20470
  referencedFiles: this.getReferencedFiles()
20467
20471
  });
@@ -20963,6 +20967,18 @@ class Chunk {
20963
20967
  for (const dependency of this.dependencies) {
20964
20968
  const imports = importSpecifiers.get(dependency) || null;
20965
20969
  const reexports = reexportSpecifiers.get(dependency) || null;
20970
+ if (imports === null &&
20971
+ reexports === null &&
20972
+ dependency instanceof ExternalChunk &&
20973
+ !dependency.moduleSideEffects &&
20974
+ !this.outputOptions.hoistTransitiveImports) {
20975
+ // A side-effect-free external dependency without imported or
20976
+ // re-exported bindings can only be present because chunk assignment
20977
+ // placed otherwise unrelated modules into this chunk. When transitive
20978
+ // import hoisting is disabled, rendering it would emit a spurious
20979
+ // side effect import, see https://github.com/rollup/rollup/issues/6111
20980
+ continue;
20981
+ }
20966
20982
  const namedExportsMode = dependency instanceof ExternalChunk || dependency.exportMode !== 'default';
20967
20983
  const importPath = dependency.getImportPath(fileName);
20968
20984
  // Separate source-phase imports from regular imports
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.62.1
4
- Fri, 19 Jun 2026 12:41:14 GMT - commit caacf701b89e5be4a94b3ffdbf70b51e5cfa3a1a
3
+ Rollup.js v4.62.2
4
+ Fri, 19 Jun 2026 14:55:11 GMT - commit 8faa18777374582bb813d54ce3623f4acf1f9e0b
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.62.1
4
- Fri, 19 Jun 2026 12:41:14 GMT - commit caacf701b89e5be4a94b3ffdbf70b51e5cfa3a1a
3
+ Rollup.js v4.62.2
4
+ Fri, 19 Jun 2026 14:55:11 GMT - commit 8faa18777374582bb813d54ce3623f4acf1f9e0b
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",
3
- "version": "4.62.1",
3
+ "version": "4.62.2",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -114,31 +114,31 @@
114
114
  "homepage": "https://rollupjs.org/",
115
115
  "optionalDependencies": {
116
116
  "fsevents": "~2.3.2",
117
- "@rollup/rollup-darwin-arm64": "4.62.1",
118
- "@rollup/rollup-android-arm64": "4.62.1",
119
- "@rollup/rollup-win32-arm64-msvc": "4.62.1",
120
- "@rollup/rollup-freebsd-arm64": "4.62.1",
121
- "@rollup/rollup-linux-arm64-gnu": "4.62.1",
122
- "@rollup/rollup-linux-arm64-musl": "4.62.1",
123
- "@rollup/rollup-android-arm-eabi": "4.62.1",
124
- "@rollup/rollup-linux-arm-gnueabihf": "4.62.1",
125
- "@rollup/rollup-linux-arm-musleabihf": "4.62.1",
126
- "@rollup/rollup-win32-ia32-msvc": "4.62.1",
127
- "@rollup/rollup-linux-loong64-gnu": "4.62.1",
128
- "@rollup/rollup-linux-loong64-musl": "4.62.1",
129
- "@rollup/rollup-linux-riscv64-gnu": "4.62.1",
130
- "@rollup/rollup-linux-riscv64-musl": "4.62.1",
131
- "@rollup/rollup-linux-ppc64-gnu": "4.62.1",
132
- "@rollup/rollup-linux-ppc64-musl": "4.62.1",
133
- "@rollup/rollup-linux-s390x-gnu": "4.62.1",
134
- "@rollup/rollup-darwin-x64": "4.62.1",
135
- "@rollup/rollup-win32-x64-gnu": "4.62.1",
136
- "@rollup/rollup-win32-x64-msvc": "4.62.1",
137
- "@rollup/rollup-freebsd-x64": "4.62.1",
138
- "@rollup/rollup-linux-x64-gnu": "4.62.1",
139
- "@rollup/rollup-linux-x64-musl": "4.62.1",
140
- "@rollup/rollup-openbsd-x64": "4.62.1",
141
- "@rollup/rollup-openharmony-arm64": "4.62.1"
117
+ "@rollup/rollup-darwin-arm64": "4.62.2",
118
+ "@rollup/rollup-android-arm64": "4.62.2",
119
+ "@rollup/rollup-win32-arm64-msvc": "4.62.2",
120
+ "@rollup/rollup-freebsd-arm64": "4.62.2",
121
+ "@rollup/rollup-linux-arm64-gnu": "4.62.2",
122
+ "@rollup/rollup-linux-arm64-musl": "4.62.2",
123
+ "@rollup/rollup-android-arm-eabi": "4.62.2",
124
+ "@rollup/rollup-linux-arm-gnueabihf": "4.62.2",
125
+ "@rollup/rollup-linux-arm-musleabihf": "4.62.2",
126
+ "@rollup/rollup-win32-ia32-msvc": "4.62.2",
127
+ "@rollup/rollup-linux-loong64-gnu": "4.62.2",
128
+ "@rollup/rollup-linux-loong64-musl": "4.62.2",
129
+ "@rollup/rollup-linux-riscv64-gnu": "4.62.2",
130
+ "@rollup/rollup-linux-riscv64-musl": "4.62.2",
131
+ "@rollup/rollup-linux-ppc64-gnu": "4.62.2",
132
+ "@rollup/rollup-linux-ppc64-musl": "4.62.2",
133
+ "@rollup/rollup-linux-s390x-gnu": "4.62.2",
134
+ "@rollup/rollup-darwin-x64": "4.62.2",
135
+ "@rollup/rollup-win32-x64-gnu": "4.62.2",
136
+ "@rollup/rollup-win32-x64-msvc": "4.62.2",
137
+ "@rollup/rollup-freebsd-x64": "4.62.2",
138
+ "@rollup/rollup-linux-x64-gnu": "4.62.2",
139
+ "@rollup/rollup-linux-x64-musl": "4.62.2",
140
+ "@rollup/rollup-openbsd-x64": "4.62.2",
141
+ "@rollup/rollup-openharmony-arm64": "4.62.2"
142
142
  },
143
143
  "dependencies": {
144
144
  "@types/estree": "1.0.9"