rollup 4.17.1 → 4.18.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.17.1
5
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
4
+ Rollup.js v4.18.0
5
+ Wed, 22 May 2024 05:03:09 GMT - commit bb6f069ea3623b0297ef3895f2dcb98a2ca5ef58
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.17.1
4
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
3
+ Rollup.js v4.18.0
4
+ Wed, 22 May 2024 05:03:09 GMT - commit bb6f069ea3623b0297ef3895f2dcb98a2ca5ef58
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.17.1
4
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
3
+ Rollup.js v4.18.0
4
+ Wed, 22 May 2024 05:03:09 GMT - commit bb6f069ea3623b0297ef3895f2dcb98a2ca5ef58
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.17.1
4
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
3
+ Rollup.js v4.18.0
4
+ Wed, 22 May 2024 05:03:09 GMT - commit bb6f069ea3623b0297ef3895f2dcb98a2ca5ef58
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.17.1
4
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
3
+ Rollup.js v4.18.0
4
+ Wed, 22 May 2024 05:03:09 GMT - commit bb6f069ea3623b0297ef3895f2dcb98a2ca5ef58
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -9,14 +9,14 @@
9
9
  */
10
10
  import { normalize, getImportPath, ExportDefaultDeclaration as ExportDefaultDeclaration$1, CallExpression as CallExpression$1, EMPTY_ARRAY, LOGLEVEL_WARN, logUnusedExternalImports, ANNOTATION_KEY, INVALID_ANNOTATION_KEY, Program as Program$1, BLANK, logIllegalImportReassignment, logRedeclarationError, CatchClause as CatchClause$1, logDuplicateArgumentNameError, logModuleLevelDirective, ReturnStatement as ReturnStatement$1, VariableDeclarator as VariableDeclarator$1, Property as Property$1, logConstVariableReassignError, ExpressionStatement as ExpressionStatement$1, ArrowFunctionExpression as ArrowFunctionExpression$1, logMissingExport, EMPTY_SET, logCannotCallNamespace, logEval, BlockStatement as BlockStatement$1, getRollupError, logParseError, logModuleParseError, error, LOGLEVEL_INFO, logFirstSideEffect, locate, logInvalidAnnotation, Identifier as Identifier$1, logThisIsUndefined, getReadStringFunction, convertString, convertAnnotations, FIXED_STRINGS, convertNode as convertNode$1, EMPTY_OBJECT, logImportAttributeIsInvalid, logImportOptionsAreInvalid, logSyntheticNamedExportsNeedNamespaceExport, logMissingEntryExport, logInvalidFormatForTopLevelAwait, logDuplicateExportError, logInvalidSourcemapForError, augmentCodeLocation, logInconsistentImportAttributes, logNamespaceConflict, logAmbiguousExternalNamespaces, logShimmedExport, parseAst, logCircularReexport, TemplateLiteral as TemplateLiteral$1, Literal as Literal$1, logMissingNodeBuiltins, logIllegalIdentifierAsName, logMissingNameOptionForIifeExport, logMissingNameOptionForUmdExport, logAddonNotGenerated, logIncompatibleExportOptionValue, logMixedExport, logFailedValidation, isPathFragment, logCyclicCrossChunkReexport, getAliasName, logUnexpectedNamedImport, isAbsolute as isAbsolute$1, relative as relative$1, logUnexpectedNamespaceReexport, logEmptyChunk, logMissingGlobalName, logOptimizeChunkStatus, logSourcemapBroken, logConflictingSourcemapSources, logChunkInvalid, logInvalidOption, URL_OUTPUT_FORMAT, URL_OUTPUT_DIR, URL_OUTPUT_SOURCEMAPFILE, URL_OUTPUT_AMD_ID, logCannotAssignModuleToChunk, logAnonymousPluginCache, logDuplicatePluginName, LOGLEVEL_ERROR, logLevelPriority, LOGLEVEL_DEBUG, logUnknownOption, printQuotedStringList, logInvalidSetAssetSourceCall, logPluginError, logNoTransformMapOrAstWithoutCode, relativeId, logBadLoader, logExternalModulesCannotBeTransformedToModules, logInternalIdCannotBeExternal, isRelative, logUnresolvedImport, logUnresolvedImportTreatedAsExternal, logExternalSyntheticExports, logUnresolvedEntry, logUnresolvedImplicitDependant, logExternalModulesCannotBeIncludedInManualChunks, logEntryCannotBeExternal, logImplicitDependantCannotBeExternal, logNoAssetSourceSet, logFileReferenceIdNotFoundForFilename, logAssetReferenceIdNotFoundForSetSource, logAssetSourceAlreadySet, logInvalidRollupPhaseForChunkEmission, logFileNameConflict, logAssetNotFinalisedForFileName, logChunkNotGeneratedForFileName, logInvalidLogPosition, logInputHookInOutputPlugin, logInvalidFunctionPluginHook, logInvalidAddonPluginHook, logImplicitDependantIsNotIncluded, logCircularDependency, augmentLogMessage, URL_TREESHAKE_MODULESIDEEFFECTS, URL_TREESHAKE, URL_OUTPUT_INLINEDYNAMICIMPORTS, URL_PRESERVEENTRYSIGNATURES, URL_OUTPUT_AMD_BASEPATH, logInvalidExportOptionValue, warnDeprecation, URL_OUTPUT_INTEROP, URL_OUTPUT_MANUALCHUNKS, isValidUrl, addTrailingSlashIfMissed, URL_OUTPUT_SOURCEMAPBASEURL, URL_OUTPUT_GENERATEDCODE, URL_OUTPUT_EXTERNALIMPORTATTRIBUTES, logAlreadyClosed, logMissingFileOrDirOption, logCannotEmitFromOptionsHook, URL_WATCH } from './parseAst.js';
