@rollup/wasm-node 4.34.4 → 4.34.6

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.34.4
5
- Wed, 05 Feb 2025 21:30:40 GMT - commit 19312a762c3cda56a0f6dc80a0887a4499db2257
4
+ Rollup.js v4.34.6
5
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -1203,7 +1203,7 @@ var _a, _b, _c;
1203
1203
  const minNodeVersion = (process && process.env && process.env.YARGS_MIN_NODE_VERSION)
1204
1204
  ? Number(process.env.YARGS_MIN_NODE_VERSION)
1205
1205
  : 12;
1206
- const nodeVersion = (_b = (_a = process === null || process === undefined ? undefined : process.versions) === null || _a === undefined ? undefined : _a.node) !== null && _b !== undefined ? _b : (_c = process === null || process === undefined ? undefined : process.version) === null || _c === undefined ? undefined : _c.slice(1);
1206
+ const nodeVersion = (_b = (_a = process === null || process === void 0 ? void 0 : process.versions) === null || _a === void 0 ? void 0 : _a.node) !== null && _b !== void 0 ? _b : (_c = process === null || process === void 0 ? void 0 : process.version) === null || _c === void 0 ? void 0 : _c.slice(1);
1207
1207
  if (nodeVersion) {
1208
1208
  const major = Number(nodeVersion.match(/^([^.]+)/)[1]);
1209
1209
  if (major < minNodeVersion) {
@@ -1264,14 +1264,14 @@ PERFORMANCE OF THIS SOFTWARE.
1264
1264
 
1265
1265
 
1266
1266
  function __addDisposableResource(env, value, async) {
1267
- if (value !== null && value !== undefined) {
1267
+ if (value !== null && value !== void 0) {
1268
1268
  if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
1269
1269
  var dispose, inner;
1270
1270
  if (async) {
1271
1271
  if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
1272
1272
  dispose = value[Symbol.asyncDispose];
1273
1273
  }
1274
- if (dispose === undefined) {
1274
+ if (dispose === void 0) {
1275
1275
  if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
1276
1276
  dispose = value[Symbol.dispose];
1277
1277
  if (async) inner = dispose;
@@ -1644,7 +1644,7 @@ function printTimings(timings) {
1644
1644
  }
1645
1645
 
1646
1646
  async function build(inputOptions, warnings, silent = false) {
1647
- const env_1 = { stack: [], error: undefined, hasError: false };
1647
+ const env_1 = { stack: [], error: void 0, hasError: false };
1648
1648
  try {
1649
1649
  const outputOptions = inputOptions.output;
1650
1650
  const useStdout = !outputOptions[0].file && !outputOptions[0].dir;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.4
4
- Wed, 05 Feb 2025 21:30:40 GMT - commit 19312a762c3cda56a0f6dc80a0887a4499db2257
3
+ Rollup.js v4.34.6
4
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.4
4
- Wed, 05 Feb 2025 21:30:40 GMT - commit 19312a762c3cda56a0f6dc80a0887a4499db2257
3
+ Rollup.js v4.34.6
4
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
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.34.4
4
- Wed, 05 Feb 2025 21:30:40 GMT - commit 19312a762c3cda56a0f6dc80a0887a4499db2257
3
+ Rollup.js v4.34.6
4
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.4
4
- Wed, 05 Feb 2025 21:30:40 GMT - commit 19312a762c3cda56a0f6dc80a0887a4499db2257
3
+ Rollup.js v4.34.6
4
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -15,7 +15,7 @@ import process$1, { env } 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
 
18
- var version = "4.34.4";
18
+ var version = "4.34.6";
19
19
 
20
20
  const comma = ','.charCodeAt(0);
21
21
  const semicolon = ';'.charCodeAt(0);
@@ -10486,7 +10486,7 @@ function requireParse () {
10486
10486
  }
10487
10487
 
10488
10488
  if (prior.type === 'slash' && prior.prev.type !== 'bos' && rest[0] === '/') {
10489
- const end = rest[1] !== undefined ? '|$' : '';
10489
+ const end = rest[1] !== void 0 ? '|$' : '';
10490
10490
 
10491
10491
  state.output = state.output.slice(0, -(prior.output + prev.output).length);
10492
10492
  prior.output = `(?:${prior.output}`;
@@ -14947,7 +14947,11 @@ class UnaryExpression extends NodeBase {
14947
14947
  }
14948
14948
  const CHARACTERS_THAT_DO_NOT_REQUIRE_SPACE = /[\s([=%&*+-/<>^|,?:;]/;
14949
14949
  function getRenderedLiteralValue(value) {
14950
- if (value === undefined || typeof value === 'boolean') {
14950
+ if (value === undefined) {
14951
+ // At the moment, the undefined only happens when the operator is void
14952
+ return 'void 0';
14953
+ }
14954
+ if (typeof value === 'boolean') {
14951
14955
  return String(value);
14952
14956
  }
14953
14957
  if (typeof value === 'string') {
@@ -16486,6 +16490,7 @@ class Module {
16486
16490
  this.sideEffectDependenciesByVariable = new Map();
16487
16491
  this.sourcesWithAttributes = new Map();
16488
16492
  this.allExportNames = null;
16493
+ this.allExportsIncluded = false;
16489
16494
  this.ast = null;
16490
16495
  this.exportAllModules = [];
16491
16496
  this.exportAllSources = new Set();
@@ -16827,6 +16832,9 @@ class Module {
16827
16832
  this.ast.include(context, false);
16828
16833
  }
16829
16834
  includeAllExports(includeNamespaceMembers) {
16835
+ if (this.allExportsIncluded)
16836
+ return;
16837
+ this.allExportsIncluded = true;
16830
16838
  if (!this.isExecuted) {
16831
16839
  markModuleAndImpureDependenciesAsExecuted(this);
16832
16840
  this.graph.needsTreeshakingPass = true;
@@ -16846,9 +16854,7 @@ class Module {
16846
16854
  const [variable] = this.getVariableForExportName(name);
16847
16855
  if (variable) {
16848
16856
  variable.deoptimizePath(UNKNOWN_PATH);
16849
- if (!variable.included) {
16850
- this.includeVariable(variable, UNKNOWN_PATH, inclusionContext);
16851
- }
16857
+ this.includeVariable(variable, UNKNOWN_PATH, inclusionContext);
16852
16858
  if (variable instanceof ExternalVariable) {
16853
16859
  variable.module.reexported = true;
16854
16860
  }
@@ -20277,18 +20283,18 @@ function flru (max) {
20277
20283
  return {
20278
20284
  clear: reset,
20279
20285
  has: function (key) {
20280
- return curr[key] !== undefined || prev[key] !== undefined;
20286
+ return curr[key] !== void 0 || prev[key] !== void 0;
20281
20287
  },
20282
20288
  get: function (key) {
20283
20289
  var val = curr[key];
20284
- if (val !== undefined) return val;
20285
- if ((val=prev[key]) !== undefined) {
20290
+ if (val !== void 0) return val;
20291
+ if ((val=prev[key]) !== void 0) {
20286
20292
  keep(key, val);
20287
20293
  return val;
20288
20294
  }
20289
20295
  },
20290
20296
  set: function (key, value) {
20291
- if (curr[key] !== undefined) {
20297
+ if (curr[key] !== void 0) {
20292
20298
  curr[key] = value;
20293
20299
  } else {
20294
20300
  keep(key, value);
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.4
4
- Wed, 05 Feb 2025 21:30:40 GMT - commit 19312a762c3cda56a0f6dc80a0887a4499db2257
3
+ Rollup.js v4.34.6
4
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.4
4
- Wed, 05 Feb 2025 21:30:40 GMT - commit 19312a762c3cda56a0f6dc80a0887a4499db2257
3
+ Rollup.js v4.34.6
4
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1558,7 +1558,7 @@ function requireParse$2 () {
1558
1558
  }
1559
1559
 
1560
1560
  if (prior.type === 'slash' && prior.prev.type !== 'bos' && rest[0] === '/') {
1561
- const end = rest[1] !== undefined ? '|$' : '';
1561
+ const end = rest[1] !== void 0 ? '|$' : '';
1562
1562
 
1563
1563
  state.output = state.output.slice(0, -(prior.output + prev.output).length);
1564
1564
  prior.output = `(?:${prior.output}`;
@@ -3969,7 +3969,7 @@ function requireParse$1 () {
3969
3969
  }
3970
3970
 
3971
3971
  if (prior.type === 'slash' && prior.prev.type !== 'bos' && rest[0] === '/') {
3972
- const end = rest[1] !== undefined ? '|$' : '';
3972
+ const end = rest[1] !== void 0 ? '|$' : '';
3973
3973
 
3974
3974
  state.output = state.output.slice(0, -(prior.output + prev.output).length);
3975
3975
  prior.output = `(?:${prior.output}`;
@@ -5163,7 +5163,7 @@ function requireToRegexRange () {
5163
5163
  throw new TypeError('toRegexRange: expected the first argument to be a number');
5164
5164
  }
5165
5165
 
5166
- if (max === undefined || min === max) {
5166
+ if (max === void 0 || min === max) {
5167
5167
  return String(min);
5168
5168
  }
5169
5169
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.4
4
- Wed, 05 Feb 2025 21:30:40 GMT - commit 19312a762c3cda56a0f6dc80a0887a4499db2257
3
+ Rollup.js v4.34.6
4
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.4
4
- Wed, 05 Feb 2025 21:30:40 GMT - commit 19312a762c3cda56a0f6dc80a0887a4499db2257
3
+ Rollup.js v4.34.6
4
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
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.34.4
4
- Wed, 05 Feb 2025 21:30:40 GMT - commit 19312a762c3cda56a0f6dc80a0887a4499db2257
3
+ Rollup.js v4.34.6
4
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
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.34.4
4
- Wed, 05 Feb 2025 21:30:40 GMT - commit 19312a762c3cda56a0f6dc80a0887a4499db2257
3
+ Rollup.js v4.34.6
4
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.4
4
- Wed, 05 Feb 2025 21:30:40 GMT - commit 19312a762c3cda56a0f6dc80a0887a4499db2257
3
+ Rollup.js v4.34.6
4
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.4
4
- Wed, 05 Feb 2025 21:30:40 GMT - commit 19312a762c3cda56a0f6dc80a0887a4499db2257
3
+ Rollup.js v4.34.6
4
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1554,7 +1554,7 @@ function requireParse$2 () {
1554
1554
  }
1555
1555
 
1556
1556
  if (prior.type === 'slash' && prior.prev.type !== 'bos' && rest[0] === '/') {
1557
- const end = rest[1] !== undefined ? '|$' : '';
1557
+ const end = rest[1] !== void 0 ? '|$' : '';
1558
1558
 
1559
1559
  state.output = state.output.slice(0, -(prior.output + prev.output).length);
1560
1560
  prior.output = `(?:${prior.output}`;
@@ -3965,7 +3965,7 @@ function requireParse$1 () {
3965
3965
  }
3966
3966
 
3967
3967
  if (prior.type === 'slash' && prior.prev.type !== 'bos' && rest[0] === '/') {
3968
- const end = rest[1] !== undefined ? '|$' : '';
3968
+ const end = rest[1] !== void 0 ? '|$' : '';
3969
3969
 
3970
3970
  state.output = state.output.slice(0, -(prior.output + prev.output).length);
3971
3971
  prior.output = `(?:${prior.output}`;
@@ -5159,7 +5159,7 @@ function requireToRegexRange () {
5159
5159
  throw new TypeError('toRegexRange: expected the first argument to be a number');
5160
5160
  }
5161
5161
 
5162
- if (max === undefined || min === max) {
5162
+ if (max === void 0 || min === max) {
5163
5163
  return String(min);
5164
5164
  }
5165
5165
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.4
4
- Wed, 05 Feb 2025 21:30:40 GMT - commit 19312a762c3cda56a0f6dc80a0887a4499db2257
3
+ Rollup.js v4.34.6
4
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.4
4
- Wed, 05 Feb 2025 21:30:40 GMT - commit 19312a762c3cda56a0f6dc80a0887a4499db2257
3
+ Rollup.js v4.34.6
4
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.4
4
- Wed, 05 Feb 2025 21:30:40 GMT - commit 19312a762c3cda56a0f6dc80a0887a4499db2257
3
+ Rollup.js v4.34.6
4
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -17,7 +17,7 @@ const native_js = require('../native.js');
17
17
  const node_perf_hooks = require('node:perf_hooks');
18
18
  const promises = require('node:fs/promises');
19
19
 
20
- var version = "4.34.4";
20
+ var version = "4.34.6";
21
21
 
22
22
  function ensureArray$1(items) {
23
23
  if (Array.isArray(items)) {
@@ -11954,7 +11954,7 @@ function requireParse () {
11954
11954
  }
11955
11955
 
11956
11956
  if (prior.type === 'slash' && prior.prev.type !== 'bos' && rest[0] === '/') {
11957
- const end = rest[1] !== undefined ? '|$' : '';
11957
+ const end = rest[1] !== void 0 ? '|$' : '';
11958
11958
 
11959
11959
  state.output = state.output.slice(0, -(prior.output + prev.output).length);
11960
11960
  prior.output = `(?:${prior.output}`;
@@ -16415,7 +16415,11 @@ class UnaryExpression extends NodeBase {
16415
16415
  }
16416
16416
  const CHARACTERS_THAT_DO_NOT_REQUIRE_SPACE = /[\s([=%&*+-/<>^|,?:;]/;
16417
16417
  function getRenderedLiteralValue(value) {
16418
- if (value === undefined || typeof value === 'boolean') {
16418
+ if (value === undefined) {
16419
+ // At the moment, the undefined only happens when the operator is void
16420
+ return 'void 0';
16421
+ }
16422
+ if (typeof value === 'boolean') {
16419
16423
  return String(value);
16420
16424
  }
16421
16425
  if (typeof value === 'string') {
@@ -17947,6 +17951,7 @@ class Module {
17947
17951
  this.sideEffectDependenciesByVariable = new Map();
17948
17952
  this.sourcesWithAttributes = new Map();
17949
17953
  this.allExportNames = null;
17954
+ this.allExportsIncluded = false;
17950
17955
  this.ast = null;
17951
17956
  this.exportAllModules = [];
17952
17957
  this.exportAllSources = new Set();
@@ -18288,6 +18293,9 @@ class Module {
18288
18293
  this.ast.include(context, false);
18289
18294
  }
18290
18295
  includeAllExports(includeNamespaceMembers) {
18296
+ if (this.allExportsIncluded)
18297
+ return;
18298
+ this.allExportsIncluded = true;
18291
18299
  if (!this.isExecuted) {
18292
18300
  markModuleAndImpureDependenciesAsExecuted(this);
18293
18301
  this.graph.needsTreeshakingPass = true;
@@ -18307,9 +18315,7 @@ class Module {
18307
18315
  const [variable] = this.getVariableForExportName(name);
18308
18316
  if (variable) {
18309
18317
  variable.deoptimizePath(UNKNOWN_PATH);
18310
- if (!variable.included) {
18311
- this.includeVariable(variable, UNKNOWN_PATH, inclusionContext);
18312
- }
18318
+ this.includeVariable(variable, UNKNOWN_PATH, inclusionContext);
18313
18319
  if (variable instanceof ExternalVariable) {
18314
18320
  variable.module.reexported = true;
18315
18321
  }
@@ -21609,18 +21615,18 @@ function flru (max) {
21609
21615
  return {
21610
21616
  clear: reset,
21611
21617
  has: function (key) {
21612
- return curr[key] !== undefined || prev[key] !== undefined;
21618
+ return curr[key] !== void 0 || prev[key] !== void 0;
21613
21619
  },
21614
21620
  get: function (key) {
21615
21621
  var val = curr[key];
21616
- if (val !== undefined) return val;
21617
- if ((val=prev[key]) !== undefined) {
21622
+ if (val !== void 0) return val;
21623
+ if ((val=prev[key]) !== void 0) {
21618
21624
  keep(key, val);
21619
21625
  return val;
21620
21626
  }
21621
21627
  },
21622
21628
  set: function (key, value) {
21623
- if (curr[key] !== undefined) {
21629
+ if (curr[key] !== void 0) {
21624
21630
  curr[key] = value;
21625
21631
  } else {
21626
21632
  keep(key, value);
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.4
4
- Wed, 05 Feb 2025 21:30:40 GMT - commit 19312a762c3cda56a0f6dc80a0887a4499db2257
3
+ Rollup.js v4.34.6
4
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.4
4
- Wed, 05 Feb 2025 21:30:40 GMT - commit 19312a762c3cda56a0f6dc80a0887a4499db2257
3
+ Rollup.js v4.34.6
4
+ Fri, 07 Feb 2025 16:31:35 GMT - commit 4b8745922d37d8325197d5a6613ffbf231163c7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -21,12 +21,16 @@ function addHeapObject(obj) {
21
21
  return idx;
22
22
  }
23
23
 
24
- function handleError(f, args) {
25
- try {
26
- return f.apply(this, args);
27
- } catch (e) {
28
- wasm.__wbindgen_export_0(addHeapObject(e));
29
- }
24
+ function dropObject(idx) {
25
+ if (idx < 132) return;
26
+ heap[idx] = heap_next;
27
+ heap_next = idx;
28
+ }
29
+
30
+ function takeObject(idx) {
31
+ const ret = getObject(idx);
32
+ dropObject(idx);
33
+ return ret;
30
34
  }
31
35
 
32
36
  let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
@@ -47,22 +51,6 @@ function getStringFromWasm0(ptr, len) {
47
51
  return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
48
52
  }
49
53
 
50
- function dropObject(idx) {
51
- if (idx < 132) return;
52
- heap[idx] = heap_next;
53
- heap_next = idx;
54
- }
55
-
56
- function takeObject(idx) {
57
- const ret = getObject(idx);
58
- dropObject(idx);
59
- return ret;
60
- }
61
-
62
- function isLikeNone(x) {
63
- return x === undefined || x === null;
64
- }
65
-
66
54
  let WASM_VECTOR_LEN = 0;
67
55
 
68
56
  let cachedTextEncoder = new TextEncoder('utf-8');
@@ -141,13 +129,13 @@ function getArrayU8FromWasm0(ptr, len) {
141
129
  module.exports.parse = function(code, allow_return_outside_function, jsx) {
142
130
  try {
143
131
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
144
- const ptr0 = passStringToWasm0(code, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
132
+ const ptr0 = passStringToWasm0(code, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
145
133
  const len0 = WASM_VECTOR_LEN;
146
134
  wasm.parse(retptr, ptr0, len0, allow_return_outside_function, jsx);
147
135
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
148
136
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
149
137
  var v2 = getArrayU8FromWasm0(r0, r1).slice();
150
- wasm.__wbindgen_export_3(r0, r1 * 1, 1);
138
+ wasm.__wbindgen_export_2(r0, r1 * 1, 1);
151
139
  return v2;
152
140
  } finally {
153
141
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -171,7 +159,7 @@ module.exports.xxhashBase64Url = function(input) {
171
159
  return getStringFromWasm0(r0, r1);
172
160
  } finally {
173
161
  wasm.__wbindgen_add_to_stack_pointer(16);
174
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
162
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
175
163
  }
176
164
  };
177
165
 
@@ -192,7 +180,7 @@ module.exports.xxhashBase36 = function(input) {
192
180
  return getStringFromWasm0(r0, r1);
193
181
  } finally {
194
182
  wasm.__wbindgen_add_to_stack_pointer(16);
195
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
183
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
196
184
  }
197
185
  };
198
186
 
@@ -213,7 +201,7 @@ module.exports.xxhashBase16 = function(input) {
213
201
  return getStringFromWasm0(r0, r1);
214
202
  } finally {
215
203
  wasm.__wbindgen_add_to_stack_pointer(16);
216
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
204
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
217
205
  }
218
206
  };
219
207
 
@@ -222,148 +210,29 @@ module.exports.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
222
210
  return addHeapObject(ret);
223
211
  };
224
212
 
225
- module.exports.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
226
- const ret = getObject(arg0).call(getObject(arg1));
227
- return addHeapObject(ret);
228
- }, arguments) };
229
-
230
- module.exports.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) {
231
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
232
- return addHeapObject(ret);
233
- }, arguments) };
234
-
235
- module.exports.__wbg_crypto_ed58b8e10a292839 = function(arg0) {
236
- const ret = getObject(arg0).crypto;
237
- return addHeapObject(ret);
238
- };
239
-
240
- module.exports.__wbg_getRandomValues_bcb4912f16000dc4 = function() { return handleError(function (arg0, arg1) {
241
- getObject(arg0).getRandomValues(getObject(arg1));
242
- }, arguments) };
243
-
244
213
  module.exports.__wbg_length_a446193dc22c12f8 = function(arg0) {
245
214
  const ret = getObject(arg0).length;
246
215
  return ret;
247
216
  };
248
217
 
249
- module.exports.__wbg_msCrypto_0a36e2ec3a343d26 = function(arg0) {
250
- const ret = getObject(arg0).msCrypto;
251
- return addHeapObject(ret);
252
- };
253
-
254
218
  module.exports.__wbg_new_a12002a7f91c75be = function(arg0) {
255
219
  const ret = new Uint8Array(getObject(arg0));
256
220
  return addHeapObject(ret);
257
221
  };
258
222
 
259
- module.exports.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
260
- const ret = new Function(getStringFromWasm0(arg0, arg1));
261
- return addHeapObject(ret);
262
- };
263
-
264
- module.exports.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
265
- const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
266
- return addHeapObject(ret);
267
- };
268
-
269
- module.exports.__wbg_newwithlength_a381634e90c276d4 = function(arg0) {
270
- const ret = new Uint8Array(arg0 >>> 0);
271
- return addHeapObject(ret);
272
- };
273
-
274
- module.exports.__wbg_node_02999533c4ea02e3 = function(arg0) {
275
- const ret = getObject(arg0).node;
276
- return addHeapObject(ret);
277
- };
278
-
279
- module.exports.__wbg_process_5c1d670bc53614b8 = function(arg0) {
280
- const ret = getObject(arg0).process;
281
- return addHeapObject(ret);
282
- };
283
-
284
- module.exports.__wbg_randomFillSync_ab2cfe79ebbf2740 = function() { return handleError(function (arg0, arg1) {
285
- getObject(arg0).randomFillSync(takeObject(arg1));
286
- }, arguments) };
287
-
288
- module.exports.__wbg_require_79b1e9274cde3c87 = function() { return handleError(function () {
289
- const ret = module.require;
290
- return addHeapObject(ret);
291
- }, arguments) };
292
-
293
223
  module.exports.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
294
224
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
295
225
  };
296
226
 
297
- module.exports.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
298
- const ret = typeof global === 'undefined' ? null : global;
299
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
300
- };
301
-
302
- module.exports.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
303
- const ret = typeof globalThis === 'undefined' ? null : globalThis;
304
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
305
- };
306
-
307
- module.exports.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
308
- const ret = typeof self === 'undefined' ? null : self;
309
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
310
- };
311
-
312
- module.exports.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
313
- const ret = typeof window === 'undefined' ? null : window;
314
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
315
- };
316
-
317
- module.exports.__wbg_subarray_aa9065fa9dc5df96 = function(arg0, arg1, arg2) {
318
- const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
319
- return addHeapObject(ret);
320
- };
321
-
322
- module.exports.__wbg_versions_c71aa1626a93e0a1 = function(arg0) {
323
- const ret = getObject(arg0).versions;
324
- return addHeapObject(ret);
325
- };
326
-
327
- module.exports.__wbindgen_is_function = function(arg0) {
328
- const ret = typeof(getObject(arg0)) === 'function';
329
- return ret;
330
- };
331
-
332
- module.exports.__wbindgen_is_object = function(arg0) {
333
- const val = getObject(arg0);
334
- const ret = typeof(val) === 'object' && val !== null;
335
- return ret;
336
- };
337
-
338
- module.exports.__wbindgen_is_string = function(arg0) {
339
- const ret = typeof(getObject(arg0)) === 'string';
340
- return ret;
341
- };
342
-
343
- module.exports.__wbindgen_is_undefined = function(arg0) {
344
- const ret = getObject(arg0) === undefined;
345
- return ret;
346
- };
347
-
348
227
  module.exports.__wbindgen_memory = function() {
349
228
  const ret = wasm.memory;
350
229
  return addHeapObject(ret);
351
230
  };
352
231
 
353
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
354
- const ret = getObject(arg0);
355
- return addHeapObject(ret);
356
- };
357
-
358
232
  module.exports.__wbindgen_object_drop_ref = function(arg0) {
359
233
  takeObject(arg0);
360
234
  };
361
235
 
362
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
363
- const ret = getStringFromWasm0(arg0, arg1);
364
- return addHeapObject(ret);
365
- };
366
-
367
236
  module.exports.__wbindgen_throw = function(arg0, arg1) {
368
237
  throw new Error(getStringFromWasm0(arg0, arg1));
369
238
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rollup/wasm-node",
3
- "version": "4.34.4",
3
+ "version": "4.34.6",
4
4
  "description": "Next-generation ES module bundler with Node wasm",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -36,10 +36,10 @@
36
36
  "@codemirror/lang-javascript": "^6.2.2",
37
37
  "@codemirror/language": "^6.10.8",
38
38
  "@codemirror/search": "^6.5.8",
39
- "@codemirror/state": "^6.5.1",
39
+ "@codemirror/state": "^6.5.2",
40
40
  "@codemirror/view": "^6.36.2",
41
41
  "@eslint/js": "^9.19.0",
42
- "@inquirer/prompts": "^7.2.3",
42
+ "@inquirer/prompts": "^7.3.1",
43
43
  "@jridgewell/sourcemap-codec": "^1.5.0",
44
44
  "@mermaid-js/mermaid-cli": "^11.4.2",
45
45
  "@napi-rs/cli": "^2.18.4",
@@ -52,9 +52,9 @@
52
52
  "@rollup/plugin-terser": "^0.4.4",
53
53
  "@rollup/plugin-typescript": "^12.1.2",
54
54
  "@rollup/pluginutils": "^5.1.4",
55
- "@shikijs/vitepress-twoslash": "^2.1.0",
55
+ "@shikijs/vitepress-twoslash": "^2.2.0",
56
56
  "@types/mocha": "^10.0.10",
57
- "@types/node": "^18.19.74",
57
+ "@types/node": "^18.19.75",
58
58
  "@types/semver": "^7.5.8",
59
59
  "@types/yargs-parser": "^21.0.3",
60
60
  "@vue/language-server": "^2.2.0",
@@ -96,10 +96,10 @@
96
96
  "pretty-bytes": "^6.1.1",
97
97
  "pretty-ms": "^9.2.0",
98
98
  "requirejs": "^2.3.7",
99
- "rollup": "^4.32.0",
99
+ "rollup": "^4.34.1",
100
100
  "rollup-plugin-license": "^3.5.3",
101
101
  "rollup-plugin-string": "^3.0.0",
102
- "semver": "^7.6.3",
102
+ "semver": "^7.7.1",
103
103
  "shx": "^0.3.4",
104
104
  "signal-exit": "^4.1.0",
105
105
  "source-map": "^0.7.4",
@@ -108,7 +108,7 @@
108
108
  "terser": "^5.37.0",
109
109
  "tslib": "^2.8.1",
110
110
  "typescript": "^5.7.3",
111
- "typescript-eslint": "^8.22.0",
111
+ "typescript-eslint": "^8.23.0",
112
112
  "vite": "^6.0.11",
113
113
  "vitepress": "^1.6.3",
114
114
  "vue": "^3.5.13",
@@ -118,7 +118,7 @@
118
118
  },
119
119
  "overrides": {
120
120
  "axios": "^1.7.9",
121
- "semver": "^7.6.3",
121
+ "semver": "^7.7.1",
122
122
  "readable-stream": "npm:@built-in/readable-stream@1"
123
123
  },
124
124
  "comments": {