@rollup/wasm-node 4.63.2 → 4.63.4

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.
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.2
4
- Sat, 12 Sep 2026 06:36:48 GMT - commit 43ed4ec364940fbce7054d8da1f92c695d1e6808
3
+ Rollup.js v4.63.4
4
+ Sat, 19 Sep 2026 06:35:38 GMT - commit ba78d5752a1e1ff4ff4af3a8bffab7691d822f7d
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, dirname, basename, extname } from 'node:path';
12
12
 
13
+ // Replaces node:path in the browser build. Keep the behavior consistent with
14
+ // the Node build so that both builds handle paths the same way.
13
15
  const ANY_SLASH_REGEX = /[/\\]/;
14
16
  function relative(from, to) {
15
17
  const fromParts = from.split(ANY_SLASH_REGEX).filter(Boolean);
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.2
4
- Sat, 12 Sep 2026 06:36:48 GMT - commit 43ed4ec364940fbce7054d8da1f92c695d1e6808
3
+ Rollup.js v4.63.4
4
+ Sat, 19 Sep 2026 06:35:38 GMT - commit ba78d5752a1e1ff4ff4af3a8bffab7691d822f7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -9704,7 +9704,7 @@ class Watcher {
9704
9704
  this.buildDelay = Math.max(this.buildDelay, watch.buildDelay);
9705
9705
  }
9706
9706
  }
9707
- process$1.nextTick(() => this.run());
9707
+ process$1.nextTick(() => this.run().catch(error => this.reportError(error)));
9708
9708
  }
9709
9709
  async close() {
9710
9710
  if (this.closed)
@@ -9746,30 +9746,40 @@ class Watcher {
9746
9746
  this.invalidatedIds.clear();
9747
9747
  await this.emitter.emit('restart');
9748
9748
  this.emitter.removeListenersForCurrentRun();
9749
- this.run();
9749
+ await this.run();
9750
9750
  }
9751
9751
  catch (error) {
9752
- this.invalidatedIds.clear();
9753
- await this.emitter.emit('event', {
9754
- code: 'ERROR',
9755
- error,
9756
- result: null
9757
- });
9758
- await this.emitter.emit('event', {
9759
- code: 'END'
9760
- });
9752
+ await this.reportError(error);
9761
9753
  }
9762
9754
  }, this.buildDelay);
9763
9755
  }
9764
- async run() {
9765
- this.running = true;
9756
+ async reportError(error) {
9757
+ this.invalidatedIds.clear();
9766
9758
  await this.emitter.emit('event', {
9767
- code: 'START'
9759
+ code: 'ERROR',
9760
+ error,
9761
+ result: null
9768
9762
  });
9769
- for (const task of this.tasks) {
9770
- await task.run();
9763
+ await this.emitter.emit('event', {
9764
+ code: 'END'
9765
+ });
9766
+ }
9767
+ async run() {
9768
+ this.running = true;
9769
+ // Drop a rerun request left over from a failed run: honoring it after this run
9770
+ // would start an empty run that removes the plugin event listeners of this run.
9771
+ this.rerun = false;
9772
+ try {
9773
+ await this.emitter.emit('event', {
9774
+ code: 'START'
9775
+ });
9776
+ for (const task of this.tasks) {
9777
+ await task.run();
9778
+ }
9779
+ }
9780
+ finally {
9781
+ this.running = false;
9771
9782
  }
9772
- this.running = false;
9773
9783
  await this.emitter.emit('event', {
9774
9784
  code: 'END'
9775
9785
  });
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.2
4
- Sat, 12 Sep 2026 06:36:48 GMT - commit 43ed4ec364940fbce7054d8da1f92c695d1e6808
3
+ Rollup.js v4.63.4
4
+ Sat, 19 Sep 2026 06:35:38 GMT - commit ba78d5752a1e1ff4ff4af3a8bffab7691d822f7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.2
4
- Sat, 12 Sep 2026 06:36:48 GMT - commit 43ed4ec364940fbce7054d8da1f92c695d1e6808
3
+ Rollup.js v4.63.4
4
+ Sat, 19 Sep 2026 06:35:38 GMT - commit ba78d5752a1e1ff4ff4af3a8bffab7691d822f7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/native.js CHANGED
@@ -11,3 +11,6 @@ exports.parseAsync = async (code, allowReturnOutsideFunction, jsx, _signal) =>
11
11
  exports.xxhashBase64Url = xxhashBase64Url;
12
12
  exports.xxhashBase36 = xxhashBase36;
13
13
  exports.xxhashBase16 = xxhashBase16;
14
+ // WASM builds don't collect LLVM coverage. This no-op keeps exports in sync
15
+ // with native.js, where flushLlvmCoverage only exists in coverage builds.
16
+ exports.flushLlvmCoverage = () => {};
package/dist/parseAst.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.2
4
- Sat, 12 Sep 2026 06:36:48 GMT - commit 43ed4ec364940fbce7054d8da1f92c695d1e6808
3
+ Rollup.js v4.63.4
4
+ Sat, 19 Sep 2026 06:35:38 GMT - commit ba78d5752a1e1ff4ff4af3a8bffab7691d822f7d
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.63.2
4
- Sat, 12 Sep 2026 06:36:48 GMT - commit 43ed4ec364940fbce7054d8da1f92c695d1e6808
3
+ Rollup.js v4.63.4
4
+ Sat, 19 Sep 2026 06:35:38 GMT - commit ba78d5752a1e1ff4ff4af3a8bffab7691d822f7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.2
4
- Sat, 12 Sep 2026 06:36:48 GMT - commit 43ed4ec364940fbce7054d8da1f92c695d1e6808
3
+ Rollup.js v4.63.4
4
+ Sat, 19 Sep 2026 06:35:38 GMT - commit ba78d5752a1e1ff4ff4af3a8bffab7691d822f7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.2
4
- Sat, 12 Sep 2026 06:36:48 GMT - commit 43ed4ec364940fbce7054d8da1f92c695d1e6808
3
+ Rollup.js v4.63.4
4
+ Sat, 19 Sep 2026 06:35:38 GMT - commit ba78d5752a1e1ff4ff4af3a8bffab7691d822f7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.2
4
- Sat, 12 Sep 2026 06:36:48 GMT - commit 43ed4ec364940fbce7054d8da1f92c695d1e6808
3
+ Rollup.js v4.63.4
4
+ Sat, 19 Sep 2026 06:35:38 GMT - commit ba78d5752a1e1ff4ff4af3a8bffab7691d822f7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.2
4
- Sat, 12 Sep 2026 06:36:48 GMT - commit 43ed4ec364940fbce7054d8da1f92c695d1e6808
3
+ Rollup.js v4.63.4
4
+ Sat, 19 Sep 2026 06:35:38 GMT - commit ba78d5752a1e1ff4ff4af3a8bffab7691d822f7d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -178,6 +178,8 @@ function printQuotedStringList(list, verbs) {
178
178
  return output;
179
179
  }
180
180
 
181
+ // Replaces node:path in the browser build. Keep the behavior consistent with
182
+ // the Node build so that both builds handle paths the same way.
181
183
  const ANY_SLASH_REGEX = /[/\\]/;
182
184
  function relative(from, to) {
183
185
  const fromParts = from.split(ANY_SLASH_REGEX).filter(Boolean);