rollup 4.24.4 → 4.25.0

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.24.4
5
- Mon, 04 Nov 2024 08:46:36 GMT - commit cdf34ab5411aac6ac3f6cd21b10d2e58427e88ec
4
+ Rollup.js v4.25.0
5
+ Sat, 09 Nov 2024 08:36:52 GMT - commit 42e587e0e37bc0661aa39fe7ad6f1d7fd33f825c
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -28,7 +28,7 @@ require('node:perf_hooks');
28
28
  require('node:url');
29
29
  require('../getLogFilter.js');
30
30
 
31
- const help = "rollup version __VERSION__\n=====================================\n\nUsage: rollup [options] <entry file>\n\nBasic options:\n\n-c, --config <filename> Use this config file (if argument is used but value\n is unspecified, defaults to 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--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.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
+ const help = "rollup version __VERSION__\n=====================================\n\nUsage: rollup [options] <entry file>\n\nBasic options:\n\n-c, --config <filename> Use this config file (if argument is used but value\n is unspecified, defaults to 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.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";
32
32
 
33
33
  /**
34
34
  * @license
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.24.4
4
- Mon, 04 Nov 2024 08:46:36 GMT - commit cdf34ab5411aac6ac3f6cd21b10d2e58427e88ec
3
+ Rollup.js v4.25.0
4
+ Sat, 09 Nov 2024 08:36:52 GMT - commit 42e587e0e37bc0661aa39fe7ad6f1d7fd33f825c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.24.4
4
- Mon, 04 Nov 2024 08:46:36 GMT - commit cdf34ab5411aac6ac3f6cd21b10d2e58427e88ec
3
+ Rollup.js v4.25.0
4
+ Sat, 09 Nov 2024 08:36:52 GMT - commit 42e587e0e37bc0661aa39fe7ad6f1d7fd33f825c
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.24.4
4
- Mon, 04 Nov 2024 08:46:36 GMT - commit cdf34ab5411aac6ac3f6cd21b10d2e58427e88ec
3
+ Rollup.js v4.25.0
4
+ Sat, 09 Nov 2024 08:36:52 GMT - commit 42e587e0e37bc0661aa39fe7ad6f1d7fd33f825c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.24.4
4
- Mon, 04 Nov 2024 08:46:36 GMT - commit cdf34ab5411aac6ac3f6cd21b10d2e58427e88ec
3
+ Rollup.js v4.25.0
4
+ Sat, 09 Nov 2024 08:36:52 GMT - commit 42e587e0e37bc0661aa39fe7ad6f1d7fd33f825c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -16,7 +16,7 @@ import { performance } from 'node:perf_hooks';
16
16
  import { lstat, realpath, readdir, readFile, mkdir, writeFile } from 'node:fs/promises';
17
17
  import * as tty from 'tty';
18
18
 
19
- var version = "4.24.4";
19
+ var version = "4.25.0";
20
20
 
21
21
  const comma = ','.charCodeAt(0);
22
22
  const semicolon = ';'.charCodeAt(0);
@@ -18993,6 +18993,9 @@ function addChunksToBundle(renderedChunksByPlaceholder, hashesByPlaceholder, bun
18993
18993
  const finalFileName = replacePlaceholders(fileName, hashesByPlaceholder);
18994
18994
  let finalSourcemapFileName = null;
18995
18995
  if (map) {
18996
+ if (options.sourcemapDebugIds) {
18997
+ updatedCode += calculateDebugIdAndGetComment(updatedCode, map);
18998
+ }
18996
18999
  finalSourcemapFileName = sourcemapFileName
18997
19000
  ? replacePlaceholders(sourcemapFileName, hashesByPlaceholder)
18998
19001
  : `${finalFileName}.map`;
@@ -19005,6 +19008,9 @@ function addChunksToBundle(renderedChunksByPlaceholder, hashesByPlaceholder, bun
19005
19008
  let updatedCode = hashesByPlaceholder.size > 0 ? replacePlaceholders(code, hashesByPlaceholder) : code;
19006
19009
  let finalSourcemapFileName = null;
19007
19010
  if (map) {
19011
+ if (options.sourcemapDebugIds) {
19012
+ updatedCode += calculateDebugIdAndGetComment(updatedCode, map);
19013
+ }
19008
19014
  finalSourcemapFileName = sourcemapFileName
19009
19015
  ? replacePlaceholders(sourcemapFileName, hashesByPlaceholder)
19010
19016
  : `${fileName}.map`;
@@ -19032,6 +19038,18 @@ function emitSourceMapAndGetComment(fileName, map, pluginDriver, { sourcemap, so
19032
19038
  }
19033
19039
  return sourcemap === 'hidden' ? '' : `//# ${SOURCEMAPPING_URL}=${url}\n`;
19034
19040
  }
19041
+ function calculateDebugIdAndGetComment(code, map) {
19042
+ const hash = hasherByType.hex(code);
19043
+ const debugId = [
19044
+ hash.slice(0, 8),
19045
+ hash.slice(8, 12),
19046
+ '4' + hash.slice(12, 15),
19047
+ ((parseInt(hash.slice(15, 16), 16) & 3) | 8).toString(16) + hash.slice(17, 20),
19048
+ hash.slice(20, 32)
19049
+ ].join('-');
19050
+ map.debugId = debugId;
19051
+ return '//# debugId=' + debugId + '\n';
19052
+ }
19035
19053
 
19036
19054
  class Bundle {
19037
19055
  constructor(outputOptions, unsetOptions, inputOptions, pluginDriver, graph) {
@@ -21423,6 +21441,7 @@ async function normalizeOutputOptions(config, inputOptions, unsetInputOptions) {
21423
21441
  : sanitizeFileName,
21424
21442
  sourcemap: config.sourcemap || false,
21425
21443
  sourcemapBaseUrl: getSourcemapBaseUrl(config),
21444
+ sourcemapDebugIds: config.sourcemapDebugIds || false,
21426
21445
  sourcemapExcludeSources: config.sourcemapExcludeSources || false,
21427
21446
  sourcemapFile: config.sourcemapFile,
21428
21447
  sourcemapFileNames: getSourcemapFileNames(config, unsetOptions),
@@ -22134,6 +22153,7 @@ async function mergeOutputOptions(config, overrides, log) {
22134
22153
  sanitizeFileName: getOption('sanitizeFileName'),
22135
22154
  sourcemap: getOption('sourcemap'),
22136
22155
  sourcemapBaseUrl: getOption('sourcemapBaseUrl'),
22156
+ sourcemapDebugIds: getOption('sourcemapDebugIds'),
22137
22157
  sourcemapExcludeSources: getOption('sourcemapExcludeSources'),
22138
22158
  sourcemapFile: getOption('sourcemapFile'),
22139
22159
  sourcemapFileNames: getOption('sourcemapFileNames'),
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.24.4
4
- Mon, 04 Nov 2024 08:46:36 GMT - commit cdf34ab5411aac6ac3f6cd21b10d2e58427e88ec
3
+ Rollup.js v4.25.0
4
+ Sat, 09 Nov 2024 08:36:52 GMT - commit 42e587e0e37bc0661aa39fe7ad6f1d7fd33f825c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.24.4
4
- Mon, 04 Nov 2024 08:46:36 GMT - commit cdf34ab5411aac6ac3f6cd21b10d2e58427e88ec
3
+ Rollup.js v4.25.0
4
+ Sat, 09 Nov 2024 08:36:52 GMT - commit 42e587e0e37bc0661aa39fe7ad6f1d7fd33f825c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.24.4
4
- Mon, 04 Nov 2024 08:46:36 GMT - commit cdf34ab5411aac6ac3f6cd21b10d2e58427e88ec
3
+ Rollup.js v4.25.0
4
+ Sat, 09 Nov 2024 08:36:52 GMT - commit 42e587e0e37bc0661aa39fe7ad6f1d7fd33f825c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.24.4
4
- Mon, 04 Nov 2024 08:46:36 GMT - commit cdf34ab5411aac6ac3f6cd21b10d2e58427e88ec
3
+ Rollup.js v4.25.0
4
+ Sat, 09 Nov 2024 08:36:52 GMT - commit 42e587e0e37bc0661aa39fe7ad6f1d7fd33f825c
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.24.4
4
- Mon, 04 Nov 2024 08:46:36 GMT - commit cdf34ab5411aac6ac3f6cd21b10d2e58427e88ec
3
+ Rollup.js v4.25.0
4
+ Sat, 09 Nov 2024 08:36:52 GMT - commit 42e587e0e37bc0661aa39fe7ad6f1d7fd33f825c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/rollup.d.ts CHANGED
@@ -782,6 +782,7 @@ export interface OutputOptions {
782
782
  sourcemapFileNames?: string | ((chunkInfo: PreRenderedChunk) => string);
783
783
  sourcemapIgnoreList?: boolean | SourcemapIgnoreListOption;
784
784
  sourcemapPathTransform?: SourcemapPathTransformOption;
785
+ sourcemapDebugIds?: boolean;
785
786
  strict?: boolean;
786
787
  systemNullSetters?: boolean;
787
788
  validate?: boolean;
@@ -836,6 +837,7 @@ export interface NormalizedOutputOptions {
836
837
  sourcemapFileNames: string | ((chunkInfo: PreRenderedChunk) => string) | undefined;
837
838
  sourcemapIgnoreList: SourcemapIgnoreListOption;
838
839
  sourcemapPathTransform: SourcemapPathTransformOption | undefined;
840
+ sourcemapDebugIds: boolean;
839
841
  strict: boolean;
840
842
  systemNullSetters: boolean;
841
843
  validate: boolean;
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.24.4
4
- Mon, 04 Nov 2024 08:46:36 GMT - commit cdf34ab5411aac6ac3f6cd21b10d2e58427e88ec
3
+ Rollup.js v4.25.0
4
+ Sat, 09 Nov 2024 08:36:52 GMT - commit 42e587e0e37bc0661aa39fe7ad6f1d7fd33f825c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.24.4
4
- Mon, 04 Nov 2024 08:46:36 GMT - commit cdf34ab5411aac6ac3f6cd21b10d2e58427e88ec
3
+ Rollup.js v4.25.0
4
+ Sat, 09 Nov 2024 08:36:52 GMT - commit 42e587e0e37bc0661aa39fe7ad6f1d7fd33f825c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.24.4
4
- Mon, 04 Nov 2024 08:46:36 GMT - commit cdf34ab5411aac6ac3f6cd21b10d2e58427e88ec
3
+ Rollup.js v4.25.0
4
+ Sat, 09 Nov 2024 08:36:52 GMT - commit 42e587e0e37bc0661aa39fe7ad6f1d7fd33f825c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.24.4
4
- Mon, 04 Nov 2024 08:46:36 GMT - commit cdf34ab5411aac6ac3f6cd21b10d2e58427e88ec
3
+ Rollup.js v4.25.0
4
+ Sat, 09 Nov 2024 08:36:52 GMT - commit 42e587e0e37bc0661aa39fe7ad6f1d7fd33f825c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.24.4
4
- Mon, 04 Nov 2024 08:46:36 GMT - commit cdf34ab5411aac6ac3f6cd21b10d2e58427e88ec
3
+ Rollup.js v4.25.0
4
+ Sat, 09 Nov 2024 08:36:52 GMT - commit 42e587e0e37bc0661aa39fe7ad6f1d7fd33f825c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.24.4
4
- Mon, 04 Nov 2024 08:46:36 GMT - commit cdf34ab5411aac6ac3f6cd21b10d2e58427e88ec
3
+ Rollup.js v4.25.0
4
+ Sat, 09 Nov 2024 08:36:52 GMT - commit 42e587e0e37bc0661aa39fe7ad6f1d7fd33f825c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -31,7 +31,7 @@ function _interopNamespaceDefault(e) {
31
31
 
32
32
  const tty__namespace = /*#__PURE__*/_interopNamespaceDefault(tty);
