rollup 3.28.1 → 3.29.1

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
@@ -2,8 +2,8 @@
2
2
 
3
3
  /*
4
4
  @license
5
- Rollup.js v3.28.1
6
- Tue, 22 Aug 2023 05:30:38 GMT - commit 1b557cd77cce8560cf073875cf6bc289bbe5f09c
5
+ Rollup.js v3.29.1
6
+ Sun, 10 Sep 2023 05:55:18 GMT - commit 40da6f85525c2ce48d9fd8d5c3579c41d8ef47a8
7
7
 
8
8
  https://github.com/rollup/rollup
9
9
 
@@ -28,7 +28,7 @@ require('node:crypto');
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-externalImportAssertions Omit import assertions 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--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--no-hoistTransitiveImports Do not hoist transitive imports into entry chunks\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-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--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-externalImportAssertions Omit import assertions 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--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--no-hoistTransitiveImports Do not hoist transitive imports into entry chunks\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-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";
32
32
 
33
33
  /**
34
34
  * @license
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.28.1
4
- Tue, 22 Aug 2023 05:30:38 GMT - commit 1b557cd77cce8560cf073875cf6bc289bbe5f09c
3
+ Rollup.js v3.29.1
4
+ Sun, 10 Sep 2023 05:55:18 GMT - commit 40da6f85525c2ce48d9fd8d5c3579c41d8ef47a8
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 v3.28.1
4
- Tue, 22 Aug 2023 05:30:38 GMT - commit 1b557cd77cce8560cf073875cf6bc289bbe5f09c
3
+ Rollup.js v3.29.1
4
+ Sun, 10 Sep 2023 05:55:18 GMT - commit 40da6f85525c2ce48d9fd8d5c3579c41d8ef47a8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.28.1
4
- Tue, 22 Aug 2023 05:30:38 GMT - commit 1b557cd77cce8560cf073875cf6bc289bbe5f09c
3
+ Rollup.js v3.29.1
4
+ Sun, 10 Sep 2023 05:55:18 GMT - commit 40da6f85525c2ce48d9fd8d5c3579c41d8ef47a8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -15,7 +15,7 @@ import { createHash as createHash$1 } from 'node:crypto';
15
15
  import { lstat, realpath, readdir, readFile, mkdir, writeFile } from 'node:fs/promises';
16
16
  import * as tty from 'tty';
17
17
 
18
- var version$1 = "3.28.1";
18
+ var version$1 = "3.29.1";
19
19
 
20
20
  const comma = ','.charCodeAt(0);
21
21
  const semicolon = ';'.charCodeAt(0);
@@ -7713,7 +7713,17 @@ const knownGlobals = {
7713
7713
  CSSSupportsRule: C,
7714
7714
  CustomElementRegistry: C,
7715
7715
  customElements: O,
7716
- CustomEvent: C,
7716
+ CustomEvent: {
7717
+ __proto__: null,
7718
+ [ValueProperties]: {
7719
+ deoptimizeArgumentsOnCall({ args }) {
7720
+ args[2]?.deoptimizePath(['detail']);
7721
+ },
7722
+ getLiteralValue: getTruthyLiteralValue,
7723
+ hasEffectsWhenCalled: returnFalse
7724
+ },
7725
+ prototype: O
7726
+ },
7717
7727
  DataTransfer: C,
7718
7728
  DataTransferItem: C,
7719
7729
  DataTransferItemList: C,
@@ -11009,6 +11019,7 @@ const INTEROP_NAMESPACE_COMPAT_VARIABLE = '_interopNamespaceCompat';
11009
11019
  const INTEROP_NAMESPACE_DEFAULT_VARIABLE = '_interopNamespaceDefault';
11010
11020
  const INTEROP_NAMESPACE_DEFAULT_ONLY_VARIABLE = '_interopNamespaceDefaultOnly';
11011
11021
  const MERGE_NAMESPACES_VARIABLE = '_mergeNamespaces';
11022
+ const DOCUMENT_CURRENT_SCRIPT = '_documentCurrentScript';
11012
11023
  const defaultInteropHelpersByInteropType = {
11013
11024
  auto: INTEROP_DEFAULT_VARIABLE,
11014
11025
  compat: INTEROP_DEFAULT_COMPAT_VARIABLE,
@@ -11038,6 +11049,9 @@ const getHelpersBlock = (additionalHelpers, accessedGlobals, indent, snippets, l
11038
11049
  : '').join('');
11039
11050
  };
11040
11051
  const HELPER_GENERATORS = {
11052
+ [DOCUMENT_CURRENT_SCRIPT](_t, { _, n }) {
11053
+ return `var${_}${DOCUMENT_CURRENT_SCRIPT}${_}=${_}typeof${_}document${_}!==${_}'undefined'${_}?${_}document.currentScript${_}:${_}null;${n}`;
11054
+ },
11041
11055
  [INTEROP_DEFAULT_COMPAT_VARIABLE](_t, snippets, liveBindings) {
11042
11056
  const { _, getDirectReturnFunction, n } = snippets;
11043
11057
  const [left, right] = getDirectReturnFunction(['e'], {
@@ -11781,8 +11795,10 @@ class MetaProperty extends NodeBase {
11781
11795
  }
11782
11796
  }
11783
11797
  }
11784
- render(code, { format, pluginDriver, snippets }) {
11785
- const { context: { module: { id: moduleId } }, meta: { name }, metaProperty, parent, preliminaryChunkId, referenceId, start, end } = this;
11798
+ render(code, renderOptions) {
11799
+ const { format, pluginDriver, snippets } = renderOptions;
11800
+ const { context: { module }, meta: { name }, metaProperty, parent, preliminaryChunkId, referenceId, start, end } = this;
11801
+ const { id: moduleId } = module;
11786
11802
  if (name !== IMPORT)
11787
11803
  return;
11788
11804
  const chunkId = preliminaryChunkId;
@@ -11795,10 +11811,14 @@ class MetaProperty extends NodeBase {
11795
11811
  code.overwrite(parent.start, parent.end, replacement, { contentOnly: true });
11796
11812
  return;
11797
11813
  }
11798
- const replacement = pluginDriver.hookFirstSync('resolveImportMeta', [
11814
+ let replacement = pluginDriver.hookFirstSync('resolveImportMeta', [
11799
11815
  metaProperty,
11800
11816
  { chunkId, format, moduleId }
11801
- ]) || importMetaMechanisms[format]?.(metaProperty, { chunkId, snippets });
11817
+ ]);
11818
+ if (!replacement) {
11819
+ replacement = importMetaMechanisms[format]?.(metaProperty, { chunkId, snippets });
11820
+ renderOptions.accessedDocumentCurrentScript || (renderOptions.accessedDocumentCurrentScript = formatsMaybeAccessDocumentCurrentScript.includes(format) && replacement !== 'undefined');
11821
+ }
11802
11822
  if (typeof replacement === 'string') {
11803
11823
  if (parent instanceof MemberExpression) {
11804
11824
  code.overwrite(parent.start, parent.end, replacement, { contentOnly: true });
@@ -11816,13 +11836,14 @@ class MetaProperty extends NodeBase {
11816
11836
  }
11817
11837
  }
11818
11838
  }
11839
+ const formatsMaybeAccessDocumentCurrentScript = ['cjs', 'iife', 'umd'];
11819
11840
  const accessedMetaUrlGlobals = {
11820
11841
  amd: ['document', 'module', 'URL'],
11821
- cjs: ['document', 'require', 'URL'],
11842
+ cjs: ['document', 'require', 'URL', DOCUMENT_CURRENT_SCRIPT],
11822
11843
  es: [],
11823
- iife: ['document', 'URL'],
11844
+ iife: ['document', 'URL', DOCUMENT_CURRENT_SCRIPT],
11824
11845
  system: ['module'],
11825
- umd: ['document', 'require', 'URL']
11846
+ umd: ['document', 'require', 'URL', DOCUMENT_CURRENT_SCRIPT]
11826
11847
  };
11827
11848
  const accessedFileUrlGlobals = {
11828
11849
  amd: ['document', 'require', 'URL'],
@@ -11844,7 +11865,7 @@ const getGenericImportMetaMechanism = (getUrl) => (property, { chunkId }) => {
11844
11865
  };
11845
11866
  const getFileUrlFromFullPath = (path) => `require('u' + 'rl').pathToFileURL(${path}).href`;
11846
11867
  const getFileUrlFromRelativePath = (path) => getFileUrlFromFullPath(`__dirname + '/${path}'`);
11847
- const getUrlFromDocument = (chunkId, umd = false) => `${umd ? `typeof document === 'undefined' ? location.href : ` : ''}(document.currentScript && document.currentScript.src || new URL('${escapeId(chunkId)}', document.baseURI).href)`;
11868
+ const getUrlFromDocument = (chunkId, umd = false) => `${umd ? `typeof document === 'undefined' ? location.href : ` : ''}(${DOCUMENT_CURRENT_SCRIPT} && ${DOCUMENT_CURRENT_SCRIPT}.src || new URL('${escapeId(chunkId)}', document.baseURI).href)`;
11848
11869
  const relativeUrlMechanisms = {
11849
11870
  amd: relativePath => {
11850
11871
  if (relativePath[0] !== '.')
@@ -13467,6 +13488,9 @@ const TIMED_PLUGIN_HOOKS = [
13467
13488
  'writeBundle'
13468
13489
  ];
13469
13490
  function getPluginWithTimers(plugin, index) {
13491
+ if (plugin._hasTimer)
13492
+ return plugin;
13493
+ plugin._hasTimer = true;
13470
13494
  for (const hook of TIMED_PLUGIN_HOOKS) {
13471
13495
  if (hook in plugin) {
13472
13496
  let timerLabel = `plugin ${index}`;
@@ -15716,6 +15740,7 @@ class Chunk {
15716
15740
  this.needsExportsShim = false;
15717
15741
  this.preRenderedChunkInfo = null;
15718
15742
  this.preliminaryFileName = null;
15743
+ this.preliminarySourcemapFileName = null;
15719
15744
  this.renderedChunkInfo = null;
15720
15745
  this.renderedDependencies = null;
15721
15746
  this.renderedModules = Object.create(null);
@@ -15790,7 +15815,7 @@ class Chunk {
15790
15815
  }
15791
15816
  return true;
15792
15817
  }
15793
- finalizeChunk(code, map, hashesByPlaceholder) {
15818
+ finalizeChunk(code, map, sourcemapFileName, hashesByPlaceholder) {
15794
15819
  const renderedChunkInfo = this.getRenderedChunkInfo();
15795
15820
  const finalize = (code) => replacePlaceholders(code, hashesByPlaceholder);
15796
15821
  const preliminaryFileName = renderedChunkInfo.fileName;
@@ -15808,7 +15833,8 @@ class Chunk {
15808
15833
  imports: renderedChunkInfo.imports.map(finalize),
15809
15834
  map,
15810
15835
  preliminaryFileName,
15811
- referencedFiles: renderedChunkInfo.referencedFiles.map(finalize)
15836
+ referencedFiles: renderedChunkInfo.referencedFiles.map(finalize),
15837
+ sourcemapFileName
15812
15838
  };
15813
15839
  }
15814
15840
  generateExports() {
@@ -15949,6 +15975,30 @@ class Chunk {
15949
15975
  // Caching is essential to not conflict with the file name reservation above
15950
15976
  return (this.preliminaryFileName = { fileName, hashPlaceholder });
15951
15977
  }
15978
+ getPreliminarySourcemapFileName() {
15979
+ if (this.preliminarySourcemapFileName) {
15980
+ return this.preliminarySourcemapFileName;
15981
+ }
15982
+ let sourcemapFileName = null;
15983
+ let hashPlaceholder = null;
15984
+ const { sourcemapFileNames, format } = this.outputOptions;
15985
+ if (sourcemapFileNames) {
15986
+ const [pattern, patternName] = [sourcemapFileNames, 'output.sourcemapFileNames'];
15987
+ sourcemapFileName = renderNamePattern(typeof pattern === 'function' ? pattern(this.getPreRenderedChunkInfo()) : pattern, patternName, {
15988
+ chunkhash: () => this.getPreliminaryFileName().hashPlaceholder || '',
15989
+ format: () => format,
15990
+ hash: size => hashPlaceholder || (hashPlaceholder = this.getPlaceholder(patternName, size)),
15991
+ name: () => this.getChunkName()
15992
+ });
15993
+ if (!hashPlaceholder) {
15994
+ sourcemapFileName = makeUnique(sourcemapFileName, this.bundle);
15995
+ }
15996
+ }
15997
+ else {
15998
+ return null;
15999
+ }
16000
+ return (this.preliminarySourcemapFileName = { fileName: sourcemapFileName, hashPlaceholder });
16001
+ }
15952
16002
  getRenderedChunkInfo() {
15953
16003
  if (this.renderedChunkInfo) {
15954
16004
  return this.renderedChunkInfo;
@@ -15991,6 +16041,7 @@ class Chunk {
15991
16041
  }
15992
16042
  }
15993
16043
  const preliminaryFileName = this.getPreliminaryFileName();
16044
+ const preliminarySourcemapFileName = this.getPreliminarySourcemapFileName();
15994
16045
  const { accessedGlobals, indent, magicString, renderedSource, usedModules, usesTopLevelAwait } = this.renderModules(preliminaryFileName.fileName);
15995
16046
  const renderedDependencies = [...this.getRenderedDependencies().values()];
15996
16047
  const renderedExports = exportMode === 'none' ? [] : this.getChunkExportDeclarations(format);
@@ -16044,6 +16095,7 @@ class Chunk {
16044
16095
  chunk: this,
16045
16096
  magicString,
16046
16097
  preliminaryFileName,
16098
+ preliminarySourcemapFileName,
16047
16099
  usedModules
16048
16100
  };
16049
16101
  }
@@ -16468,6 +16520,7 @@ class Chunk {
16468
16520
  const accessedGlobals = new Set();
16469
16521
  const renderedModuleSources = new Map();
16470
16522
  const renderOptions = {
16523
+ accessedDocumentCurrentScript: false,
16471
16524
  dynamicImportFunction,
16472
16525
  exportNamesByVariable,
16473
16526
  format,
@@ -16484,6 +16537,12 @@ class Chunk {
16484
16537
  let source;
16485
16538
  if (module.isIncluded() || includedNamespaces.has(module)) {
16486
16539
  const rendered = module.render(renderOptions);
16540
+ if (!renderOptions.accessedDocumentCurrentScript &&
16541
+ formatsMaybeAccessDocumentCurrentScript.includes(format)) {
16542
+ // eslint-disable-next-line unicorn/consistent-destructuring
16543
+ this.accessedGlobalsByScope.get(module.scope)?.delete(DOCUMENT_CURRENT_SCRIPT);
16544
+ }
16545
+ renderOptions.accessedDocumentCurrentScript = false;
16487
16546
  ({ source } = rendered);
16488
16547
  usesTopLevelAwait || (usesTopLevelAwait = rendered.usesTopLevelAwait);
16489
16548
  renderedLength = source.length();
@@ -17619,8 +17678,8 @@ async function renderChunks(chunks, bundle, pluginDriver, outputOptions, log) {
17619
17678
  timeEnd('render chunks', 2);
17620
17679
  timeStart('transform chunks', 2);
17621
17680
  const chunkGraph = getChunkGraph(chunks);
17622
- const { nonHashedChunksWithPlaceholders, renderedChunksByPlaceholder, hashDependenciesByPlaceholder } = await transformChunksAndGenerateContentHashes(renderedChunks, chunkGraph, outputOptions, pluginDriver, log);
17623
- const hashesByPlaceholder = generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlaceholder, bundle);
17681
+ const { initialHashesByPlaceholder, nonHashedChunksWithPlaceholders, renderedChunksByPlaceholder, hashDependenciesByPlaceholder } = await transformChunksAndGenerateContentHashes(renderedChunks, chunkGraph, outputOptions, pluginDriver, log);
17682
+ const hashesByPlaceholder = generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlaceholder, initialHashesByPlaceholder, bundle);
17624
17683
  addChunksToBundle(renderedChunksByPlaceholder, hashesByPlaceholder, bundle, nonHashedChunksWithPlaceholders, pluginDriver, outputOptions);
17625
17684
  timeEnd('transform chunks', 2);
17626
17685
  }
@@ -17704,18 +17763,20 @@ async function transformChunksAndGenerateContentHashes(renderedChunks, chunkGrap
17704
17763
  const nonHashedChunksWithPlaceholders = [];
17705
17764
  const renderedChunksByPlaceholder = new Map();
17706
17765
  const hashDependenciesByPlaceholder = new Map();
17766
+ const initialHashesByPlaceholder = new Map();
17707
17767
  const placeholders = new Set();
17708
17768
  for (const { preliminaryFileName: { hashPlaceholder } } of renderedChunks) {
17709
17769
  if (hashPlaceholder)
17710
17770
  placeholders.add(hashPlaceholder);
17711
17771
  }
17712
- await Promise.all(renderedChunks.map(async ({ chunk, preliminaryFileName: { fileName, hashPlaceholder }, magicString, usedModules }) => {
17772
+ await Promise.all(renderedChunks.map(async ({ chunk, preliminaryFileName: { fileName, hashPlaceholder }, preliminarySourcemapFileName, magicString, usedModules }) => {
17713
17773
  const transformedChunk = {
17714
17774
  chunk,
17715
17775
  fileName,
17776
+ sourcemapFileName: preliminarySourcemapFileName?.fileName ?? null,
17716
17777
  ...(await transformChunk(magicString, fileName, usedModules, chunkGraph, outputOptions, pluginDriver, log))
17717
17778
  };
17718
- const { code } = transformedChunk;
17779
+ const { code, map } = transformedChunk;
17719
17780
  if (hashPlaceholder) {
17720
17781
  // To create a reproducible content-only hash, all placeholders are
17721
17782
  // replaced with the same value before hashing
@@ -17739,15 +17800,23 @@ async function transformChunksAndGenerateContentHashes(renderedChunks, chunkGrap
17739
17800
  else {
17740
17801
  nonHashedChunksWithPlaceholders.push(transformedChunk);
17741
17802
  }
17803
+ const sourcemapHashPlaceholder = preliminarySourcemapFileName?.hashPlaceholder;
17804
+ if (map && sourcemapHashPlaceholder) {
17805
+ initialHashesByPlaceholder.set(preliminarySourcemapFileName.hashPlaceholder, createHash()
17806
+ .update(map.toString())
17807
+ .digest('hex')
17808
+ .slice(0, preliminarySourcemapFileName.hashPlaceholder.length));
17809
+ }
17742
17810
  }));
17743
17811
  return {
17744
17812
  hashDependenciesByPlaceholder,
17813
+ initialHashesByPlaceholder,
17745
17814
  nonHashedChunksWithPlaceholders,
17746
17815
  renderedChunksByPlaceholder
17747
17816
  };
17748
17817
  }
17749
- function generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlaceholder, bundle) {
17750
- const hashesByPlaceholder = new Map();
17818
+ function generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlaceholder, initialHashesByPlaceholder, bundle) {
17819
+ const hashesByPlaceholder = new Map(initialHashesByPlaceholder);
17751
17820
  for (const [placeholder, { fileName }] of renderedChunksByPlaceholder) {
17752
17821
  let hash = createHash();
17753
17822
  const hashDependencyPlaceholders = new Set([placeholder]);
@@ -17775,21 +17844,29 @@ function generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlac
17775
17844
  return hashesByPlaceholder;
17776
17845
  }
17777
17846
  function addChunksToBundle(renderedChunksByPlaceholder, hashesByPlaceholder, bundle, nonHashedChunksWithPlaceholders, pluginDriver, options) {
17778
- for (const { chunk, code, fileName, map } of renderedChunksByPlaceholder.values()) {
17847
+ for (const { chunk, code, fileName, sourcemapFileName, map } of renderedChunksByPlaceholder.values()) {
17779
17848
  let updatedCode = replacePlaceholders(code, hashesByPlaceholder);
17780
17849
  const finalFileName = replacePlaceholders(fileName, hashesByPlaceholder);
17850
+ let finalSourcemapFileName = null;
17781
17851
  if (map) {
17852
+ finalSourcemapFileName = sourcemapFileName
17853
+ ? replacePlaceholders(sourcemapFileName, hashesByPlaceholder)
17854
+ : `${finalFileName}.map`;
17782
17855
  map.file = replacePlaceholders(map.file, hashesByPlaceholder);
17783
- updatedCode += emitSourceMapAndGetComment(finalFileName, map, pluginDriver, options);
17856
+ updatedCode += emitSourceMapAndGetComment(finalSourcemapFileName, map, pluginDriver, options);
17784
17857
  }
17785
- bundle[finalFileName] = chunk.finalizeChunk(updatedCode, map, hashesByPlaceholder);
17858
+ bundle[finalFileName] = chunk.finalizeChunk(updatedCode, map, finalSourcemapFileName, hashesByPlaceholder);
17786
17859
  }
17787
- for (const { chunk, code, fileName, map } of nonHashedChunksWithPlaceholders) {
17860
+ for (const { chunk, code, fileName, sourcemapFileName, map } of nonHashedChunksWithPlaceholders) {
17788
17861
  let updatedCode = hashesByPlaceholder.size > 0 ? replacePlaceholders(code, hashesByPlaceholder) : code;
17862
+ let finalSourcemapFileName = null;
17789
17863
  if (map) {
17790
- updatedCode += emitSourceMapAndGetComment(fileName, map, pluginDriver, options);
17864
+ finalSourcemapFileName = sourcemapFileName
17865
+ ? replacePlaceholders(sourcemapFileName, hashesByPlaceholder)
17866
+ : `${fileName}.map`;
17867
+ updatedCode += emitSourceMapAndGetComment(finalSourcemapFileName, map, pluginDriver, options);
17791
17868
  }
17792
- bundle[fileName] = chunk.finalizeChunk(updatedCode, map, hashesByPlaceholder);
17869
+ bundle[fileName] = chunk.finalizeChunk(updatedCode, map, finalSourcemapFileName, hashesByPlaceholder);
17793
17870
  }
17794
17871
  }
17795
17872
  function emitSourceMapAndGetComment(fileName, map, pluginDriver, { sourcemap, sourcemapBaseUrl }) {
@@ -17798,11 +17875,11 @@ function emitSourceMapAndGetComment(fileName, map, pluginDriver, { sourcemap, so
17798
17875
  url = map.toUrl();
17799
17876
  }
17800
17877
  else {
17801
- const sourcemapFileName = `${basename(fileName)}.map`;
17878
+ const sourcemapFileName = basename(fileName);
17802
17879
  url = sourcemapBaseUrl
17803
17880
  ? new URL(sourcemapFileName, sourcemapBaseUrl).toString()
17804
17881
  : sourcemapFileName;
17805
- pluginDriver.emitFile({ fileName: `${fileName}.map`, source: map.toString(), type: 'asset' });
17882
+ pluginDriver.emitFile({ fileName, source: map.toString(), type: 'asset' });
17806
17883
  }
17807
17884
  return sourcemap === 'hidden' ? '' : `//# ${SOURCEMAPPING_URL}=${url}\n`;
17808
17885
  }
@@ -25073,6 +25150,7 @@ class FileEmitter {
25073
25150
  name: prebuiltChunk.fileName,
25074
25151
  preliminaryFileName: prebuiltChunk.fileName,
25075
25152
  referencedFiles: [],
25153
+ sourcemapFileName: prebuiltChunk.sourcemapFileName || null,
25076
25154
  type: 'chunk'
25077
25155
  };
25078
25156
  }
@@ -26355,6 +26433,7 @@ async function normalizeOutputOptions(config, inputOptions, unsetInputOptions) {
26355
26433
  sourcemapBaseUrl: getSourcemapBaseUrl(config),
26356
26434
  sourcemapExcludeSources: config.sourcemapExcludeSources || false,
26357
26435
  sourcemapFile: config.sourcemapFile,
26436
+ sourcemapFileNames: getSourcemapFileNames(config, unsetOptions),
26358
26437
  sourcemapIgnoreList: typeof config.sourcemapIgnoreList === 'function'
26359
26438
  ? config.sourcemapIgnoreList
26360
26439
  : config.sourcemapIgnoreList === false
@@ -26583,6 +26662,13 @@ const getNamespaceToStringTag = (config, generatedCode, inputOptions) => {
26583
26662
  }
26584
26663
  return generatedCode.symbols || false;
26585
26664
  };
26665
+ const getSourcemapFileNames = (config, unsetOptions) => {
26666
+ const configSourcemapFileNames = config.sourcemapFileNames;
26667
+ if (configSourcemapFileNames == null) {
26668
+ unsetOptions.add('sourcemapFileNames');
26669
+ }
26670
+ return configSourcemapFileNames;
26671
+ };
26586
26672
  const getSourcemapBaseUrl = (config) => {
26587
26673
  const { sourcemapBaseUrl } = config;
26588
26674
  if (sourcemapBaseUrl) {
@@ -27074,6 +27160,7 @@ async function mergeOutputOptions(config, overrides, log) {
27074
27160
  sourcemapBaseUrl: getOption('sourcemapBaseUrl'),
27075
27161
  sourcemapExcludeSources: getOption('sourcemapExcludeSources'),
27076
27162
  sourcemapFile: getOption('sourcemapFile'),
27163
+ sourcemapFileNames: getOption('sourcemapFileNames'),
27077
27164
  sourcemapIgnoreList: getOption('sourcemapIgnoreList'),
27078
27165
  sourcemapPathTransform: getOption('sourcemapPathTransform'),
27079
27166
  strict: getOption('strict'),
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.28.1
4
- Tue, 22 Aug 2023 05:30:38 GMT - commit 1b557cd77cce8560cf073875cf6bc289bbe5f09c
3
+ Rollup.js v3.29.1
4
+ Sun, 10 Sep 2023 05:55:18 GMT - commit 40da6f85525c2ce48d9fd8d5c3579c41d8ef47a8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.28.1
4
- Tue, 22 Aug 2023 05:30:38 GMT - commit 1b557cd77cce8560cf073875cf6bc289bbe5f09c
3
+ Rollup.js v3.29.1
4
+ Sun, 10 Sep 2023 05:55:18 GMT - commit 40da6f85525c2ce48d9fd8d5c3579c41d8ef47a8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.28.1
4
- Tue, 22 Aug 2023 05:30:38 GMT - commit 1b557cd77cce8560cf073875cf6bc289bbe5f09c
3
+ Rollup.js v3.29.1
4
+ Sun, 10 Sep 2023 05:55:18 GMT - commit 40da6f85525c2ce48d9fd8d5c3579c41d8ef47a8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/rollup.d.ts CHANGED
@@ -164,6 +164,7 @@ export interface EmittedPrebuiltChunk {
164
164
  exports?: string[];
165
165
  fileName: string;
166
166
  map?: SourceMap;
167
+ sourcemapFileName?: string;
167
168
  type: 'prebuilt-chunk';
168
169
  }
169
170
 
@@ -369,7 +370,7 @@ export type WatchChangeHook = (
369
370
  * ```
370
371
  */
