rolldown 1.0.0-beta.41 → 1.0.0-beta.42

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.
@@ -1238,8 +1238,7 @@ function createNapiModule(options) {
1238
1238
  var p = [];
1239
1239
  var HEAP_DATA_VIEW = new DataView(wasmMemory.buffer);
1240
1240
  var _loop_1 = function(i$1) {
1241
- var pthreadPtr = HEAP_DATA_VIEW.getUint32(threads + i$1 * 4, true);
1242
- var worker = emnapiGetWorkerByPthreadPtr(pthreadPtr);
1241
+ var worker = emnapiGetWorkerByPthreadPtr(HEAP_DATA_VIEW.getUint32(threads + i$1 * 4, true));
1243
1242
  p.push(new Promise(function(resolve$1) {
1244
1243
  var handler = function(e) {
1245
1244
  var __emnapi__ = (ENVIRONMENT_IS_NODE$1 ? e : e.data).__emnapi__;
@@ -1870,9 +1869,7 @@ function createNapiModule(options) {
1870
1869
  emnapiCtx.refStore.get(resource).dispose();
1871
1870
  if (emnapiNodeBinding) {
1872
1871
  var view = new DataView(wasmMemory.buffer);
1873
- var asyncId = view.getFloat64(func + emnapiTSFN.offset.async_id, true);
1874
- var triggerAsyncId = view.getFloat64(func + emnapiTSFN.offset.trigger_async_id, true);
1875
- _emnapi_node_emit_async_destroy(asyncId, triggerAsyncId);
1872
+ _emnapi_node_emit_async_destroy(view.getFloat64(func + emnapiTSFN.offset.async_id, true), view.getFloat64(func + emnapiTSFN.offset.trigger_async_id, true));
1876
1873
  }
1877
1874
  _free(func);
1878
1875
  },
@@ -2409,9 +2406,7 @@ function createNapiModule(options) {
2409
2406
  emnapiCtx.refStore.get(resource).dispose();
2410
2407
  if (emnapiNodeBinding) {
2411
2408
  var view = new DataView(wasmMemory.buffer);
2412
- var asyncId = view.getFloat64(work + emnapiAWMT.offset.async_id, true);
2413
- var triggerAsyncId = view.getFloat64(work + emnapiAWMT.offset.trigger_async_id, true);
2414
- _emnapi_node_emit_async_destroy(asyncId, triggerAsyncId);
2409
+ _emnapi_node_emit_async_destroy(view.getFloat64(work + emnapiAWMT.offset.async_id, true), view.getFloat64(work + emnapiAWMT.offset.trigger_async_id, true));
2415
2410
  }
2416
2411
  _free(work);
2417
2412
  return envObject.clearLastError();
@@ -2559,11 +2554,11 @@ function createNapiModule(options) {
2559
2554
  view = emnapiExternalMemory.getOrUpdateMemoryView(view);
2560
2555
  if (view.buffer === wasmMemory.buffer) {
2561
2556
  if (emnapiExternalMemory.wasmMemoryViewTable.has(view)) {
2562
- var _a = emnapiExternalMemory.wasmMemoryViewTable.get(view), address_1 = _a.address, ownership_1 = _a.ownership, runtimeAllocated_1 = _a.runtimeAllocated;
2557
+ var _a = emnapiExternalMemory.wasmMemoryViewTable.get(view);
2563
2558
  return {
2564
- address: address_1,
2565
- ownership: ownership_1,
2566
- runtimeAllocated: runtimeAllocated_1,
2559
+ address: _a.address,
2560
+ ownership: _a.ownership,
2561
+ runtimeAllocated: _a.runtimeAllocated,
2567
2562
  view
2568
2563
  };
2569
2564
  }
@@ -4066,8 +4061,7 @@ function createNapiModule(options) {
4066
4061
  try {
4067
4062
  if (!arraybuffer_or_view) return envObject.setLastError(1);
4068
4063
  if (!address && !ownership && !runtime_allocated) return envObject.setLastError(1);
4069
- var handle = envObject.ctx.handleStore.get(arraybuffer_or_view);
4070
- info = $emnapiGetMemoryAddress(handle.value);
4064
+ info = $emnapiGetMemoryAddress(envObject.ctx.handleStore.get(arraybuffer_or_view).value);
4071
4065
  p = info.address;
4072
4066
  var HEAP_DATA_VIEW = new DataView(wasmMemory.buffer);
4073
4067
  if (address) HEAP_DATA_VIEW.setUint32(address, p, true);
@@ -6069,9 +6063,7 @@ function createNapiModule(options) {
6069
6063
  if (!lhs) return envObject.setLastError(1);
6070
6064
  if (!rhs) return envObject.setLastError(1);
6071
6065
  if (!result) return envObject.setLastError(1);
6072
- var lv = emnapiCtx.handleStore.get(lhs).value;
6073
- var rv = emnapiCtx.handleStore.get(rhs).value;
6074
- r = lv === rv ? 1 : 0;
6066
+ r = emnapiCtx.handleStore.get(lhs).value === emnapiCtx.handleStore.get(rhs).value ? 1 : 0;
6075
6067
  new DataView(wasmMemory.buffer).setInt8(result, r, true);
6076
6068
  return envObject.getReturnStatus();
6077
6069
  } catch (err$1) {
@@ -8257,7 +8249,7 @@ async function createAsyncWASI(options = kEmptyObject) {
8257
8249
  if (options.returnOnExit) wrap$2.proc_exit = wasiReturnOnProcExit.bind(_this);
8258
8250
  return _this;
8259
8251
  }
8260
- var _WebAssembly, ignoreNames, Asyncify, CHAR_DOT, CHAR_FORWARD_SLASH, FD_DATASYNC, FD_READ, FD_SEEK, FD_FDSTAT_SET_FLAGS, FD_SYNC, FD_TELL, FD_WRITE, FD_ADVISE, FD_ALLOCATE, PATH_CREATE_DIRECTORY, PATH_CREATE_FILE, PATH_LINK_SOURCE, PATH_LINK_TARGET, PATH_OPEN, FD_READDIR, PATH_READLINK, PATH_RENAME_SOURCE, PATH_RENAME_TARGET, PATH_FILESTAT_GET, PATH_FILESTAT_SET_SIZE, PATH_FILESTAT_SET_TIMES, FD_FILESTAT_GET, FD_FILESTAT_SET_SIZE, FD_FILESTAT_SET_TIMES, PATH_SYMLINK, PATH_REMOVE_DIRECTORY, PATH_UNLINK_FILE, POLL_FD_READWRITE, SOCK_SHUTDOWN, SOCK_ACCEPT, WasiRights, WasiError, RIGHTS_ALL, BLOCK_DEVICE_BASE, BLOCK_DEVICE_INHERITING, CHARACTER_DEVICE_BASE, CHARACTER_DEVICE_INHERITING, REGULAR_FILE_BASE, REGULAR_FILE_INHERITING, DIRECTORY_BASE, DIRECTORY_INHERITING, SOCKET_BASE, SOCKET_INHERITING, TTY_BASE, TTY_INHERITING, FileDescriptor, StandardOutput, FileDescriptorTable, SyncTable, AsyncTable, WebAssemblyMemory, Memory, _memory, _wasi, _fs, encoder, decoder, INT64_MAX, WASI$1, kEmptyObject, kExitCode, kSetMemory, kStarted, kInstance, kBindingName, WASI$2;
8252
+ var _WebAssembly, ignoreNames, Asyncify, CHAR_DOT, CHAR_FORWARD_SLASH, WasiRights, WasiError, RIGHTS_ALL, BLOCK_DEVICE_BASE, BLOCK_DEVICE_INHERITING, CHARACTER_DEVICE_BASE, CHARACTER_DEVICE_INHERITING, REGULAR_FILE_BASE, REGULAR_FILE_INHERITING, DIRECTORY_BASE, DIRECTORY_INHERITING, SOCKET_BASE, SOCKET_INHERITING, TTY_BASE, TTY_INHERITING, FileDescriptor, StandardOutput, FileDescriptorTable, SyncTable, AsyncTable, WebAssemblyMemory, Memory, _memory, _wasi, _fs, encoder, decoder, INT64_MAX, WASI$1, kEmptyObject, kExitCode, kSetMemory, kStarted, kInstance, kBindingName, WASI$2;
8261
8253
  var init_wasm_util_esm_bundler = __esm({ "../../node_modules/.pnpm/@tybys+wasm-util@0.10.1/node_modules/@tybys/wasm-util/dist/wasm-util.esm-bundler.js": (() => {
8262
8254
  _WebAssembly = typeof WebAssembly !== "undefined" ? WebAssembly : typeof WXWebAssembly !== "undefined" ? WXWebAssembly : void 0;
8263
8255
  if (!_WebAssembly) throw new Error("WebAssembly is not supported in this environment");
@@ -8355,67 +8347,37 @@ var init_wasm_util_esm_bundler = __esm({ "../../node_modules/.pnpm/@tybys+wasm-u
8355
8347
  };
8356
8348
  CHAR_DOT = 46;
8357
8349
  CHAR_FORWARD_SLASH = 47;
8358
- FD_DATASYNC = /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(0);
8359
- FD_READ = /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(1);
8360
- FD_SEEK = /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(2);
8361
- FD_FDSTAT_SET_FLAGS = /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(3);
8362
- FD_SYNC = /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(4);
8363
- FD_TELL = /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(5);
8364
- FD_WRITE = /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(6);
8365
- FD_ADVISE = /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(7);
8366
- FD_ALLOCATE = /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(8);
8367
- PATH_CREATE_DIRECTORY = /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(9);
8368
- PATH_CREATE_FILE = /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(10);
8369
- PATH_LINK_SOURCE = /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(11);
8370
- PATH_LINK_TARGET = /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(12);
8371
- PATH_OPEN = /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(13);
8372
- FD_READDIR = /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(14);
8373
- PATH_READLINK = /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(15);
8374
- PATH_RENAME_SOURCE = /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(16);
8375
- PATH_RENAME_TARGET = /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(17);
8376
- PATH_FILESTAT_GET = /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(18);
8377
- PATH_FILESTAT_SET_SIZE = /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(19);
8378
- PATH_FILESTAT_SET_TIMES = /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(20);
8379
- FD_FILESTAT_GET = /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(21);
8380
- FD_FILESTAT_SET_SIZE = /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(22);
8381
- FD_FILESTAT_SET_TIMES = /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(23);
8382
- PATH_SYMLINK = /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(24);
8383
- PATH_REMOVE_DIRECTORY = /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(25);
8384
- PATH_UNLINK_FILE = /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(26);
8385
- POLL_FD_READWRITE = /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(27);
8386
- SOCK_SHUTDOWN = /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(28);
8387
- SOCK_ACCEPT = /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(29);
8388
8350
  WasiRights = {
8389
- FD_DATASYNC,
8390
- FD_READ,
8391
- FD_SEEK,
8392
- FD_FDSTAT_SET_FLAGS,
8393
- FD_SYNC,
8394
- FD_TELL,
8395
- FD_WRITE,
8396
- FD_ADVISE,
8397
- FD_ALLOCATE,
8398
- PATH_CREATE_DIRECTORY,
8399
- PATH_CREATE_FILE,
8400
- PATH_LINK_SOURCE,
8401
- PATH_LINK_TARGET,
8402
- PATH_OPEN,
8403
- FD_READDIR,
8404
- PATH_READLINK,
8405
- PATH_RENAME_SOURCE,
8406
- PATH_RENAME_TARGET,
8407
- PATH_FILESTAT_GET,
8408
- PATH_FILESTAT_SET_SIZE,
8409
- PATH_FILESTAT_SET_TIMES,
8410
- FD_FILESTAT_GET,
8411
- FD_FILESTAT_SET_SIZE,
8412
- FD_FILESTAT_SET_TIMES,
8413
- PATH_SYMLINK,
8414
- PATH_REMOVE_DIRECTORY,
8415
- PATH_UNLINK_FILE,
8416
- POLL_FD_READWRITE,
8417
- SOCK_SHUTDOWN,
8418
- SOCK_ACCEPT
8351
+ FD_DATASYNC: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(0),
8352
+ FD_READ: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(1),
8353
+ FD_SEEK: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(2),
8354
+ FD_FDSTAT_SET_FLAGS: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(3),
8355
+ FD_SYNC: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(4),
8356
+ FD_TELL: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(5),
8357
+ FD_WRITE: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(6),
8358
+ FD_ADVISE: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(7),
8359
+ FD_ALLOCATE: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(8),
8360
+ PATH_CREATE_DIRECTORY: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(9),
8361
+ PATH_CREATE_FILE: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(10),
8362
+ PATH_LINK_SOURCE: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(11),
8363
+ PATH_LINK_TARGET: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(12),
8364
+ PATH_OPEN: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(13),
8365
+ FD_READDIR: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(14),
8366
+ PATH_READLINK: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(15),
8367
+ PATH_RENAME_SOURCE: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(16),
8368
+ PATH_RENAME_TARGET: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(17),
8369
+ PATH_FILESTAT_GET: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(18),
8370
+ PATH_FILESTAT_SET_SIZE: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(19),
8371
+ PATH_FILESTAT_SET_TIMES: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(20),
8372
+ FD_FILESTAT_GET: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(21),
8373
+ FD_FILESTAT_SET_SIZE: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(22),
8374
+ FD_FILESTAT_SET_TIMES: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(23),
8375
+ PATH_SYMLINK: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(24),
8376
+ PATH_REMOVE_DIRECTORY: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(25),
8377
+ PATH_UNLINK_FILE: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(26),
8378
+ POLL_FD_READWRITE: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(27),
8379
+ SOCK_SHUTDOWN: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(28),
8380
+ SOCK_ACCEPT: /* @__PURE__ */ BigInt(1) << /* @__PURE__ */ BigInt(29)
8419
8381
  };
8420
8382
  WasiError = class extends Error {
8421
8383
  constructor(message, errno) {
@@ -8558,8 +8520,7 @@ var init_wasm_util_esm_bundler = __esm({ "../../node_modules/.pnpm/@tybys+wasm-u
8558
8520
  this.fs = options.fs;
8559
8521
  }
8560
8522
  getFileTypeByFd(fd) {
8561
- const stats = this.fs.fstatSync(fd, { bigint: true });
8562
- return toFileType(stats);
8523
+ return toFileType(this.fs.fstatSync(fd, { bigint: true }));
8563
8524
  }
8564
8525
  insertPreopen(fd, mappedPath, realPath) {
8565
8526
  const type = this.getFileTypeByFd(fd);
@@ -8585,8 +8546,7 @@ var init_wasm_util_esm_bundler = __esm({ "../../node_modules/.pnpm/@tybys+wasm-u
8585
8546
  super(options);
8586
8547
  }
8587
8548
  async getFileTypeByFd(fd) {
8588
- const stats = await fd.stat({ bigint: true });
8589
- return toFileType(stats);
8549
+ return toFileType(await fd.stat({ bigint: true }));
8590
8550
  }
8591
8551
  async insertPreopen(fd, mappedPath, realPath) {
8592
8552
  const type = await this.getFileTypeByFd(fd);
@@ -8836,18 +8796,15 @@ var init_wasm_util_esm_bundler = __esm({ "../../node_modules/.pnpm/@tybys+wasm-u
8836
8796
  const userdata = view.getBigUint64(sub, true);
8837
8797
  const type = view.getUint8(sub + 8);
8838
8798
  const clockIdOrFd = view.getUint32(sub + 16, true);
8839
- const timeout = view.getBigUint64(sub + 24, true);
8840
- const precision = view.getBigUint64(sub + 32, true);
8841
- const flags = view.getUint16(sub + 40, true);
8842
8799
  subscriptions[i] = {
8843
8800
  userdata,
8844
8801
  type,
8845
8802
  u: {
8846
8803
  clock: {
8847
8804
  clock_id: clockIdOrFd,
8848
- timeout,
8849
- precision,
8850
- flags
8805
+ timeout: view.getBigUint64(sub + 24, true),
8806
+ precision: view.getBigUint64(sub + 32, true),
8807
+ flags: view.getUint16(sub + 40, true)
8851
8808
  },
8852
8809
  fd_readwrite: { fd: clockIdOrFd }
8853
8810
  }
@@ -8890,8 +8847,7 @@ var init_wasm_util_esm_bundler = __esm({ "../../node_modules/.pnpm/@tybys+wasm-u
8890
8847
  return 0;
8891
8848
  }
8892
8849
  if (has_timeout) {
8893
- const delay = Number(min_timeout / BigInt(1e6));
8894
- sleepBreakIf(delay, () => false);
8850
+ sleepBreakIf(Number(min_timeout / BigInt(1e6)), () => false);
8895
8851
  const event = out_ptr;
8896
8852
  view.setBigUint64(event, timer_userdata, true);
8897
8853
  view.setUint32(event + 8, 0, true);
@@ -9892,8 +9848,8 @@ var init_wasm_util_esm_bundler = __esm({ "../../node_modules/.pnpm/@tybys+wasm-u
9892
9848
  }) });
9893
9849
 
9894
9850
  //#endregion
9895
- //#region ../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.0.5/node_modules/@napi-rs/wasm-runtime/dist/fs-proxy.cjs
9896
- var require_fs_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.0.5/node_modules/@napi-rs/wasm-runtime/dist/fs-proxy.cjs": ((exports) => {
9851
+ //#region ../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.0.6/node_modules/@napi-rs/wasm-runtime/dist/fs-proxy.cjs
9852
+ var require_fs_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.0.6/node_modules/@napi-rs/wasm-runtime/dist/fs-proxy.cjs": ((exports) => {
9897
9853
  /**
9898
9854
  * @param {unknown} value
9899
9855
  */
@@ -10079,8 +10035,7 @@ var require_fs_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@n
10079
10035
  const status = Atomics.load(i32arr, 0);
10080
10036
  const type = Atomics.load(i32arr, 1);
10081
10037
  const size = Atomics.load(i32arr, 2);
10082
- const content = new Uint8Array(sab, 16, size);
10083
- const value = decodeValue(memfs, content, type);
10038
+ const value = decodeValue(memfs, new Uint8Array(sab, 16, size), type);
10084
10039
  if (status === 1) throw value;
10085
10040
  return value;
10086
10041
  };
@@ -10090,8 +10045,8 @@ var require_fs_proxy = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@n
10090
10045
  }) });
10091
10046
 
10092
10047
  //#endregion
10093
- //#region ../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.0.5/node_modules/@napi-rs/wasm-runtime/runtime.cjs
10094
- var require_runtime = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.0.5/node_modules/@napi-rs/wasm-runtime/runtime.cjs": ((exports, module) => {
10048
+ //#region ../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.0.6/node_modules/@napi-rs/wasm-runtime/runtime.cjs
10049
+ var require_runtime = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.0.6/node_modules/@napi-rs/wasm-runtime/runtime.cjs": ((exports, module) => {
10095
10050
  const { MessageHandler, instantiateNapiModuleSync, instantiateNapiModule } = (init_emnapi_core_esm_bundler(), __toCommonJS(emnapi_core_esm_bundler_exports));
10096
10051
  const { getDefaultContext } = (init_emnapi_esm_bundler(), __toCommonJS(emnapi_esm_bundler_exports));
10097
10052
  const { WASI } = (init_wasm_util_esm_bundler(), __toCommonJS(wasm_util_esm_bundler_exports));
@@ -10225,12 +10180,12 @@ var require_rolldown_binding_wasi = /* @__PURE__ */ __commonJS({ "src/rolldown-b
10225
10180
  module.exports.BindingPluginOrder = __napiModule.exports.BindingPluginOrder;
10226
10181
  module.exports.BindingPropertyReadSideEffects = __napiModule.exports.BindingPropertyReadSideEffects;
10227
10182
  module.exports.BindingPropertyWriteSideEffects = __napiModule.exports.BindingPropertyWriteSideEffects;
10183
+ module.exports.BindingRebuildStrategy = __napiModule.exports.BindingRebuildStrategy;
10228
10184
  module.exports.FilterTokenKind = __napiModule.exports.FilterTokenKind;
10229
10185
  module.exports.initTraceSubscriber = __napiModule.exports.initTraceSubscriber;
10230
10186
  module.exports.registerPlugins = __napiModule.exports.registerPlugins;
10231
10187
  module.exports.shutdownAsyncRuntime = __napiModule.exports.shutdownAsyncRuntime;
10232
10188
  module.exports.startAsyncRuntime = __napiModule.exports.startAsyncRuntime;
10233
- module.exports.JsWatcher = __napiModule.exports.JsWatcher;
10234
10189
  }) });
10235
10190
 
10236
10191
  //#endregion
@@ -10315,7 +10270,7 @@ function requireNative() {
10315
10270
  try {
10316
10271
  const binding = __require("@rolldown/binding-android-arm64");
10317
10272
  const bindingPackageVersion = __require("@rolldown/binding-android-arm64/package.json").version;
10318
- if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10273
+ if (bindingPackageVersion !== "1.0.0-beta.42" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.42 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10319
10274
  return binding;
10320
10275
  } catch (e) {
10321
10276
  loadErrors.push(e);
@@ -10329,13 +10284,27 @@ function requireNative() {
10329
10284
  try {
10330
10285
  const binding = __require("@rolldown/binding-android-arm-eabi");
10331
10286
  const bindingPackageVersion = __require("@rolldown/binding-android-arm-eabi/package.json").version;
10332
- if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10287
+ if (bindingPackageVersion !== "1.0.0-beta.42" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.42 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10333
10288
  return binding;
10334
10289
  } catch (e) {
10335
10290
  loadErrors.push(e);
10336
10291
  }
10337
10292
  } else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on Android ${process.arch}`));
10338
- else if (process.platform === "win32") if (process.arch === "x64") {
10293
+ else if (process.platform === "win32") if (process.arch === "x64") if (process.report?.getReport?.()?.header?.osName?.startsWith?.("MINGW")) {
10294
+ try {
10295
+ return __require("../rolldown-binding.win32-x64-gnu.node");
10296
+ } catch (e) {
10297
+ loadErrors.push(e);
10298
+ }
10299
+ try {
10300
+ const binding = __require("@rolldown/binding-win32-x64-gnu");
10301
+ const bindingPackageVersion = __require("@rolldown/binding-win32-x64-gnu/package.json").version;
10302
+ if (bindingPackageVersion !== "1.0.0-beta.42" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.42 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10303
+ return binding;
10304
+ } catch (e) {
10305
+ loadErrors.push(e);
10306
+ }
10307
+ } else {
10339
10308
  try {
10340
10309
  return __require("../rolldown-binding.win32-x64-msvc.node");
10341
10310
  } catch (e) {
@@ -10344,12 +10313,13 @@ function requireNative() {
10344
10313
  try {
10345
10314
  const binding = __require("@rolldown/binding-win32-x64-msvc");
10346
10315
  const bindingPackageVersion = __require("@rolldown/binding-win32-x64-msvc/package.json").version;
10347
- if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10316
+ if (bindingPackageVersion !== "1.0.0-beta.42" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.42 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10348
10317
  return binding;
10349
10318
  } catch (e) {
10350
10319
  loadErrors.push(e);
10351
10320
  }
10352
- } else if (process.arch === "ia32") {
10321
+ }
10322
+ else if (process.arch === "ia32") {
10353
10323
  try {
10354
10324
  return __require("../rolldown-binding.win32-ia32-msvc.node");
10355
10325
  } catch (e) {
@@ -10358,7 +10328,7 @@ function requireNative() {
10358
10328
  try {
10359
10329
  const binding = __require("@rolldown/binding-win32-ia32-msvc");
10360
10330
  const bindingPackageVersion = __require("@rolldown/binding-win32-ia32-msvc/package.json").version;
10361
- if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10331
+ if (bindingPackageVersion !== "1.0.0-beta.42" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.42 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10362
10332
  return binding;
10363
10333
  } catch (e) {
10364
10334
  loadErrors.push(e);
@@ -10372,7 +10342,7 @@ function requireNative() {
10372
10342
  try {
10373
10343
  const binding = __require("@rolldown/binding-win32-arm64-msvc");
10374
10344
  const bindingPackageVersion = __require("@rolldown/binding-win32-arm64-msvc/package.json").version;
10375
- if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10345
+ if (bindingPackageVersion !== "1.0.0-beta.42" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.42 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10376
10346
  return binding;
10377
10347
  } catch (e) {
10378
10348
  loadErrors.push(e);
@@ -10387,7 +10357,7 @@ function requireNative() {
10387
10357
  try {
10388
10358
  const binding = __require("@rolldown/binding-darwin-universal");
10389
10359
  const bindingPackageVersion = __require("@rolldown/binding-darwin-universal/package.json").version;
10390
- if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10360
+ if (bindingPackageVersion !== "1.0.0-beta.42" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.42 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10391
10361
  return binding;
10392
10362
  } catch (e) {
10393
10363
  loadErrors.push(e);
@@ -10401,7 +10371,7 @@ function requireNative() {
10401
10371
  try {
10402
10372
  const binding = __require("@rolldown/binding-darwin-x64");
10403
10373
  const bindingPackageVersion = __require("@rolldown/binding-darwin-x64/package.json").version;
10404
- if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10374
+ if (bindingPackageVersion !== "1.0.0-beta.42" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.42 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10405
10375
  return binding;
10406
10376
  } catch (e) {
10407
10377
  loadErrors.push(e);
@@ -10415,7 +10385,7 @@ function requireNative() {
10415
10385
  try {
10416
10386
  const binding = __require("@rolldown/binding-darwin-arm64");
10417
10387
  const bindingPackageVersion = __require("@rolldown/binding-darwin-arm64/package.json").version;
10418
- if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10388
+ if (bindingPackageVersion !== "1.0.0-beta.42" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.42 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10419
10389
  return binding;
10420
10390
  } catch (e) {
10421
10391
  loadErrors.push(e);
@@ -10430,7 +10400,7 @@ function requireNative() {
10430
10400
  try {
10431
10401
  const binding = __require("@rolldown/binding-freebsd-x64");
10432
10402
  const bindingPackageVersion = __require("@rolldown/binding-freebsd-x64/package.json").version;
10433
- if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10403
+ if (bindingPackageVersion !== "1.0.0-beta.42" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.42 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10434
10404
  return binding;
10435
10405
  } catch (e) {
10436
10406
  loadErrors.push(e);
@@ -10444,7 +10414,7 @@ function requireNative() {
10444
10414
  try {
10445
10415
  const binding = __require("@rolldown/binding-freebsd-arm64");
10446
10416
  const bindingPackageVersion = __require("@rolldown/binding-freebsd-arm64/package.json").version;
10447
- if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10417
+ if (bindingPackageVersion !== "1.0.0-beta.42" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.42 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10448
10418
  return binding;
10449
10419
  } catch (e) {
10450
10420
  loadErrors.push(e);
@@ -10459,7 +10429,7 @@ function requireNative() {
10459
10429
  try {
10460
10430
  const binding = __require("@rolldown/binding-linux-x64-musl");
10461
10431
  const bindingPackageVersion = __require("@rolldown/binding-linux-x64-musl/package.json").version;
10462
- if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10432
+ if (bindingPackageVersion !== "1.0.0-beta.42" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.42 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10463
10433
  return binding;
10464
10434
  } catch (e) {
10465
10435
  loadErrors.push(e);
@@ -10473,7 +10443,7 @@ function requireNative() {
10473
10443
  try {
10474
10444
  const binding = __require("@rolldown/binding-linux-x64-gnu");
10475
10445
  const bindingPackageVersion = __require("@rolldown/binding-linux-x64-gnu/package.json").version;
10476
- if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10446
+ if (bindingPackageVersion !== "1.0.0-beta.42" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.42 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10477
10447
  return binding;
10478
10448
  } catch (e) {
10479
10449
  loadErrors.push(e);
@@ -10488,7 +10458,7 @@ function requireNative() {
10488
10458
  try {
10489
10459
  const binding = __require("@rolldown/binding-linux-arm64-musl");
10490
10460
  const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-musl/package.json").version;
10491
- if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10461
+ if (bindingPackageVersion !== "1.0.0-beta.42" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.42 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10492
10462
  return binding;
10493
10463
  } catch (e) {
10494
10464
  loadErrors.push(e);
@@ -10502,7 +10472,7 @@ function requireNative() {
10502
10472
  try {
10503
10473
  const binding = __require("@rolldown/binding-linux-arm64-gnu");
10504
10474
  const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-gnu/package.json").version;
10505
- if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10475
+ if (bindingPackageVersion !== "1.0.0-beta.42" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.42 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10506
10476
  return binding;
10507
10477
  } catch (e) {
10508
10478
  loadErrors.push(e);
@@ -10517,7 +10487,7 @@ function requireNative() {
10517
10487
  try {
10518
10488
  const binding = __require("@rolldown/binding-linux-arm-musleabihf");
10519
10489
  const bindingPackageVersion = __require("@rolldown/binding-linux-arm-musleabihf/package.json").version;
10520
- if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10490
+ if (bindingPackageVersion !== "1.0.0-beta.42" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.42 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10521
10491
  return binding;
10522
10492
  } catch (e) {
10523
10493
  loadErrors.push(e);
@@ -10531,7 +10501,7 @@ function requireNative() {
10531
10501
  try {
10532
10502
  const binding = __require("@rolldown/binding-linux-arm-gnueabihf");
10533
10503
  const bindingPackageVersion = __require("@rolldown/binding-linux-arm-gnueabihf/package.json").version;
10534
- if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10504
+ if (bindingPackageVersion !== "1.0.0-beta.42" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.42 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10535
10505
  return binding;
10536
10506
  } catch (e) {
10537
10507
  loadErrors.push(e);
@@ -10546,7 +10516,7 @@ function requireNative() {
10546
10516
  try {
10547
10517
  const binding = __require("@rolldown/binding-linux-loong64-musl");
10548
10518
  const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-musl/package.json").version;
10549
- if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10519
+ if (bindingPackageVersion !== "1.0.0-beta.42" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.42 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10550
10520
  return binding;
10551
10521
  } catch (e) {
10552
10522
  loadErrors.push(e);
@@ -10560,7 +10530,7 @@ function requireNative() {
10560
10530
  try {
10561
10531
  const binding = __require("@rolldown/binding-linux-loong64-gnu");
10562
10532
  const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-gnu/package.json").version;
10563
- if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10533
+ if (bindingPackageVersion !== "1.0.0-beta.42" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.42 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10564
10534
  return binding;
10565
10535
  } catch (e) {
10566
10536
  loadErrors.push(e);
@@ -10575,7 +10545,7 @@ function requireNative() {
10575
10545
  try {
10576
10546
  const binding = __require("@rolldown/binding-linux-riscv64-musl");
10577
10547
  const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-musl/package.json").version;
10578
- if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10548
+ if (bindingPackageVersion !== "1.0.0-beta.42" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.42 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10579
10549
  return binding;
10580
10550
  } catch (e) {
10581
10551
  loadErrors.push(e);
@@ -10589,7 +10559,7 @@ function requireNative() {
10589
10559
  try {
10590
10560
  const binding = __require("@rolldown/binding-linux-riscv64-gnu");
10591
10561
  const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-gnu/package.json").version;
10592
- if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10562
+ if (bindingPackageVersion !== "1.0.0-beta.42" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.42 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10593
10563
  return binding;
10594
10564
  } catch (e) {
10595
10565
  loadErrors.push(e);
@@ -10604,7 +10574,7 @@ function requireNative() {
10604
10574
  try {
10605
10575
  const binding = __require("@rolldown/binding-linux-ppc64-gnu");
10606
10576
  const bindingPackageVersion = __require("@rolldown/binding-linux-ppc64-gnu/package.json").version;
10607
- if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10577
+ if (bindingPackageVersion !== "1.0.0-beta.42" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.42 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10608
10578
  return binding;
10609
10579
  } catch (e) {
10610
10580
  loadErrors.push(e);
@@ -10618,7 +10588,7 @@ function requireNative() {
10618
10588
  try {
10619
10589
  const binding = __require("@rolldown/binding-linux-s390x-gnu");
10620
10590
  const bindingPackageVersion = __require("@rolldown/binding-linux-s390x-gnu/package.json").version;
10621
- if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10591
+ if (bindingPackageVersion !== "1.0.0-beta.42" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.42 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10622
10592
  return binding;
10623
10593
  } catch (e) {
10624
10594
  loadErrors.push(e);
@@ -10633,7 +10603,7 @@ function requireNative() {
10633
10603
  try {
10634
10604
  const binding = __require("@rolldown/binding-openharmony-arm64");
10635
10605
  const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm64/package.json").version;
10636
- if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10606
+ if (bindingPackageVersion !== "1.0.0-beta.42" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.42 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10637
10607
  return binding;
10638
10608
  } catch (e) {
10639
10609
  loadErrors.push(e);
@@ -10647,7 +10617,7 @@ function requireNative() {
10647
10617
  try {
10648
10618
  const binding = __require("@rolldown/binding-openharmony-x64");
10649
10619
  const bindingPackageVersion = __require("@rolldown/binding-openharmony-x64/package.json").version;
10650
- if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10620
+ if (bindingPackageVersion !== "1.0.0-beta.42" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.42 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10651
10621
  return binding;
10652
10622
  } catch (e) {
10653
10623
  loadErrors.push(e);
@@ -10661,7 +10631,7 @@ function requireNative() {
10661
10631
  try {
10662
10632
  const binding = __require("@rolldown/binding-openharmony-arm");
10663
10633
  const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm/package.json").version;
10664
- if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10634
+ if (bindingPackageVersion !== "1.0.0-beta.42" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.42 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10665
10635
  return binding;
10666
10636
  } catch (e) {
10667
10637
  loadErrors.push(e);
@@ -10706,7 +10676,7 @@ if (!nativeBinding) {
10706
10676
  }) });
10707
10677
  throw new Error(`Failed to load native binding`);
10708
10678
  }
10709
- const { minify, Severity, ParseResult, ExportExportNameKind, ExportImportNameKind, ExportLocalNameKind, ImportNameKind, parseAsync, parseSync, rawTransferSupported, ResolverFactory, EnforceExtension, ModuleType, sync, HelperMode, isolatedDeclaration, moduleRunnerTransform, transform, transformAsync, BindingBundleEndEventData, BindingBundleErrorEventData, BindingBundler, BindingBundlerImpl, BindingCallableBuiltinPlugin, BindingChunkingContext, BindingClientHmrUpdate, BindingDevEngine, BindingHmrOutput, BindingMagicString, BindingModuleInfo, BindingNormalizedOptions, BindingOutputAsset, BindingOutputChunk, BindingOutputs, BindingPluginContext, BindingRenderedChunk, BindingRenderedChunkMeta, BindingRenderedModule, BindingTransformPluginContext, BindingWatcher, BindingWatcherChangeData, BindingWatcherEvent, ParallelJsPluginRegistry, ScheduledBuild, TraceSubscriberGuard, BindingAttachDebugInfo, BindingBuiltinPluginName, BindingChunkModuleOrderBy, BindingJsx, BindingLogLevel, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects, FilterTokenKind, initTraceSubscriber, registerPlugins, shutdownAsyncRuntime, startAsyncRuntime, JsWatcher } = nativeBinding;
10679
+ const { minify, Severity, ParseResult, ExportExportNameKind, ExportImportNameKind, ExportLocalNameKind, ImportNameKind, parseAsync, parseSync, rawTransferSupported, ResolverFactory, EnforceExtension, ModuleType, sync, HelperMode, isolatedDeclaration, moduleRunnerTransform, transform, transformAsync, BindingBundleEndEventData, BindingBundleErrorEventData, BindingBundler, BindingBundlerImpl, BindingCallableBuiltinPlugin, BindingChunkingContext, BindingClientHmrUpdate, BindingDevEngine, BindingHmrOutput, BindingMagicString, BindingModuleInfo, BindingNormalizedOptions, BindingOutputAsset, BindingOutputChunk, BindingOutputs, BindingPluginContext, BindingRenderedChunk, BindingRenderedChunkMeta, BindingRenderedModule, BindingTransformPluginContext, BindingWatcher, BindingWatcherChangeData, BindingWatcherEvent, ParallelJsPluginRegistry, ScheduledBuild, TraceSubscriberGuard, BindingAttachDebugInfo, BindingBuiltinPluginName, BindingChunkModuleOrderBy, BindingJsx, BindingLogLevel, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects, BindingRebuildStrategy, FilterTokenKind, initTraceSubscriber, registerPlugins, shutdownAsyncRuntime, startAsyncRuntime } = nativeBinding;
10710
10680
 
10711
10681
  //#endregion
10712
10682
  //#region src/utils/code-frame.ts
@@ -10895,7 +10865,7 @@ function augmentCodeLocation(properties, pos, source, id) {
10895
10865
  }
10896
10866
 
10897
10867
  //#endregion
10898
- //#region ../../node_modules/.pnpm/oxc-parser@0.93.0/node_modules/oxc-parser/src-js/wrap.js
10868
+ //#region ../../node_modules/.pnpm/oxc-parser@0.94.0/node_modules/oxc-parser/src-js/wrap.js
10899
10869
  function wrap$1(result) {
10900
10870
  let program, module$1, comments, errors;
10901
10871
  return {
@@ -10972,4 +10942,4 @@ async function parseAstAsync(sourceText, options, filename) {
10972
10942
  }
10973
10943
 
10974
10944
  //#endregion
10975
- export { BindingAttachDebugInfo, BindingBundler, BindingCallableBuiltinPlugin, BindingChunkModuleOrderBy, BindingClientHmrUpdate, BindingDevEngine, BindingJsx, BindingLogLevel, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects, BindingWatcher, ParallelJsPluginRegistry, ResolverFactory, augmentCodeLocation, error, initTraceSubscriber, isolatedDeclaration, logCycleLoading, logDuplicateJsxConfig, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, moduleRunnerTransform, parseAst, parseAstAsync, registerPlugins, shutdownAsyncRuntime, startAsyncRuntime, transform };
10945
+ export { BindingAttachDebugInfo, BindingBundler, BindingCallableBuiltinPlugin, BindingChunkModuleOrderBy, BindingClientHmrUpdate, BindingDevEngine, BindingJsx, BindingLogLevel, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects, BindingRebuildStrategy, BindingWatcher, ParallelJsPluginRegistry, ResolverFactory, augmentCodeLocation, error, initTraceSubscriber, isolatedDeclaration, logCycleLoading, logDuplicateJsxConfig, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, moduleRunnerTransform, parseAst, parseAstAsync, registerPlugins, shutdownAsyncRuntime, startAsyncRuntime, transform };
@@ -39,28 +39,26 @@ function requireSrc() {
39
39
  save: `${ESC}7`,
40
40
  restore: `${ESC}8`
41
41
  };
42
- const scroll = {
43
- up: (count = 1) => `${CSI}S`.repeat(count),
44
- down: (count = 1) => `${CSI}T`.repeat(count)
45
- };
46
- const erase = {
47
- screen: `${CSI}2J`,
48
- up: (count = 1) => `${CSI}1J`.repeat(count),
49
- down: (count = 1) => `${CSI}J`.repeat(count),
50
- line: `${CSI}2K`,
51
- lineEnd: `${CSI}K`,
52
- lineStart: `${CSI}1K`,
53
- lines(count) {
54
- let clear = "";
55
- for (let i = 0; i < count; i++) clear += this.line + (i < count - 1 ? cursor.up() : "");
56
- if (count) clear += cursor.left;
57
- return clear;
58
- }
59
- };
60
42
  src = {
61
43
  cursor,
62
- scroll,
63
- erase,
44
+ scroll: {
45
+ up: (count = 1) => `${CSI}S`.repeat(count),
46
+ down: (count = 1) => `${CSI}T`.repeat(count)
47
+ },
48
+ erase: {
49
+ screen: `${CSI}2J`,
50
+ up: (count = 1) => `${CSI}1J`.repeat(count),
51
+ down: (count = 1) => `${CSI}J`.repeat(count),
52
+ line: `${CSI}2K`,
53
+ lineEnd: `${CSI}K`,
54
+ lineStart: `${CSI}1K`,
55
+ lines(count) {
56
+ let clear = "";
57
+ for (let i = 0; i < count; i++) clear += this.line + (i < count - 1 ? cursor.up() : "");
58
+ if (count) clear += cursor.left;
59
+ return clear;
60
+ }
61
+ },
64
62
  beep
65
63
  };
66
64
  return src;