33
33
 
34
- var version = "4.24.4";
34
+ var version = "4.25.0";
35
35
 
36
36
  function ensureArray$1(items) {
37
37
  if (Array.isArray(items)) {
@@ -1379,6 +1379,7 @@ async function mergeOutputOptions(config, overrides, log) {
1379
1379
  sanitizeFileName: getOption('sanitizeFileName'),
1380
1380
  sourcemap: getOption('sourcemap'),
1381
1381
  sourcemapBaseUrl: getOption('sourcemapBaseUrl'),
1382
+ sourcemapDebugIds: getOption('sourcemapDebugIds'),
1382
1383
  sourcemapExcludeSources: getOption('sourcemapExcludeSources'),
1383
1384
  sourcemapFile: getOption('sourcemapFile'),
1384
1385
  sourcemapFileNames: getOption('sourcemapFileNames'),
@@ -20399,6 +20400,9 @@ function addChunksToBundle(renderedChunksByPlaceholder, hashesByPlaceholder, bun
20399
20400
  const finalFileName = replacePlaceholders(fileName, hashesByPlaceholder);
20400
20401
  let finalSourcemapFileName = null;
20401
20402
  if (map) {
20403
+ if (options.sourcemapDebugIds) {
20404
+ updatedCode += calculateDebugIdAndGetComment(updatedCode, map);
20405
+ }
20402
20406
  finalSourcemapFileName = sourcemapFileName
20403
20407
  ? replacePlaceholders(sourcemapFileName, hashesByPlaceholder)
20404
20408
  : `${finalFileName}.map`;
@@ -20411,6 +20415,9 @@ function addChunksToBundle(renderedChunksByPlaceholder, hashesByPlaceholder, bun
20411
20415
  let updatedCode = hashesByPlaceholder.size > 0 ? replacePlaceholders(code, hashesByPlaceholder) : code;
20412
20416
  let finalSourcemapFileName = null;
20413
20417
  if (map) {
20418
+ if (options.sourcemapDebugIds) {
20419
+ updatedCode += calculateDebugIdAndGetComment(updatedCode, map);
20420
+ }
20414
20421
  finalSourcemapFileName = sourcemapFileName
20415
20422
  ? replacePlaceholders(sourcemapFileName, hashesByPlaceholder)
20416
20423
  : `${fileName}.map`;
@@ -20438,6 +20445,18 @@ function emitSourceMapAndGetComment(fileName, map, pluginDriver, { sourcemap, so
20438
20445
  }
20439
20446
  return sourcemap === 'hidden' ? '' : `//# ${SOURCEMAPPING_URL}=${url}\n`;
20440
20447
  }
20448
+ function calculateDebugIdAndGetComment(code, map) {
20449
+ const hash = hasherByType.hex(code);
20450
+ const debugId = [
20451
+ hash.slice(0, 8),
20452
+ hash.slice(8, 12),
20453
+ '4' + hash.slice(12, 15),
20454
+ ((parseInt(hash.slice(15, 16), 16) & 3) | 8).toString(16) + hash.slice(17, 20),
20455
+ hash.slice(20, 32)
20456
+ ].join('-');
20457
+ map.debugId = debugId;
20458
+ return '//# debugId=' + debugId + '\n';
20459
+ }
20441
20460
 
20442
20461
  class Bundle {
20443
20462
  constructor(outputOptions, unsetOptions, inputOptions, pluginDriver, graph) {
@@ -21819,6 +21838,7 @@ async function normalizeOutputOptions(config, inputOptions, unsetInputOptions) {
21819
21838
  : sanitizeFileName,
21820
21839
  sourcemap: config.sourcemap || false,
21821
21840
  sourcemapBaseUrl: getSourcemapBaseUrl(config),
21841
+ sourcemapDebugIds: config.sourcemapDebugIds || false,
21822
21842
  sourcemapExcludeSources: config.sourcemapExcludeSources || false,
21823
21843
  sourcemapFile: config.sourcemapFile,
21824
21844
  sourcemapFileNames: getSourcemapFileNames(config, unsetOptions),
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.24.4
4
- Mon, 04 Nov 2024 08:46:36 GMT - commit cdf34ab5411aac6ac3f6cd21b10d2e58427e88ec
3
+ Rollup.js v4.25.0
4
+ Sat, 09 Nov 2024 08:36:52 GMT - commit 42e587e0e37bc0661aa39fe7ad6f1d7fd33f825c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.24.4
4
- Mon, 04 Nov 2024 08:46:36 GMT - commit cdf34ab5411aac6ac3f6cd21b10d2e58427e88ec
3
+ Rollup.js v4.25.0
4
+ Sat, 09 Nov 2024 08:36:52 GMT - commit 42e587e0e37bc0661aa39fe7ad6f1d7fd33f825c
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.24.4",
3
+ "version": "4.25.0",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -109,24 +109,24 @@
109
109
  "homepage": "https://rollupjs.org/",
110
110
  "optionalDependencies": {
111
111
  "fsevents": "~2.3.2",
112
- "@rollup/rollup-darwin-arm64": "4.24.4",
113
- "@rollup/rollup-android-arm64": "4.24.4",
114
- "@rollup/rollup-win32-arm64-msvc": "4.24.4",
115
- "@rollup/rollup-freebsd-arm64": "4.24.4",
116
- "@rollup/rollup-linux-arm64-gnu": "4.24.4",
117
- "@rollup/rollup-linux-arm64-musl": "4.24.4",
118
- "@rollup/rollup-android-arm-eabi": "4.24.4",
119
- "@rollup/rollup-linux-arm-gnueabihf": "4.24.4",
120
- "@rollup/rollup-linux-arm-musleabihf": "4.24.4",
121
- "@rollup/rollup-win32-ia32-msvc": "4.24.4",
122
- "@rollup/rollup-linux-riscv64-gnu": "4.24.4",
123
- "@rollup/rollup-linux-powerpc64le-gnu": "4.24.4",
124
- "@rollup/rollup-linux-s390x-gnu": "4.24.4",
125
- "@rollup/rollup-darwin-x64": "4.24.4",
126
- "@rollup/rollup-win32-x64-msvc": "4.24.4",
127
- "@rollup/rollup-freebsd-x64": "4.24.4",
128
- "@rollup/rollup-linux-x64-gnu": "4.24.4",
129
- "@rollup/rollup-linux-x64-musl": "4.24.4"
112
+ "@rollup/rollup-darwin-arm64": "4.25.0",
113
+ "@rollup/rollup-android-arm64": "4.25.0",
114
+ "@rollup/rollup-win32-arm64-msvc": "4.25.0",
115
+ "@rollup/rollup-freebsd-arm64": "4.25.0",
116
+ "@rollup/rollup-linux-arm64-gnu": "4.25.0",
117
+ "@rollup/rollup-linux-arm64-musl": "4.25.0",
118
+ "@rollup/rollup-android-arm-eabi": "4.25.0",
119
+ "@rollup/rollup-linux-arm-gnueabihf": "4.25.0",
120
+ "@rollup/rollup-linux-arm-musleabihf": "4.25.0",
121
+ "@rollup/rollup-win32-ia32-msvc": "4.25.0",
122
+ "@rollup/rollup-linux-riscv64-gnu": "4.25.0",
123
+ "@rollup/rollup-linux-powerpc64le-gnu": "4.25.0",
124
+ "@rollup/rollup-linux-s390x-gnu": "4.25.0",
125
+ "@rollup/rollup-darwin-x64": "4.25.0",
126
+ "@rollup/rollup-win32-x64-msvc": "4.25.0",
127
+ "@rollup/rollup-freebsd-x64": "4.25.0",
128
+ "@rollup/rollup-linux-x64-gnu": "4.25.0",
129
+ "@rollup/rollup-linux-x64-musl": "4.25.0"
130
130
  },
131
131
  "dependencies": {
132
132
  "@types/estree": "1.0.6"
@@ -140,11 +140,11 @@
140
140
  "@codemirror/language": "^6.10.3",
141
141
  "@codemirror/search": "^6.5.7",
142
142
  "@codemirror/state": "^6.4.1",
143
- "@codemirror/view": "^6.34.1",
144
- "@eslint/js": "^9.13.0",
143
+ "@codemirror/view": "^6.34.2",
144
+ "@eslint/js": "^9.14.0",
145
145
  "@inquirer/prompts": "^7.0.1",
146
146
  "@jridgewell/sourcemap-codec": "^1.5.0",
147
- "@mermaid-js/mermaid-cli": "^11.2.1",
147
+ "@mermaid-js/mermaid-cli": "^11.4.0",
148
148
  "@napi-rs/cli": "^2.18.4",
149
149
  "@rollup/plugin-alias": "^5.1.1",
150
150
  "@rollup/plugin-buble": "^1.0.3",
@@ -157,7 +157,7 @@
157
157
  "@rollup/pluginutils": "^5.1.3",
158
158
  "@shikijs/vitepress-twoslash": "^1.22.2",
159
159
  "@types/mocha": "^10.0.9",
160
- "@types/node": "^18.19.63",
160
+ "@types/node": "^18.19.64",
161
161
  "@types/semver": "^7.5.8",
162
162
  "@types/yargs-parser": "^21.0.3",
163
163
  "@vue/language-server": "^2.1.10",
@@ -168,13 +168,13 @@
168
168
  "builtin-modules": "^4.0.0",
169
169
  "chokidar": "^3.6.0",
170
170
  "colorette": "^2.0.20",
171
- "concurrently": "^9.0.1",
171
+ "concurrently": "^9.1.0",
172
172
  "core-js": "3.38.1",
173
173
  "cross-env": "^7.0.3",
174
174
  "date-time": "^4.0.0",
175
175
  "es5-shim": "^4.6.7",
176
176
  "es6-shim": "^0.35.8",
177
- "eslint": "^9.13.0",
177
+ "eslint": "^9.14.0",
178
178
  "eslint-config-prettier": "^9.1.0",
179
179
  "eslint-plugin-prettier": "^5.2.1",
180
180
  "eslint-plugin-unicorn": "^56.0.0",
@@ -183,7 +183,7 @@
183
183
  "flru": "^1.0.2",
184
184
  "fs-extra": "^11.2.0",
185
185
  "github-api": "^3.4.0",
186
- "globals": "^15.11.0",
186
+ "globals": "^15.12.0",
187
187
  "husky": "^9.1.6",
188
188
  "is-reference": "^3.0.2",
189
189
  "lint-staged": "^15.2.10",
@@ -193,13 +193,13 @@
193
193
  "nodemon": "^3.1.7",
194
194
  "npm-audit-resolver": "^3.0.0-RC.0",
195
195
  "nyc": "^17.1.0",
196
- "pinia": "^2.2.5",
196
+ "pinia": "^2.2.6",
197
197
  "prettier": "^3.3.3",
198
198
  "prettier-plugin-organize-imports": "^4.1.0",
199
199
  "pretty-bytes": "^6.1.1",
200
200
  "pretty-ms": "^9.1.0",
201
201
  "requirejs": "^2.3.7",
202
- "rollup": "^4.24.3",
202
+ "rollup": "^4.24.4",
203
203
  "rollup-plugin-license": "^3.5.3",
204
204
  "rollup-plugin-string": "^3.0.0",
205
205
  "semver": "^7.6.3",
@@ -211,9 +211,9 @@
211
211
  "terser": "^5.36.0",
212
212
  "tslib": "^2.8.1",
213
213
  "typescript": "^5.6.3",
214
- "typescript-eslint": "^8.12.2",
214
+ "typescript-eslint": "^8.13.0",
215
215
  "vite": "^5.4.10",
216
- "vitepress": "^1.4.3",
216
+ "vitepress": "^1.5.0",
217
217
  "vue": "^3.5.12",
218
218
  "vue-tsc": "^2.1.10",
219
219
  "wasm-pack": "^0.13.1",