@rollup/wasm-node 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
 
@@ -215,7 +215,7 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
215
215
  takeObject(arg0);
216
216
  };
217
217
 
218
- module.exports.__wbg_crypto_566d7465cdbb6b7a = function(arg0) {
218
+ module.exports.__wbg_crypto_1d1f22824a6a080c = function(arg0) {
219
219
  const ret = getObject(arg0).crypto;
220
220
  return addHeapObject(ret);
221
221
  };
@@ -226,17 +226,17 @@ module.exports.__wbindgen_is_object = function(arg0) {
226
226
  return ret;
227
227
  };
228
228
 
229
- module.exports.__wbg_process_dc09a8c7d59982f6 = function(arg0) {
229
+ module.exports.__wbg_process_4a72847cc503995b = function(arg0) {
230
230
  const ret = getObject(arg0).process;
231
231
  return addHeapObject(ret);
232
232
  };
233
233
 
234
- module.exports.__wbg_versions_d98c6400c6ca2bd8 = function(arg0) {
234
+ module.exports.__wbg_versions_f686565e586dd935 = function(arg0) {
235
235
  const ret = getObject(arg0).versions;
236
236
  return addHeapObject(ret);
237
237
  };
238
238
 
239
- module.exports.__wbg_node_caaf83d002149bd5 = function(arg0) {
239
+ module.exports.__wbg_node_104a2ff8d6ea03a2 = function(arg0) {
240
240
  const ret = getObject(arg0).node;
241
241
  return addHeapObject(ret);
242
242
  };
@@ -246,12 +246,12 @@ module.exports.__wbindgen_is_string = function(arg0) {
246
246
  return ret;
247
247
  };
248
248
 
249
- module.exports.__wbg_msCrypto_0b84745e9245cdf6 = function(arg0) {
249
+ module.exports.__wbg_msCrypto_eb05e62b530a1508 = function(arg0) {
250
250
  const ret = getObject(arg0).msCrypto;
251
251
  return addHeapObject(ret);
252
252
  };
253
253
 
254
- module.exports.__wbg_require_94a9da52636aacbf = function() { return handleError(function () {
254
+ module.exports.__wbg_require_cca90b1a94a0255b = function() { return handleError(function () {
255
255
  const ret = module.require;
256
256
  return addHeapObject(ret);
257
257
  }, arguments) };
@@ -266,11 +266,11 @@ module.exports.__wbindgen_string_new = function(arg0, arg1) {
266
266
  return addHeapObject(ret);
267
267
  };
268
268
 
269
- module.exports.__wbg_randomFillSync_290977693942bf03 = function() { return handleError(function (arg0, arg1) {
269
+ module.exports.__wbg_randomFillSync_5c9c955aa56b6049 = function() { return handleError(function (arg0, arg1) {
270
270
  getObject(arg0).randomFillSync(takeObject(arg1));
271
271
  }, arguments) };
272
272
 
273
- module.exports.__wbg_getRandomValues_260cc23a41afad9a = function() { return handleError(function (arg0, arg1) {
273
+ module.exports.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) {
274
274
  getObject(arg0).getRandomValues(getObject(arg1));
275
275
  }, arguments) };
276
276
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rollup/wasm-node",
3
- "version": "4.17.1",
3
+ "version": "4.18.0",
4
4
  "description": "Next-generation ES module bundler with Node wasm",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -40,8 +40,8 @@
40
40
  "@codemirror/state": "^6.4.1",
41
41
  "@codemirror/view": "^6.26.3",
42
42
  "@jridgewell/sourcemap-codec": "^1.4.15",
43
- "@mermaid-js/mermaid-cli": "^10.8.0",
44
- "@napi-rs/cli": "^2.18.2",
43
+ "@mermaid-js/mermaid-cli": "^10.9.0",
44
+ "@napi-rs/cli": "^2.18.3",
45
45
  "@rollup/plugin-alias": "^5.1.0",
46
46
  "@rollup/plugin-buble": "^1.0.3",
47
47
  "@rollup/plugin-commonjs": "^25.0.7",
@@ -51,20 +51,21 @@
51
51
  "@rollup/plugin-terser": "^0.4.4",
52
52
  "@rollup/plugin-typescript": "^11.1.6",
53
53
  "@rollup/pluginutils": "^5.1.0",
54
- "@shikijs/vitepress-twoslash": "^1.3.0",
54
+ "@shikijs/vitepress-twoslash": "^1.5.1",
55
55
  "@types/eslint": "^8.56.10",
56
56
  "@types/inquirer": "^9.0.7",
57
57
  "@types/mocha": "^10.0.6",
58
58
  "@types/node": "~18.18.14",
59
+ "@types/semver": "^7.5.8",
59
60
  "@types/yargs-parser": "^21.0.3",
60
- "@typescript-eslint/eslint-plugin": "^7.7.1",
61
- "@typescript-eslint/parser": "^7.7.1",
61
+ "@typescript-eslint/eslint-plugin": "^7.9.0",
62
+ "@typescript-eslint/parser": "^7.9.0",
62
63
  "@vue/eslint-config-prettier": "^9.0.0",
63
64
  "@vue/eslint-config-typescript": "^13.0.0",
64
65
  "acorn": "^8.11.3",
65
66
  "acorn-import-assertions": "^1.9.0",
66
67
  "buble": "^0.20.0",
67
- "builtin-modules": "^3.3.0",
68
+ "builtin-modules": "^4.0.0",
68
69
  "chokidar": "^3.6.0",
69
70
  "colorette": "^2.0.20",
70
71
  "concurrently": "^8.2.2",
@@ -77,14 +78,14 @@
77
78
  "eslint-config-prettier": "^9.1.0",
78
79
  "eslint-plugin-import": "^2.29.1",
79
80
  "eslint-plugin-prettier": "^5.1.3",
80
- "eslint-plugin-unicorn": "^52.0.0",
81
- "eslint-plugin-vue": "^9.25.0",
81
+ "eslint-plugin-unicorn": "^53.0.0",
82
+ "eslint-plugin-vue": "^9.26.0",
82
83
  "fixturify": "^3.0.0",
83
84
  "flru": "^1.0.2",
84
85
  "fs-extra": "^11.2.0",
85
86
  "github-api": "^3.4.0",
86
87
  "husky": "^9.0.11",
87
- "inquirer": "^9.2.19",
88
+ "inquirer": "^9.2.21",
88
89
  "is-reference": "^3.0.2",
89
90
  "lint-staged": "^15.2.2",
90
91
  "locate-character": "^3.0.0",
@@ -96,28 +97,28 @@
96
97
  "pretty-bytes": "^6.1.1",
97
98
  "pretty-ms": "^9.0.0",
98
99
  "requirejs": "^2.3.6",
99
- "rollup": "^4.16.3",
100
+ "rollup": "^4.17.2",
100
101
  "rollup-plugin-license": "^3.3.1",
101
102
  "rollup-plugin-string": "^3.0.0",
102
- "semver": "^7.6.0",
103
+ "semver": "^7.6.2",
103
104
  "shx": "^0.3.4",
104
105
  "signal-exit": "^4.1.0",
105
106
  "source-map": "^0.7.4",
106
107
  "source-map-support": "^0.5.21",
107
- "systemjs": "^6.14.3",
108
- "terser": "^5.30.4",
108
+ "systemjs": "^6.15.1",
109
+ "terser": "^5.31.0",
109
110
  "tslib": "^2.6.2",
110
111
  "typescript": "^5.4.5",
111
- "vite": "^5.2.10",
112
- "vitepress": "^1.1.3",
113
- "vue": "^3.4.24",
112
+ "vite": "^5.2.11",
113
+ "vitepress": "^1.1.4",
114
+ "vue": "^3.4.27",
114
115
  "wasm-pack": "^0.12.1",
115
116
  "weak-napi": "^2.0.2",
116
117
  "yargs-parser": "^21.1.1"
117
118
  },
118
119
  "overrides": {
119
120
  "axios": "^1.6.8",
120
- "semver": "^7.6.0"
121
+ "semver": "^7.6.2"
121
122
  },
122
123
  "files": [
123
124
  "dist/wasm-node/*.wasm",