11
11
  import { relative, dirname, basename, extname, resolve as resolve$1 } from 'node:path';
12
- import require$$0$1, { win32, posix, isAbsolute, resolve } from 'path';
12
+ import require$$0, { win32, posix, isAbsolute, resolve } from 'path';
13
13
  import { parseAsync, xxhashBase64Url, xxhashBase36, xxhashBase16 } from '../../native.js';
14
14
  import process$1, { env as env$1 } from 'node:process';
15
15
  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.17.1";
19
+ var version = "4.18.0";
20
20
 
21
21
  const comma = ','.charCodeAt(0);
22
22
  const semicolon = ';'.charCodeAt(0);
@@ -2261,7 +2261,7 @@ function getAugmentedNamespace(n) {
2261
2261
 
2262
2262
  var utils$3 = {};
2263
2263
 
2264
- const path$1 = require$$0$1;
2264
+ const path$1 = require$$0;
2265
2265
  const WIN_SLASH = '\\\\/';
2266
2266
  const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
2267
2267
 
@@ -2441,7 +2441,7 @@ var constants$2 = {
2441
2441
 
2442
2442
  (function (exports) {
2443
2443
 
2444
- const path = require$$0$1;
2444
+ const path = require$$0;
2445
2445
  const win32 = process.platform === 'win32';
2446
2446
  const {
2447
2447
  REGEX_BACKSLASH,
@@ -3978,7 +3978,7 @@ parse$1.fastpaths = (input, options) => {
3978
3978
 
3979
3979
  var parse_1 = parse$1;
3980
3980
 
3981
- const path = require$$0$1;
3981
+ const path = require$$0;
3982
3982
  const scan = scan_1;
3983
3983
  const parse = parse_1;
3984
3984
  const utils = utils$3;
@@ -7952,6 +7952,9 @@ class FunctionBase extends NodeBase {
7952
7952
  const parameter = this.params[position];
7953
7953
  // Only the "this" argument arg[0] can be null
7954
7954
  const argument = args[position + 1];
7955
+ if (argument instanceof SpreadElement) {
7956
+ this.deoptimizeParameterVariableValues();
7957
+ }
7955
7958
  if (hasRest || parameter instanceof RestElement) {
7956
7959
  hasRest = true;
7957
7960
  argument.deoptimizePath(UNKNOWN_PATH);
@@ -13100,6 +13103,8 @@ class UnknownNode extends NodeBase {
13100
13103
  }
13101
13104
  }
13102
13105
 
13106
+ // This file is generated by scripts/generate-node-index.js.
13107
+ // Do not edit this file directly.
13103
13108
  const nodeConstructors = {
13104
13109
  ArrayExpression,
13105
13110
  ArrayPattern,
@@ -13118,6 +13123,7 @@ const nodeConstructors = {
13118
13123
  ClassExpression,
13119
13124
  ConditionalExpression,
13120
13125
  ContinueStatement,
13126
+ DebuggerStatement,
13121
13127
  DoWhileStatement,
13122
13128
  EmptyStatement,
13123
13129
  ExportAllDeclaration,
@@ -13531,7 +13537,7 @@ function getPersistedLabel(label, level) {
13531
13537
  return label;
13532
13538
  }
13533
13539
  default: {
13534
- return `${' '.repeat(level - 4)}- ${label}`;
13540
+ return `- ${label}`;
13535
13541
  }
13536
13542
  }
13537
13543
  }
@@ -14873,8 +14879,9 @@ function updateExtensionForRelativeAmdId(id, forceJsExtensionForImports) {
14873
14879
  return forceJsExtensionForImports ? addJsExtension(id) : removeJsExtension(id);
14874
14880
  }
14875
14881
 
14876
- const require$$0 = [
14882
+ const builtinModules = [
14877
14883
  "assert",
14884
+ "assert/strict",
14878
14885
  "async_hooks",
14879
14886
  "buffer",
14880
14887
  "child_process",
@@ -14885,31 +14892,42 @@ const require$$0 = [
14885
14892
  "dgram",
14886
14893
  "diagnostics_channel",
14887
14894
  "dns",
14895
+ "dns/promises",
14888
14896
  "domain",
14889
14897
  "events",
14890
14898
  "fs",
14899
+ "fs/promises",
14891
14900
  "http",
14892
14901
  "http2",
14893
14902
  "https",
14894
14903
  "inspector",
14904
+ "inspector/promises",
14895
14905
  "module",
14896
14906
  "net",
14897
14907
  "os",
14898
14908
  "path",
14909
+ "path/posix",
14910
+ "path/win32",
14899
14911
  "perf_hooks",
14900
14912
  "process",
14901
14913
  "punycode",
14902
14914
  "querystring",
14903
14915
  "readline",
14916
+ "readline/promises",
14904
14917
  "repl",
14905
14918
  "stream",
14919
+ "stream/consumers",
14920
+ "stream/promises",
14921
+ "stream/web",
14906
14922
  "string_decoder",
14907
14923
  "timers",
14924
+ "timers/promises",
14908
14925
  "tls",
14909
14926
  "trace_events",
14910
14927
  "tty",
14911
14928
  "url",
14912
14929
  "util",
14930
+ "util/types",
14913
14931
  "v8",
14914
14932
  "vm",
14915
14933
  "wasi",
@@ -14917,26 +14935,7 @@ const require$$0 = [
14917
14935
  "zlib"
14918
14936
  ];
14919
14937
 
14920
- var _static = require$$0;
14921
-
14922
- const builtinModules = /*@__PURE__*/getDefaultExportFromCjs(_static);
14923
-
14924
- const nodeBuiltins = new Set([
14925
- ...builtinModules,
14926
- // TODO
14927
- // remove once builtin-modules includes PR: https://github.com/sindresorhus/builtin-modules/pull/17
14928
- 'assert/strict',
14929
- 'dns/promises',
14930
- 'fs/promises',
14931
- 'path/posix',
14932
- 'path/win32',
14933
- 'readline/promises',
14934
- 'stream/consumers',
14935
- 'stream/promises',
14936
- 'stream/web',
14937
- 'timers/promises',
14938
- 'util/types'
14939
- ]);
14938
+ const nodeBuiltins = new Set(builtinModules);
14940
14939
  function warnOnBuiltins(log, dependencies) {
14941
14940
  const externalBuiltins = dependencies
14942
14941
  .map(({ importPath }) => importPath)
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.17.1
4
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
3
+ Rollup.js v4.18.0
4
+ Wed, 22 May 2024 05:03:09 GMT - commit bb6f069ea3623b0297ef3895f2dcb98a2ca5ef58
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -10,6 +10,8 @@
10
10
  import { parse, parseAsync } from '../../native.js';
11
11
  import { resolve, basename, extname, dirname } from 'node:path';
12
12
 
13
+ // This file is generated by scripts/generate-node-types.js.
14
+ // Do not edit this file directly.
13
15
  const ArrowFunctionExpression = 'ArrowFunctionExpression';
14
16
  const BlockStatement = 'BlockStatement';
15
17
  const CallExpression = 'CallExpression';
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.17.1
4
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
3
+ Rollup.js v4.18.0
4
+ Wed, 22 May 2024 05:03:09 GMT - commit bb6f069ea3623b0297ef3895f2dcb98a2ca5ef58
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.17.1
4
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
3
+ Rollup.js v4.18.0
4
+ Wed, 22 May 2024 05:03:09 GMT - commit bb6f069ea3623b0297ef3895f2dcb98a2ca5ef58
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.17.1
4
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
3
+ Rollup.js v4.18.0
4
+ Wed, 22 May 2024 05:03:09 GMT - commit bb6f069ea3623b0297ef3895f2dcb98a2ca5ef58
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.17.1
4
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
3
+ Rollup.js v4.18.0
4
+ Wed, 22 May 2024 05:03:09 GMT - commit bb6f069ea3623b0297ef3895f2dcb98a2ca5ef58
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.17.1
4
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
3
+ Rollup.js v4.18.0
4
+ Wed, 22 May 2024 05:03:09 GMT - commit bb6f069ea3623b0297ef3895f2dcb98a2ca5ef58
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.17.1
4
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
3
+ Rollup.js v4.18.0
4
+ Wed, 22 May 2024 05:03:09 GMT - commit bb6f069ea3623b0297ef3895f2dcb98a2ca5ef58
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.17.1
4
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
3
+ Rollup.js v4.18.0
4
+ Wed, 22 May 2024 05:03:09 GMT - commit bb6f069ea3623b0297ef3895f2dcb98a2ca5ef58
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.17.1
4
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
3
+ Rollup.js v4.18.0
4
+ Wed, 22 May 2024 05:03:09 GMT - commit bb6f069ea3623b0297ef3895f2dcb98a2ca5ef58
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -508,8 +508,14 @@ async function loadTranspiledConfigFile(fileName, commandOptions) {
508
508
  if (property === 'url') {
509
509
  return `'${node_url.pathToFileURL(moduleId).href}'`;
510
510
  }
511
+ if (property == 'filename') {
512
+ return `'${moduleId}'`;
513
+ }
514
+ if (property == 'dirname') {
515
+ return `'${path.dirname(moduleId)}'`;
516
+ }
511
517
  if (property == null) {
512
- return `{url:'${node_url.pathToFileURL(moduleId).href}'}`;
518
+ return `{url:'${node_url.pathToFileURL(moduleId).href}', filename: '${moduleId}', dirname: '${path.dirname(moduleId)}'}`;
513
519
  }
514
520
  }
515
521
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.17.1
4
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
3
+ Rollup.js v4.18.0
4
+ Wed, 22 May 2024 05:03:09 GMT - commit bb6f069ea3623b0297ef3895f2dcb98a2ca5ef58
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1001,6 +1001,8 @@ const EMPTY_SET = Object.freeze(new (class extends Set {
1001
1001
  }
1002
1002
  })());
1003
1003
 
1004
+ // This file is generated by scripts/generate-node-types.js.
1005
+ // Do not edit this file directly.
1004
1006
  const ArrowFunctionExpression = 'ArrowFunctionExpression';
1005
1007
  const BlockStatement = 'BlockStatement';
1006
1008
  const CallExpression = 'CallExpression';
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.17.1
4
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
3
+ Rollup.js v4.18.0
4
+ Wed, 22 May 2024 05:03:09 GMT - commit bb6f069ea3623b0297ef3895f2dcb98a2ca5ef58
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -13,7 +13,7 @@ const parseAst_js = require('./parseAst.js');
13
13
  const process$1 = require('node:process');
14
14
  const tty = require('tty');
15
15
  const path$2 = require('node:path');
16
- const require$$0$1 = require('path');
16
+ const require$$0 = require('path');
17
17
  const native_js = require('../native.js');
18
18
  const node_perf_hooks = require('node:perf_hooks');
19
19
  const promises = require('node:fs/promises');
@@ -31,7 +31,7 @@ function _interopNamespaceDefault(e) {
31
31
 
32
32
  const tty__namespace = /*#__PURE__*/_interopNamespaceDefault(tty);
33
33
 
34
- var version = "4.17.1";
34
+ var version = "4.18.0";
35
35
 
36
36
  function ensureArray$1(items) {
37
37
  if (Array.isArray(items)) {
@@ -3717,7 +3717,7 @@ function getAugmentedNamespace(n) {
3717
3717
 
3718
3718
  var utils$3 = {};
3719
3719
 
3720
- const path$1 = require$$0$1;
3720
+ const path$1 = require$$0;
3721
3721
  const WIN_SLASH = '\\\\/';
3722
3722
  const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
3723
3723
 
@@ -3897,7 +3897,7 @@ var constants$2 = {
3897
3897
 
3898
3898
  (function (exports) {
3899
3899
 
3900
- const path = require$$0$1;
3900
+ const path = require$$0;
3901
3901
  const win32 = process.platform === 'win32';
3902
3902
  const {
3903
3903
  REGEX_BACKSLASH,
@@ -5434,7 +5434,7 @@ parse$1.fastpaths = (input, options) => {
5434
5434
 
5435
5435
  var parse_1 = parse$1;
5436
5436
 
5437
- const path = require$$0$1;
5437
+ const path = require$$0;
5438
5438
  const scan = scan_1;
5439
5439
  const parse = parse_1;
5440
5440
  const utils = utils$3;
@@ -5827,22 +5827,22 @@ function ensureArray(thing) {
5827
5827
  }
5828
5828
 
5829
5829
  const normalizePath = function normalizePath(filename) {
5830
- return filename.split(require$$0$1.win32.sep).join(require$$0$1.posix.sep);
5830
+ return filename.split(require$$0.win32.sep).join(require$$0.posix.sep);
5831
5831
  };
5832
5832
 
5833
5833
  function getMatcherString(id, resolutionBase) {
5834
- if (resolutionBase === false || require$$0$1.isAbsolute(id) || id.startsWith('**')) {
5834
+ if (resolutionBase === false || require$$0.isAbsolute(id) || id.startsWith('**')) {
5835
5835
  return normalizePath(id);
5836
5836
  }
5837
5837
  // resolve('') is valid and will default to process.cwd()
5838
- const basePath = normalizePath(require$$0$1.resolve(resolutionBase || ''))
5838
+ const basePath = normalizePath(require$$0.resolve(resolutionBase || ''))
5839
5839
  // escape all possible (posix + win) path characters that might interfere with regex
5840
5840
  .replace(/[-^$*+?.()|[\]{}]/g, '\\$&');
5841
5841
  // Note that we use posix.join because:
5842
5842
  // 1. the basePath has been normalized to use /
5843
5843
  // 2. the incoming glob (id) matcher, also uses /
5844
5844
  // otherwise Node will force backslash (\) on windows
5845
- return require$$0$1.posix.join(basePath, normalizePath(id));
5845
+ return require$$0.posix.join(basePath, normalizePath(id));
5846
5846
  }
5847
5847
  const createFilter = function createFilter(include, exclude, options) {
5848
5848
  const resolutionBase = options && options.resolve;
@@ -9394,6 +9394,9 @@ class FunctionBase extends NodeBase {
9394
9394
  const parameter = this.params[position];
9395
9395
  // Only the "this" argument arg[0] can be null
9396
9396
  const argument = args[position + 1];
9397
+ if (argument instanceof SpreadElement) {
9398
+ this.deoptimizeParameterVariableValues();
9399
+ }
9397
9400
  if (hasRest || parameter instanceof RestElement) {
9398
9401
  hasRest = true;
9399
9402
  argument.deoptimizePath(UNKNOWN_PATH);
@@ -14542,6 +14545,8 @@ class UnknownNode extends NodeBase {
14542
14545
  }
14543
14546
  }
14544
14547
 
14548
+ // This file is generated by scripts/generate-node-index.js.
14549
+ // Do not edit this file directly.
14545
14550
  const nodeConstructors = {
14546
14551
  ArrayExpression,
14547
14552
  ArrayPattern,
@@ -14560,6 +14565,7 @@ const nodeConstructors = {
14560
14565
  ClassExpression,
14561
14566
  ConditionalExpression,
14562
14567
  ContinueStatement,
14568
+ DebuggerStatement,
14563
14569
  DoWhileStatement,
14564
14570
  EmptyStatement,
14565
14571
  ExportAllDeclaration,
@@ -14966,7 +14972,7 @@ function getPersistedLabel(label, level) {
14966
14972
  return label;
14967
14973
  }
14968
14974
  default: {
14969
- return `${' '.repeat(level - 4)}- ${label}`;
14975
+ return `- ${label}`;
14970
14976
  }
14971
14977
  }
14972
14978
  }
@@ -16308,8 +16314,9 @@ function updateExtensionForRelativeAmdId(id, forceJsExtensionForImports) {
16308
16314
  return forceJsExtensionForImports ? addJsExtension(id) : removeJsExtension(id);
16309
16315
  }
16310
16316
 
16311
- const require$$0 = [
16317
+ const builtinModules = [
16312
16318
  "assert",
16319
+ "assert/strict",
16313
16320
  "async_hooks",
16314
16321
  "buffer",
16315
16322
  "child_process",
@@ -16320,31 +16327,42 @@ const require$$0 = [
16320
16327
  "dgram",
16321
16328
  "diagnostics_channel",
16322
16329
  "dns",
16330
+ "dns/promises",
16323
16331
  "domain",
16324
16332
  "events",
16325
16333
  "fs",
16334
+ "fs/promises",
16326
16335
  "http",
16327
16336
  "http2",
16328
16337
  "https",
16329
16338
  "inspector",
16339
+ "inspector/promises",
16330
16340
  "module",
16331
16341
  "net",
16332
16342
  "os",
16333
16343
  "path",
16344
+ "path/posix",
16345
+ "path/win32",
16334
16346
  "perf_hooks",
16335
16347
  "process",
16336
16348
  "punycode",
16337
16349
  "querystring",
16338
16350
  "readline",
16351
+ "readline/promises",
16339
16352
  "repl",
16340
16353
  "stream",
16354
+ "stream/consumers",
16355
+ "stream/promises",
16356
+ "stream/web",
16341
16357
  "string_decoder",
16342
16358
  "timers",
16359
+ "timers/promises",
16343
16360
  "tls",
16344
16361
  "trace_events",
16345
16362
  "tty",
16346
16363
  "url",
16347
16364
  "util",
16365
+ "util/types",
16348
16366
  "v8",
16349
16367
  "vm",
16350
16368
  "wasi",
@@ -16352,26 +16370,7 @@ const require$$0 = [
16352
16370
  "zlib"
16353
16371
  ];
16354
16372
 
16355
- var _static = require$$0;
16356
-
16357
- const builtinModules = /*@__PURE__*/getDefaultExportFromCjs(_static);
16358
-
16359
- const nodeBuiltins = new Set([
16360
- ...builtinModules,
16361
- // TODO
16362
- // remove once builtin-modules includes PR: https://github.com/sindresorhus/builtin-modules/pull/17
16363
- 'assert/strict',
16364
- 'dns/promises',
16365
- 'fs/promises',
16366
- 'path/posix',
16367
- 'path/win32',
16368
- 'readline/promises',
16369
- 'stream/consumers',
16370
- 'stream/promises',
16371
- 'stream/web',
16372
- 'timers/promises',
16373
- 'util/types'
16374
- ]);
16373
+ const nodeBuiltins = new Set(builtinModules);
16375
16374
  function warnOnBuiltins(log, dependencies) {
16376
16375
  const externalBuiltins = dependencies
16377
16376
  .map(({ importPath }) => importPath)
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.17.1
4
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
3
+ Rollup.js v4.18.0
4
+ Wed, 22 May 2024 05:03:09 GMT - commit bb6f069ea3623b0297ef3895f2dcb98a2ca5ef58
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.17.1
4
- Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
3
+ Rollup.js v4.18.0
4
+ Wed, 22 May 2024 05:03:09 GMT - commit bb6f069ea3623b0297ef3895f2dcb98a2ca5ef58
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.17.1",
3
+ "version": "4.18.0",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -50,6 +50,7 @@
50
50
  "dev": "vitepress dev docs",
51
51
  "build:cjs": "rollup --config rollup.config.ts --configPlugin typescript --configTest --forceExit",
52
52
  "build:bootstrap": "shx mv dist dist-build && node dist-build/bin/rollup --config rollup.config.ts --configPlugin typescript --forceExit && shx rm -rf dist-build",
53
+ "build:bootstrap:cjs": "shx mv dist dist-build && node dist-build/bin/rollup --config rollup.config.ts --configPlugin typescript --configTest --forceExit && shx rm -rf dist-build",
53
54
  "build:docs": "vitepress build docs",
54
55
  "build:ast-converters": "node scripts/generate-ast-converters.js",
55
56
  "preview:docs": "vitepress preview docs",
@@ -66,7 +67,7 @@
66
67
  "lint:markdown:nofix": "prettier --check \"**/*.md\"",
67
68
  "lint:rust": "cd rust && cargo fmt && cargo clippy --fix --allow-dirty",
68
69
  "lint:rust:nofix": "cd rust && cargo fmt --check && cargo clippy",
69
- "perf": "npm run build && node --expose-gc scripts/perf-report/index.js",
70
+ "perf": "npm run build:bootstrap:cjs && node --expose-gc scripts/perf-report/index.js",
70
71
  "prepare": "husky && node scripts/check-release.js || npm run build:prepare",
71
72
  "prepublishOnly": "node scripts/check-release.js && node scripts/prepublish.js",
72
73
  "postpublish": "node scripts/postpublish.js",
@@ -104,22 +105,22 @@
104
105
  "homepage": "https://rollupjs.org/",
105
106
  "optionalDependencies": {
106
107
  "fsevents": "~2.3.2",
107
- "@rollup/rollup-darwin-arm64": "4.17.1",
108
- "@rollup/rollup-android-arm64": "4.17.1",
109
- "@rollup/rollup-win32-arm64-msvc": "4.17.1",
110
- "@rollup/rollup-linux-arm64-gnu": "4.17.1",
111
- "@rollup/rollup-linux-arm64-musl": "4.17.1",
112
- "@rollup/rollup-android-arm-eabi": "4.17.1",
113
- "@rollup/rollup-linux-arm-gnueabihf": "4.17.1",
114
- "@rollup/rollup-linux-arm-musleabihf": "4.17.1",
115
- "@rollup/rollup-win32-ia32-msvc": "4.17.1",
116
- "@rollup/rollup-linux-riscv64-gnu": "4.17.1",
117
- "@rollup/rollup-linux-powerpc64le-gnu": "4.17.1",
118
- "@rollup/rollup-linux-s390x-gnu": "4.17.1",
119
- "@rollup/rollup-darwin-x64": "4.17.1",
120
- "@rollup/rollup-win32-x64-msvc": "4.17.1",
121
- "@rollup/rollup-linux-x64-gnu": "4.17.1",
122
- "@rollup/rollup-linux-x64-musl": "4.17.1"
108
+ "@rollup/rollup-darwin-arm64": "4.18.0",
109
+ "@rollup/rollup-android-arm64": "4.18.0",
110
+ "@rollup/rollup-win32-arm64-msvc": "4.18.0",
111
+ "@rollup/rollup-linux-arm64-gnu": "4.18.0",
112
+ "@rollup/rollup-linux-arm64-musl": "4.18.0",
113
+ "@rollup/rollup-android-arm-eabi": "4.18.0",
114
+ "@rollup/rollup-linux-arm-gnueabihf": "4.18.0",
115
+ "@rollup/rollup-linux-arm-musleabihf": "4.18.0",
116
+ "@rollup/rollup-win32-ia32-msvc": "4.18.0",
117
+ "@rollup/rollup-linux-riscv64-gnu": "4.18.0",
118
+ "@rollup/rollup-linux-powerpc64le-gnu": "4.18.0",
119
+ "@rollup/rollup-linux-s390x-gnu": "4.18.0",
120
+ "@rollup/rollup-darwin-x64": "4.18.0",
121
+ "@rollup/rollup-win32-x64-msvc": "4.18.0",
122
+ "@rollup/rollup-linux-x64-gnu": "4.18.0",
123
+ "@rollup/rollup-linux-x64-musl": "4.18.0"
123
124
  },
124
125
  "dependencies": {
125
126
  "@types/estree": "1.0.5"
@@ -136,8 +137,8 @@
136
137
  "@codemirror/state": "^6.4.1",
137
138
  "@codemirror/view": "^6.26.3",
138
139
  "@jridgewell/sourcemap-codec": "^1.4.15",
139
- "@mermaid-js/mermaid-cli": "^10.8.0",
140
- "@napi-rs/cli": "^2.18.2",
140
+ "@mermaid-js/mermaid-cli": "^10.9.0",
141
+ "@napi-rs/cli": "^2.18.3",
141
142
  "@rollup/plugin-alias": "^5.1.0",
142
143
  "@rollup/plugin-buble": "^1.0.3",
143
144
  "@rollup/plugin-commonjs": "^25.0.7",
@@ -147,20 +148,21 @@
147
148
  "@rollup/plugin-terser": "^0.4.4",
148
149
  "@rollup/plugin-typescript": "^11.1.6",
149
150
  "@rollup/pluginutils": "^5.1.0",
150
- "@shikijs/vitepress-twoslash": "^1.3.0",
151
+ "@shikijs/vitepress-twoslash": "^1.5.1",
151
152
  "@types/eslint": "^8.56.10",
152
153
  "@types/inquirer": "^9.0.7",
153
154
  "@types/mocha": "^10.0.6",
154
155
  "@types/node": "~18.18.14",
156
+ "@types/semver": "^7.5.8",
155
157
  "@types/yargs-parser": "^21.0.3",
156
- "@typescript-eslint/eslint-plugin": "^7.7.1",
157
- "@typescript-eslint/parser": "^7.7.1",
158
+ "@typescript-eslint/eslint-plugin": "^7.9.0",
159
+ "@typescript-eslint/parser": "^7.9.0",
158
160
  "@vue/eslint-config-prettier": "^9.0.0",
159
161
  "@vue/eslint-config-typescript": "^13.0.0",
160
162
  "acorn": "^8.11.3",
161
163
  "acorn-import-assertions": "^1.9.0",
162
164
  "buble": "^0.20.0",
163
- "builtin-modules": "^3.3.0",
165
+ "builtin-modules": "^4.0.0",
164
166
  "chokidar": "^3.6.0",
165
167
  "colorette": "^2.0.20",
166
168
  "concurrently": "^8.2.2",
@@ -173,14 +175,14 @@
173
175
  "eslint-config-prettier": "^9.1.0",
174
176
  "eslint-plugin-import": "^2.29.1",
175
177
  "eslint-plugin-prettier": "^5.1.3",
176
- "eslint-plugin-unicorn": "^52.0.0",
177
- "eslint-plugin-vue": "^9.25.0",
178
+ "eslint-plugin-unicorn": "^53.0.0",
179
+ "eslint-plugin-vue": "^9.26.0",
178
180
  "fixturify": "^3.0.0",
179
181
  "flru": "^1.0.2",
180
182
  "fs-extra": "^11.2.0",
181
183
  "github-api": "^3.4.0",
182
184
  "husky": "^9.0.11",
183
- "inquirer": "^9.2.19",
185
+ "inquirer": "^9.2.21",
184
186
  "is-reference": "^3.0.2",
185
187
  "lint-staged": "^15.2.2",
186
188
  "locate-character": "^3.0.0",
@@ -192,28 +194,28 @@
192
194
  "pretty-bytes": "^6.1.1",
193
195
  "pretty-ms": "^9.0.0",
194
196
  "requirejs": "^2.3.6",
195
- "rollup": "^4.16.3",
197
+ "rollup": "^4.17.2",
196
198
  "rollup-plugin-license": "^3.3.1",
197
199
  "rollup-plugin-string": "^3.0.0",
198
- "semver": "^7.6.0",
200
+ "semver": "^7.6.2",
199
201
  "shx": "^0.3.4",
200
202
  "signal-exit": "^4.1.0",
201
203
  "source-map": "^0.7.4",
202
204
  "source-map-support": "^0.5.21",
203
- "systemjs": "^6.14.3",
204
- "terser": "^5.30.4",
205
+ "systemjs": "^6.15.1",
206
+ "terser": "^5.31.0",
205
207
  "tslib": "^2.6.2",
206
208
  "typescript": "^5.4.5",
207
- "vite": "^5.2.10",
208
- "vitepress": "^1.1.3",
209
- "vue": "^3.4.24",
209
+ "vite": "^5.2.11",
210
+ "vitepress": "^1.1.4",
211
+ "vue": "^3.4.27",
210
212
  "wasm-pack": "^0.12.1",
211
213
  "weak-napi": "^2.0.2",
212
214
  "yargs-parser": "^21.1.1"
213
215
  },
214
216
  "overrides": {
215
217
  "axios": "^1.6.8",
216
- "semver": "^7.6.0"
218
+ "semver": "^7.6.2"
217
219
  },
218
220
  "files": [
219
221
  "dist/*.node",