371
372
  // eslint-disable-next-line @typescript-eslint/ban-types
372
- export type PluginImpl<O extends object = object> = (options?: O) => Plugin;
373
+ export type PluginImpl<O extends object = object, A = any> = (options?: O) => Plugin<A>;
373
374
 
374
375
  export interface OutputBundle {
375
376
  [fileName: string]: OutputAsset | OutputChunk;
@@ -497,9 +498,9 @@ export interface OutputPlugin
497
498
  version?: string;
498
499
  }
499
500
 
500
- export interface Plugin extends OutputPlugin, Partial<PluginHooks> {
501
+ export interface Plugin<A = any> extends OutputPlugin, Partial<PluginHooks> {
501
502
  // for inter-plugin communication
502
- api?: any;
503
+ api?: A;
503
504
  }
504
505
 
505
506
  type TreeshakingPreset = 'smallest' | 'safest' | 'recommended';
@@ -744,6 +745,7 @@ export interface OutputOptions {
744
745
  sourcemapBaseUrl?: string;
745
746
  sourcemapExcludeSources?: boolean;
746
747
  sourcemapFile?: string;
748
+ sourcemapFileNames?: string | ((chunkInfo: PreRenderedChunk) => string);
747
749
  sourcemapIgnoreList?: boolean | SourcemapIgnoreListOption;
748
750
  sourcemapPathTransform?: SourcemapPathTransformOption;
749
751
  strict?: boolean;
@@ -799,6 +801,7 @@ export interface NormalizedOutputOptions {
799
801
  sourcemapBaseUrl: string | undefined;
800
802
  sourcemapExcludeSources: boolean;
801
803
  sourcemapFile: string | undefined;
804
+ sourcemapFileNames: string | ((chunkInfo: PreRenderedChunk) => string) | undefined;
802
805
  sourcemapIgnoreList: SourcemapIgnoreListOption;
803
806
  sourcemapPathTransform: SourcemapPathTransformOption | undefined;
804
807
  strict: boolean;
@@ -862,6 +865,7 @@ export interface RenderedChunk extends PreRenderedChunk {
862
865
  export interface OutputChunk extends RenderedChunk {
863
866
  code: string;
864
867
  map: SourceMap | null;
868
+ sourcemapFileName: string | null;
865
869
  preliminaryFileName: string;
866
870
  }
867
871
 
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.28.1
4
- Tue, 22 Aug 2023 05:30:38 GMT - commit 1b557cd77cce8560cf073875cf6bc289bbe5f09c
3
+ Rollup.js v3.29.1
4
+ Sun, 10 Sep 2023 05:55:18 GMT - commit 40da6f85525c2ce48d9fd8d5c3579c41d8ef47a8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.28.1
4
- Tue, 22 Aug 2023 05:30:38 GMT - commit 1b557cd77cce8560cf073875cf6bc289bbe5f09c
3
+ Rollup.js v3.29.1
4
+ Sun, 10 Sep 2023 05:55:18 GMT - commit 40da6f85525c2ce48d9fd8d5c3579c41d8ef47a8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.28.1
4
- Tue, 22 Aug 2023 05:30:38 GMT - commit 1b557cd77cce8560cf073875cf6bc289bbe5f09c
3
+ Rollup.js v3.29.1
4
+ Sun, 10 Sep 2023 05:55:18 GMT - commit 40da6f85525c2ce48d9fd8d5c3579c41d8ef47a8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.28.1
4
- Tue, 22 Aug 2023 05:30:38 GMT - commit 1b557cd77cce8560cf073875cf6bc289bbe5f09c
3
+ Rollup.js v3.29.1
4
+ Sun, 10 Sep 2023 05:55:18 GMT - commit 40da6f85525c2ce48d9fd8d5c3579c41d8ef47a8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.28.1
4
- Tue, 22 Aug 2023 05:30:38 GMT - commit 1b557cd77cce8560cf073875cf6bc289bbe5f09c
3
+ Rollup.js v3.29.1
4
+ Sun, 10 Sep 2023 05:55:18 GMT - commit 40da6f85525c2ce48d9fd8d5c3579c41d8ef47a8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -30,7 +30,7 @@ function _interopNamespaceDefault(e) {
30
30
 
31
31
  const tty__namespace = /*#__PURE__*/_interopNamespaceDefault(tty);
32
32
 
33
- var version$1 = "3.28.1";
33
+ var version$1 = "3.29.1";
34
34
 
35
35
  function ensureArray$1(items) {
36
36
  if (Array.isArray(items)) {
@@ -1284,6 +1284,7 @@ class FileEmitter {
1284
1284
  name: prebuiltChunk.fileName,
1285
1285
  preliminaryFileName: prebuiltChunk.fileName,
1286
1286
  referencedFiles: [],
1287
+ sourcemapFileName: prebuiltChunk.sourcemapFileName || null,
1287
1288
  type: 'chunk'
1288
1289
  };
1289
1290
  }
@@ -2210,6 +2211,7 @@ async function mergeOutputOptions(config, overrides, log) {
2210
2211
  sourcemapBaseUrl: getOption('sourcemapBaseUrl'),
2211
2212
  sourcemapExcludeSources: getOption('sourcemapExcludeSources'),
2212
2213
  sourcemapFile: getOption('sourcemapFile'),
2214
+ sourcemapFileNames: getOption('sourcemapFileNames'),
2213
2215
  sourcemapIgnoreList: getOption('sourcemapIgnoreList'),
2214
2216
  sourcemapPathTransform: getOption('sourcemapPathTransform'),
2215
2217
  strict: getOption('strict'),
@@ -9210,7 +9212,17 @@ const knownGlobals = {
9210
9212
  CSSSupportsRule: C,
9211
9213
  CustomElementRegistry: C,
9212
9214
  customElements: O,
9213
- CustomEvent: C,
9215
+ CustomEvent: {
9216
+ __proto__: null,
9217
+ [ValueProperties]: {
9218
+ deoptimizeArgumentsOnCall({ args }) {
9219
+ args[2]?.deoptimizePath(['detail']);
9220
+ },
9221
+ getLiteralValue: getTruthyLiteralValue,
9222
+ hasEffectsWhenCalled: returnFalse
9223
+ },
9224
+ prototype: O
9225
+ },
9214
9226
  DataTransfer: C,
9215
9227
  DataTransferItem: C,
9216
9228
  DataTransferItemList: C,
@@ -12506,6 +12518,7 @@ const INTEROP_NAMESPACE_COMPAT_VARIABLE = '_interopNamespaceCompat';
12506
12518
  const INTEROP_NAMESPACE_DEFAULT_VARIABLE = '_interopNamespaceDefault';
12507
12519
  const INTEROP_NAMESPACE_DEFAULT_ONLY_VARIABLE = '_interopNamespaceDefaultOnly';
12508
12520
  const MERGE_NAMESPACES_VARIABLE = '_mergeNamespaces';
12521
+ const DOCUMENT_CURRENT_SCRIPT = '_documentCurrentScript';
12509
12522
  const defaultInteropHelpersByInteropType = {
12510
12523
  auto: INTEROP_DEFAULT_VARIABLE,
12511
12524
  compat: INTEROP_DEFAULT_COMPAT_VARIABLE,
@@ -12535,6 +12548,9 @@ const getHelpersBlock = (additionalHelpers, accessedGlobals, indent, snippets, l
12535
12548
  : '').join('');
12536
12549
  };
12537
12550
  const HELPER_GENERATORS = {
12551
+ [DOCUMENT_CURRENT_SCRIPT](_t, { _, n }) {
12552
+ return `var${_}${DOCUMENT_CURRENT_SCRIPT}${_}=${_}typeof${_}document${_}!==${_}'undefined'${_}?${_}document.currentScript${_}:${_}null;${n}`;
12553
+ },
12538
12554
  [INTEROP_DEFAULT_COMPAT_VARIABLE](_t, snippets, liveBindings) {
12539
12555
  const { _, getDirectReturnFunction, n } = snippets;
12540
12556
  const [left, right] = getDirectReturnFunction(['e'], {
@@ -13278,8 +13294,10 @@ class MetaProperty extends NodeBase {
13278
13294
  }
13279
13295
  }
13280
13296
  }
13281
- render(code, { format, pluginDriver, snippets }) {
13282
- const { context: { module: { id: moduleId } }, meta: { name }, metaProperty, parent, preliminaryChunkId, referenceId, start, end } = this;
13297
+ render(code, renderOptions) {
13298
+ const { format, pluginDriver, snippets } = renderOptions;
13299
+ const { context: { module }, meta: { name }, metaProperty, parent, preliminaryChunkId, referenceId, start, end } = this;
13300
+ const { id: moduleId } = module;
13283
13301
  if (name !== IMPORT)
13284
13302
  return;
13285
13303
  const chunkId = preliminaryChunkId;
@@ -13292,10 +13310,14 @@ class MetaProperty extends NodeBase {
13292
13310
  code.overwrite(parent.start, parent.end, replacement, { contentOnly: true });
13293
13311
  return;
13294
13312
  }
13295
- const replacement = pluginDriver.hookFirstSync('resolveImportMeta', [
13313
+ let replacement = pluginDriver.hookFirstSync('resolveImportMeta', [
13296
13314
  metaProperty,
13297
13315
  { chunkId, format, moduleId }
13298
- ]) || importMetaMechanisms[format]?.(metaProperty, { chunkId, snippets });
13316
+ ]);
13317
+ if (!replacement) {
13318
+ replacement = importMetaMechanisms[format]?.(metaProperty, { chunkId, snippets });
13319
+ renderOptions.accessedDocumentCurrentScript || (renderOptions.accessedDocumentCurrentScript = formatsMaybeAccessDocumentCurrentScript.includes(format) && replacement !== 'undefined');
13320
+ }
13299
13321
  if (typeof replacement === 'string') {
13300
13322
  if (parent instanceof MemberExpression) {
13301
13323
  code.overwrite(parent.start, parent.end, replacement, { contentOnly: true });
@@ -13313,13 +13335,14 @@ class MetaProperty extends NodeBase {
13313
13335
  }
13314
13336
  }
13315
13337
  }
13338
+ const formatsMaybeAccessDocumentCurrentScript = ['cjs', 'iife', 'umd'];
13316
13339
  const accessedMetaUrlGlobals = {
13317
13340
  amd: ['document', 'module', 'URL'],
13318
- cjs: ['document', 'require', 'URL'],
13341
+ cjs: ['document', 'require', 'URL', DOCUMENT_CURRENT_SCRIPT],
13319
13342
  es: [],
13320
- iife: ['document', 'URL'],
13343
+ iife: ['document', 'URL', DOCUMENT_CURRENT_SCRIPT],
13321
13344
  system: ['module'],
13322
- umd: ['document', 'require', 'URL']
13345
+ umd: ['document', 'require', 'URL', DOCUMENT_CURRENT_SCRIPT]
13323
13346
  };
13324
13347
  const accessedFileUrlGlobals = {
13325
13348
  amd: ['document', 'require', 'URL'],
@@ -13341,7 +13364,7 @@ const getGenericImportMetaMechanism = (getUrl) => (property, { chunkId }) => {
13341
13364
  };
13342
13365
  const getFileUrlFromFullPath = (path) => `require('u' + 'rl').pathToFileURL(${path}).href`;
13343
13366
  const getFileUrlFromRelativePath = (path) => getFileUrlFromFullPath(`__dirname + '/${path}'`);
13344
- const getUrlFromDocument = (chunkId, umd = false) => `${umd ? `typeof document === 'undefined' ? location.href : ` : ''}(document.currentScript && document.currentScript.src || new URL('${escapeId(chunkId)}', document.baseURI).href)`;
13367
+ const getUrlFromDocument = (chunkId, umd = false) => `${umd ? `typeof document === 'undefined' ? location.href : ` : ''}(${DOCUMENT_CURRENT_SCRIPT} && ${DOCUMENT_CURRENT_SCRIPT}.src || new URL('${escapeId(chunkId)}', document.baseURI).href)`;
13345
13368
  const relativeUrlMechanisms = {
13346
13369
  amd: relativePath => {
13347
13370
  if (relativePath[0] !== '.')
@@ -14957,6 +14980,9 @@ const TIMED_PLUGIN_HOOKS = [
14957
14980
  'writeBundle'
14958
14981
  ];
14959
14982
  function getPluginWithTimers(plugin, index) {
14983
+ if (plugin._hasTimer)
14984
+ return plugin;
14985
+ plugin._hasTimer = true;
14960
14986
  for (const hook of TIMED_PLUGIN_HOOKS) {
14961
14987
  if (hook in plugin) {
14962
14988
  let timerLabel = `plugin ${index}`;
@@ -17101,6 +17127,7 @@ class Chunk {
17101
17127
  this.needsExportsShim = false;
17102
17128
  this.preRenderedChunkInfo = null;
17103
17129
  this.preliminaryFileName = null;
17130
+ this.preliminarySourcemapFileName = null;
17104
17131
  this.renderedChunkInfo = null;
17105
17132
  this.renderedDependencies = null;
17106
17133
  this.renderedModules = Object.create(null);
@@ -17175,7 +17202,7 @@ class Chunk {
17175
17202
  }
17176
17203
  return true;
17177
17204
  }
17178
- finalizeChunk(code, map, hashesByPlaceholder) {
17205
+ finalizeChunk(code, map, sourcemapFileName, hashesByPlaceholder) {
17179
17206
  const renderedChunkInfo = this.getRenderedChunkInfo();
17180
17207
  const finalize = (code) => replacePlaceholders(code, hashesByPlaceholder);
17181
17208
  const preliminaryFileName = renderedChunkInfo.fileName;
@@ -17193,7 +17220,8 @@ class Chunk {
17193
17220
  imports: renderedChunkInfo.imports.map(finalize),
17194
17221
  map,
17195
17222
  preliminaryFileName,
17196
- referencedFiles: renderedChunkInfo.referencedFiles.map(finalize)
17223
+ referencedFiles: renderedChunkInfo.referencedFiles.map(finalize),
17224
+ sourcemapFileName
17197
17225
  };
17198
17226
  }
17199
17227
  generateExports() {
@@ -17334,6 +17362,30 @@ class Chunk {
17334
17362
  // Caching is essential to not conflict with the file name reservation above
17335
17363
  return (this.preliminaryFileName = { fileName, hashPlaceholder });
17336
17364
  }
17365
+ getPreliminarySourcemapFileName() {
17366
+ if (this.preliminarySourcemapFileName) {
17367
+ return this.preliminarySourcemapFileName;
17368
+ }
17369
+ let sourcemapFileName = null;
17370
+ let hashPlaceholder = null;
17371
+ const { sourcemapFileNames, format } = this.outputOptions;
17372
+ if (sourcemapFileNames) {
17373
+ const [pattern, patternName] = [sourcemapFileNames, 'output.sourcemapFileNames'];
17374
+ sourcemapFileName = renderNamePattern(typeof pattern === 'function' ? pattern(this.getPreRenderedChunkInfo()) : pattern, patternName, {
17375
+ chunkhash: () => this.getPreliminaryFileName().hashPlaceholder || '',
17376
+ format: () => format,
17377
+ hash: size => hashPlaceholder || (hashPlaceholder = this.getPlaceholder(patternName, size)),
17378
+ name: () => this.getChunkName()
17379
+ });
17380
+ if (!hashPlaceholder) {
17381
+ sourcemapFileName = makeUnique(sourcemapFileName, this.bundle);
17382
+ }
17383
+ }
17384
+ else {
17385
+ return null;
17386
+ }
17387
+ return (this.preliminarySourcemapFileName = { fileName: sourcemapFileName, hashPlaceholder });
17388
+ }
17337
17389
  getRenderedChunkInfo() {
17338
17390
  if (this.renderedChunkInfo) {
17339
17391
  return this.renderedChunkInfo;
@@ -17376,6 +17428,7 @@ class Chunk {
17376
17428
  }
17377
17429
  }
17378
17430
  const preliminaryFileName = this.getPreliminaryFileName();
17431
+ const preliminarySourcemapFileName = this.getPreliminarySourcemapFileName();
17379
17432
  const { accessedGlobals, indent, magicString, renderedSource, usedModules, usesTopLevelAwait } = this.renderModules(preliminaryFileName.fileName);
17380
17433
  const renderedDependencies = [...this.getRenderedDependencies().values()];
17381
17434
  const renderedExports = exportMode === 'none' ? [] : this.getChunkExportDeclarations(format);
@@ -17429,6 +17482,7 @@ class Chunk {
17429
17482
  chunk: this,
17430
17483
  magicString,
17431
17484
  preliminaryFileName,
17485
+ preliminarySourcemapFileName,
17432
17486
  usedModules
17433
17487
  };
17434
17488
  }
@@ -17853,6 +17907,7 @@ class Chunk {
17853
17907
  const accessedGlobals = new Set();
17854
17908
  const renderedModuleSources = new Map();
17855
17909
  const renderOptions = {
17910
+ accessedDocumentCurrentScript: false,
17856
17911
  dynamicImportFunction,
17857
17912
  exportNamesByVariable,
17858
17913
  format,
@@ -17869,6 +17924,12 @@ class Chunk {
17869
17924
  let source;
17870
17925
  if (module.isIncluded() || includedNamespaces.has(module)) {
17871
17926
  const rendered = module.render(renderOptions);
17927
+ if (!renderOptions.accessedDocumentCurrentScript &&
17928
+ formatsMaybeAccessDocumentCurrentScript.includes(format)) {
17929
+ // eslint-disable-next-line unicorn/consistent-destructuring
17930
+ this.accessedGlobalsByScope.get(module.scope)?.delete(DOCUMENT_CURRENT_SCRIPT);
17931
+ }
17932
+ renderOptions.accessedDocumentCurrentScript = false;
17872
17933
  ({ source } = rendered);
17873
17934
  usesTopLevelAwait || (usesTopLevelAwait = rendered.usesTopLevelAwait);
17874
17935
  renderedLength = source.length();
@@ -19002,8 +19063,8 @@ async function renderChunks(chunks, bundle, pluginDriver, outputOptions, log) {
19002
19063
  timeEnd('render chunks', 2);
19003
19064
  timeStart('transform chunks', 2);
19004
19065
  const chunkGraph = getChunkGraph(chunks);
19005
- const { nonHashedChunksWithPlaceholders, renderedChunksByPlaceholder, hashDependenciesByPlaceholder } = await transformChunksAndGenerateContentHashes(renderedChunks, chunkGraph, outputOptions, pluginDriver, log);
19006
- const hashesByPlaceholder = generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlaceholder, bundle);
19066
+ const { initialHashesByPlaceholder, nonHashedChunksWithPlaceholders, renderedChunksByPlaceholder, hashDependenciesByPlaceholder } = await transformChunksAndGenerateContentHashes(renderedChunks, chunkGraph, outputOptions, pluginDriver, log);
19067
+ const hashesByPlaceholder = generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlaceholder, initialHashesByPlaceholder, bundle);
19007
19068
  addChunksToBundle(renderedChunksByPlaceholder, hashesByPlaceholder, bundle, nonHashedChunksWithPlaceholders, pluginDriver, outputOptions);
19008
19069
  timeEnd('transform chunks', 2);
19009
19070
  }
@@ -19087,18 +19148,20 @@ async function transformChunksAndGenerateContentHashes(renderedChunks, chunkGrap
19087
19148
  const nonHashedChunksWithPlaceholders = [];
19088
19149
  const renderedChunksByPlaceholder = new Map();
19089
19150
  const hashDependenciesByPlaceholder = new Map();
19151
+ const initialHashesByPlaceholder = new Map();
19090
19152
  const placeholders = new Set();
19091
19153
  for (const { preliminaryFileName: { hashPlaceholder } } of renderedChunks) {
19092
19154
  if (hashPlaceholder)
19093
19155
  placeholders.add(hashPlaceholder);
19094
19156
  }
19095
- await Promise.all(renderedChunks.map(async ({ chunk, preliminaryFileName: { fileName, hashPlaceholder }, magicString, usedModules }) => {
19157
+ await Promise.all(renderedChunks.map(async ({ chunk, preliminaryFileName: { fileName, hashPlaceholder }, preliminarySourcemapFileName, magicString, usedModules }) => {
19096
19158
  const transformedChunk = {
19097
19159
  chunk,
19098
19160
  fileName,
19161
+ sourcemapFileName: preliminarySourcemapFileName?.fileName ?? null,
19099
19162
  ...(await transformChunk(magicString, fileName, usedModules, chunkGraph, outputOptions, pluginDriver, log))
19100
19163
  };
19101
- const { code } = transformedChunk;
19164
+ const { code, map } = transformedChunk;
19102
19165
  if (hashPlaceholder) {
19103
19166
  // To create a reproducible content-only hash, all placeholders are
19104
19167
  // replaced with the same value before hashing
@@ -19122,15 +19185,23 @@ async function transformChunksAndGenerateContentHashes(renderedChunks, chunkGrap
19122
19185
  else {
19123
19186
  nonHashedChunksWithPlaceholders.push(transformedChunk);
19124
19187
  }
19188
+ const sourcemapHashPlaceholder = preliminarySourcemapFileName?.hashPlaceholder;
19189
+ if (map && sourcemapHashPlaceholder) {
19190
+ initialHashesByPlaceholder.set(preliminarySourcemapFileName.hashPlaceholder, createHash()
19191
+ .update(map.toString())
19192
+ .digest('hex')
19193
+ .slice(0, preliminarySourcemapFileName.hashPlaceholder.length));
19194
+ }
19125
19195
  }));
19126
19196
  return {
19127
19197
  hashDependenciesByPlaceholder,
19198
+ initialHashesByPlaceholder,
19128
19199
  nonHashedChunksWithPlaceholders,
19129
19200
  renderedChunksByPlaceholder
19130
19201
  };
19131
19202
  }
19132
- function generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlaceholder, bundle) {
19133
- const hashesByPlaceholder = new Map();
19203
+ function generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlaceholder, initialHashesByPlaceholder, bundle) {
19204
+ const hashesByPlaceholder = new Map(initialHashesByPlaceholder);
19134
19205
  for (const [placeholder, { fileName }] of renderedChunksByPlaceholder) {
19135
19206
  let hash = createHash();
19136
19207
  const hashDependencyPlaceholders = new Set([placeholder]);
@@ -19158,21 +19229,29 @@ function generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlac
19158
19229
  return hashesByPlaceholder;
19159
19230
  }
19160
19231
  function addChunksToBundle(renderedChunksByPlaceholder, hashesByPlaceholder, bundle, nonHashedChunksWithPlaceholders, pluginDriver, options) {
19161
- for (const { chunk, code, fileName, map } of renderedChunksByPlaceholder.values()) {
19232
+ for (const { chunk, code, fileName, sourcemapFileName, map } of renderedChunksByPlaceholder.values()) {
19162
19233
  let updatedCode = replacePlaceholders(code, hashesByPlaceholder);
19163
19234
  const finalFileName = replacePlaceholders(fileName, hashesByPlaceholder);
19235
+ let finalSourcemapFileName = null;
19164
19236
  if (map) {
19237
+ finalSourcemapFileName = sourcemapFileName
19238
+ ? replacePlaceholders(sourcemapFileName, hashesByPlaceholder)
19239
+ : `${finalFileName}.map`;
19165
19240
  map.file = replacePlaceholders(map.file, hashesByPlaceholder);
19166
- updatedCode += emitSourceMapAndGetComment(finalFileName, map, pluginDriver, options);
19241
+ updatedCode += emitSourceMapAndGetComment(finalSourcemapFileName, map, pluginDriver, options);
19167
19242
  }
19168
- bundle[finalFileName] = chunk.finalizeChunk(updatedCode, map, hashesByPlaceholder);
19243
+ bundle[finalFileName] = chunk.finalizeChunk(updatedCode, map, finalSourcemapFileName, hashesByPlaceholder);
19169
19244
  }
19170
- for (const { chunk, code, fileName, map } of nonHashedChunksWithPlaceholders) {
19245
+ for (const { chunk, code, fileName, sourcemapFileName, map } of nonHashedChunksWithPlaceholders) {
19171
19246
  let updatedCode = hashesByPlaceholder.size > 0 ? replacePlaceholders(code, hashesByPlaceholder) : code;
19247
+ let finalSourcemapFileName = null;
19172
19248
  if (map) {
19173
- updatedCode += emitSourceMapAndGetComment(fileName, map, pluginDriver, options);
19249
+ finalSourcemapFileName = sourcemapFileName
19250
+ ? replacePlaceholders(sourcemapFileName, hashesByPlaceholder)
19251
+ : `${fileName}.map`;
19252
+ updatedCode += emitSourceMapAndGetComment(finalSourcemapFileName, map, pluginDriver, options);
19174
19253
  }
19175
- bundle[fileName] = chunk.finalizeChunk(updatedCode, map, hashesByPlaceholder);
19254
+ bundle[fileName] = chunk.finalizeChunk(updatedCode, map, finalSourcemapFileName, hashesByPlaceholder);
19176
19255
  }
19177
19256
  }
19178
19257
  function emitSourceMapAndGetComment(fileName, map, pluginDriver, { sourcemap, sourcemapBaseUrl }) {
@@ -19181,11 +19260,11 @@ function emitSourceMapAndGetComment(fileName, map, pluginDriver, { sourcemap, so
19181
19260
  url = map.toUrl();
19182
19261
  }
19183
19262
  else {
19184
- const sourcemapFileName = `${node_path.basename(fileName)}.map`;
19263
+ const sourcemapFileName = node_path.basename(fileName);
19185
19264
  url = sourcemapBaseUrl
19186
19265
  ? new URL(sourcemapFileName, sourcemapBaseUrl).toString()
19187
19266
  : sourcemapFileName;
19188
- pluginDriver.emitFile({ fileName: `${fileName}.map`, source: map.toString(), type: 'asset' });
19267
+ pluginDriver.emitFile({ fileName, source: map.toString(), type: 'asset' });
19189
19268
  }
19190
19269
  return sourcemap === 'hidden' ? '' : `//# ${SOURCEMAPPING_URL}=${url}\n`;
19191
19270
  }
@@ -26801,6 +26880,7 @@ async function normalizeOutputOptions(config, inputOptions, unsetInputOptions) {
26801
26880
  sourcemapBaseUrl: getSourcemapBaseUrl(config),
26802
26881
  sourcemapExcludeSources: config.sourcemapExcludeSources || false,
26803
26882
  sourcemapFile: config.sourcemapFile,
26883
+ sourcemapFileNames: getSourcemapFileNames(config, unsetOptions),
26804
26884
  sourcemapIgnoreList: typeof config.sourcemapIgnoreList === 'function'
26805
26885
  ? config.sourcemapIgnoreList
26806
26886
  : config.sourcemapIgnoreList === false
@@ -27029,6 +27109,13 @@ const getNamespaceToStringTag = (config, generatedCode, inputOptions) => {
27029
27109
  }
27030
27110
  return generatedCode.symbols || false;
27031
27111
  };
27112
+ const getSourcemapFileNames = (config, unsetOptions) => {
27113
+ const configSourcemapFileNames = config.sourcemapFileNames;
27114
+ if (configSourcemapFileNames == null) {
27115
+ unsetOptions.add('sourcemapFileNames');
27116
+ }
27117
+ return configSourcemapFileNames;
27118
+ };
27032
27119
  const getSourcemapBaseUrl = (config) => {
27033
27120
  const { sourcemapBaseUrl } = config;
27034
27121
  if (sourcemapBaseUrl) {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.28.1
4
- Tue, 22 Aug 2023 05:30:38 GMT - commit 1b557cd77cce8560cf073875cf6bc289bbe5f09c
3
+ Rollup.js v3.29.1
4
+ Sun, 10 Sep 2023 05:55:18 GMT - commit 40da6f85525c2ce48d9fd8d5c3579c41d8ef47a8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.28.1
4
- Tue, 22 Aug 2023 05:30:38 GMT - commit 1b557cd77cce8560cf073875cf6bc289bbe5f09c
3
+ Rollup.js v3.29.1
4
+ Sun, 10 Sep 2023 05:55:18 GMT - commit 40da6f85525c2ce48d9fd8d5c3579c41d8ef47a8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.28.1
4
- Tue, 22 Aug 2023 05:30:38 GMT - commit 1b557cd77cce8560cf073875cf6bc289bbe5f09c
3
+ Rollup.js v3.29.1
4
+ Sun, 10 Sep 2023 05:55:18 GMT - commit 40da6f85525c2ce48d9fd8d5c3579c41d8ef47a8
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": "3.28.1",
3
+ "version": "3.29.1",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -62,30 +62,33 @@
62
62
  "optionalDependencies": {
63
63
  "fsevents": "~2.3.2"
64
64
  },
65
+ "devDependenciesComments": {
66
+ "@rollup/plugin-typescript": "It appears that 11.1.3 breaks sourcemaps"
67
+ },
65
68
  "devDependencies": {
66
- "@codemirror/commands": "^6.2.4",
67
- "@codemirror/lang-javascript": "^6.1.9",
69
+ "@codemirror/commands": "^6.2.5",
70
+ "@codemirror/lang-javascript": "^6.2.1",
68
71
  "@codemirror/language": "^6.9.0",
69
- "@codemirror/search": "^6.5.1",
72
+ "@codemirror/search": "^6.5.2",
70
73
  "@codemirror/state": "^6.2.1",
71
- "@codemirror/view": "^6.16.0",
74
+ "@codemirror/view": "^6.17.1",
72
75
  "@jridgewell/sourcemap-codec": "^1.4.15",
73
- "@mermaid-js/mermaid-cli": "^10.3.1",
76
+ "@mermaid-js/mermaid-cli": "^10.4.0",
74
77
  "@rollup/plugin-alias": "^5.0.0",
75
78
  "@rollup/plugin-buble": "^1.0.2",
76
79
  "@rollup/plugin-commonjs": "^25.0.4",
77
80
  "@rollup/plugin-json": "^6.0.0",
78
- "@rollup/plugin-node-resolve": "^15.2.0",
81
+ "@rollup/plugin-node-resolve": "^15.2.1",
79
82
  "@rollup/plugin-replace": "^5.0.2",
80
83
  "@rollup/plugin-terser": "^0.4.3",
81
- "@rollup/plugin-typescript": "^11.1.2",
82
- "@rollup/pluginutils": "^5.0.3",
84
+ "@rollup/plugin-typescript": "11.1.2",
85
+ "@rollup/pluginutils": "^5.0.4",
83
86
  "@types/estree": "1.0.1",
84
87
  "@types/mocha": "^10.0.1",
85
- "@types/node": "~14.18.54",
88
+ "@types/node": "~14.18.58",
86
89
  "@types/yargs-parser": "^21.0.0",
87
- "@typescript-eslint/eslint-plugin": "^6.4.0",
88
- "@typescript-eslint/parser": "^6.4.0",
90
+ "@typescript-eslint/eslint-plugin": "^6.6.0",
91
+ "@typescript-eslint/parser": "^6.6.0",
89
92
  "@vue/eslint-config-prettier": "^8.0.0",
90
93
  "@vue/eslint-config-typescript": "^11.0.3",
91
94
  "acorn": "^8.10.0",
@@ -96,12 +99,12 @@
96
99
  "builtin-modules": "^3.3.0",
97
100
  "chokidar": "^3.5.3",
98
101
  "colorette": "^2.0.20",
99
- "concurrently": "^8.2.0",
102
+ "concurrently": "^8.2.1",
100
103
  "core-js": "^3.32.1",
101
104
  "date-time": "^4.0.0",
102
105
  "es5-shim": "^4.6.7",
103
106
  "es6-shim": "^0.35.8",
104
- "eslint": "^8.47.0",
107
+ "eslint": "^8.48.0",
105
108
  "eslint-config-prettier": "^9.0.0",
106
109
  "eslint-plugin-import": "^2.28.1",
107
110
  "eslint-plugin-prettier": "^5.0.0",
@@ -115,18 +118,18 @@
115
118
  "husky": "^8.0.3",
116
119
  "inquirer": "^9.2.10",
117
120
  "is-reference": "^3.0.1",
118
- "lint-staged": "^14.0.0",
121
+ "lint-staged": "^14.0.1",
119
122
  "locate-character": "^3.0.0",
120
- "magic-string": "^0.30.2",
123
+ "magic-string": "^0.30.3",
121
124
  "mocha": "^10.2.0",
122
125
  "nyc": "^15.1.0",
123
126
  "pinia": "^2.1.6",
124
- "prettier": "^3.0.2",
127
+ "prettier": "^3.0.3",
125
128
  "pretty-bytes": "^6.1.1",
126
129
  "pretty-ms": "^8.0.0",
127
130
  "requirejs": "^2.3.6",
128
- "rollup": "^3.28.0",
129
- "rollup-plugin-license": "^3.0.1",
131
+ "rollup": "^3.28.1",
132
+ "rollup-plugin-license": "^3.1.0",
130
133
  "rollup-plugin-string": "^3.0.0",
131
134
  "rollup-plugin-thatworks": "^1.0.4",
132
135
  "semver": "^7.5.4",
@@ -135,11 +138,11 @@
135
138
  "source-map": "^0.7.4",
136
139
  "source-map-support": "^0.5.21",
137
140
  "systemjs": "^6.14.2",
138
- "terser": "^5.19.2",
141
+ "terser": "^5.19.4",
139
142
  "tslib": "^2.6.2",
140
- "typescript": "^5.1.6",
143
+ "typescript": "^5.2.2",
141
144
  "vite": "^4.4.9",
142
- "vitepress": "^1.0.0-rc.4",
145
+ "vitepress": "^1.0.0-rc.10",
143
146
  "vue": "^3.3.4",
144
147
  "weak-napi": "^2.0.2",
145
148
  "yargs-parser": "^21.1.1"