rolldown 1.2.8 → 1.2.9

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.
Files changed (35) hide show
  1. package/dist/cli.mjs +6 -6
  2. package/dist/config.d.mts +1 -1
  3. package/dist/config.mjs +2 -2
  4. package/dist/experimental-index.d.mts +4 -4
  5. package/dist/experimental-index.mjs +8 -8
  6. package/dist/experimental-runtime-types.d.ts +19 -0
  7. package/dist/experimental-runtime.d.ts +19 -0
  8. package/dist/experimental-runtime.mjs +42 -0
  9. package/dist/filter-index.d.mts +1 -1
  10. package/dist/index.d.mts +2 -2
  11. package/dist/index.mjs +4 -4
  12. package/dist/parallel-plugin-worker.mjs +2 -2
  13. package/dist/parallel-plugin.d.mts +1 -1
  14. package/dist/parse-ast-index.d.mts +1 -1
  15. package/dist/parse-ast-index.mjs +1 -1
  16. package/dist/plugins-index.d.mts +3 -3
  17. package/dist/plugins-index.mjs +2 -2
  18. package/dist/shared/{binding-DZuNHVw4.d.mts → binding-BTa6BPQe.d.mts} +23 -36
  19. package/dist/shared/{binding-DH95uVkp.mjs → binding-BbrDfv1x.mjs} +53 -28
  20. package/dist/shared/{bindingify-input-options-XQ0947n1.mjs → bindingify-input-options-D4l624og.mjs} +9 -8
  21. package/dist/shared/{constructors-BnIg8feC.d.mts → constructors-CmDKpWIU.d.mts} +2 -2
  22. package/dist/shared/{constructors-CrhQ-yy_.mjs → constructors-D9jwEbE4.mjs} +1 -1
  23. package/dist/shared/{create-bundler-option-kXHnIt4b.mjs → create-bundler-option-DJpvtSqr.mjs} +90 -154
  24. package/dist/shared/{define-config-DjHYbH6S.d.mts → define-config-BFdLpVut.d.mts} +6 -1
  25. package/dist/shared/{error-CRNyaqoL.mjs → error-CGhV1ebk.mjs} +1 -1
  26. package/dist/shared/{load-config-BH5SJ8XZ.mjs → load-config-qRezutA0.mjs} +1 -1
  27. package/dist/shared/{normalize-string-or-regex-BgP6W4eD.mjs → normalize-string-or-regex-zc1bUto6.mjs} +1 -1
  28. package/dist/shared/{parse-BtiCBYra.mjs → parse-DltPb1DL.mjs} +2 -2
  29. package/dist/shared/{resolve-tsconfig-jh43hFM_.mjs → resolve-tsconfig-Bf6oL9fm.mjs} +2 -2
  30. package/dist/shared/{rolldown-B-jRyK4b.mjs → rolldown-Ld3ZGGCt.mjs} +4 -4
  31. package/dist/shared/{transform-CVse9_mH.d.mts → transform-DK_nCt9j.d.mts} +1 -1
  32. package/dist/shared/{watch-dKH5b9eq.mjs → watch-BDSxrMiV.mjs} +4 -4
  33. package/dist/utils-index.d.mts +3 -3
  34. package/dist/utils-index.mjs +5 -5
  35. package/package.json +28 -25
@@ -50,6 +50,7 @@ var require_webcontainer_fallback = /* @__PURE__ */ __commonJSMin(((exports, mod
50
50
  var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
51
51
  const { readFileSync } = __require("fs");
52
52
  let nativeBinding = null;
53
+ let __napiLoadedBindingTarget = "native";
53
54
  const loadErrors = [];
54
55
  const isMusl = () => {
55
56
  let musl = false;
@@ -90,7 +91,9 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90
91
  };
91
92
  function requireNative() {
92
93
  if (process.env.NAPI_RS_NATIVE_LIBRARY_PATH) try {
93
- return __require(process.env.NAPI_RS_NATIVE_LIBRARY_PATH);
94
+ const overrideBinding = __require(process.env.NAPI_RS_NATIVE_LIBRARY_PATH);
95
+ __napiLoadedBindingTarget = overrideBinding && typeof overrideBinding.__napiBindingTarget === "string" ? overrideBinding.__napiBindingTarget : "native";
96
+ return overrideBinding;
94
97
  } catch (err) {
95
98
  loadErrors.push(err);
96
99
  }
@@ -104,7 +107,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
104
107
  try {
105
108
  const binding = __require("@rolldown/binding-android-arm64");
106
109
  const bindingPackageVersion = __require("@rolldown/binding-android-arm64/package.json").version;
107
- if (bindingPackageVersion !== "1.2.8" && 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.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
110
+ if (bindingPackageVersion !== "1.2.9" && 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.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
108
111
  return binding;
109
112
  } catch (e) {
110
113
  loadErrors.push(e);
@@ -118,7 +121,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
118
121
  try {
119
122
  const binding = __require("@rolldown/binding-android-arm-eabi");
120
123
  const bindingPackageVersion = __require("@rolldown/binding-android-arm-eabi/package.json").version;
121
- if (bindingPackageVersion !== "1.2.8" && 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.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
124
+ if (bindingPackageVersion !== "1.2.9" && 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.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
122
125
  return binding;
123
126
  } catch (e) {
124
127
  loadErrors.push(e);
@@ -135,7 +138,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
135
138
  try {
136
139
  const binding = __require("@rolldown/binding-win32-x64-gnu");
137
140
  const bindingPackageVersion = __require("@rolldown/binding-win32-x64-gnu/package.json").version;
138
- if (bindingPackageVersion !== "1.2.8" && 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.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
141
+ if (bindingPackageVersion !== "1.2.9" && 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.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
139
142
  return binding;
140
143
  } catch (e) {
141
144
  loadErrors.push(e);
@@ -149,7 +152,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
149
152
  try {
150
153
  const binding = __require("@rolldown/binding-win32-x64-msvc");
151
154
  const bindingPackageVersion = __require("@rolldown/binding-win32-x64-msvc/package.json").version;
152
- if (bindingPackageVersion !== "1.2.8" && 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.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
155
+ if (bindingPackageVersion !== "1.2.9" && 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.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
153
156
  return binding;
154
157
  } catch (e) {
155
158
  loadErrors.push(e);
@@ -164,7 +167,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
164
167
  try {
165
168
  const binding = __require("@rolldown/binding-win32-ia32-msvc");
166
169
  const bindingPackageVersion = __require("@rolldown/binding-win32-ia32-msvc/package.json").version;
167
- if (bindingPackageVersion !== "1.2.8" && 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.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
170
+ if (bindingPackageVersion !== "1.2.9" && 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.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
168
171
  return binding;
169
172
  } catch (e) {
170
173
  loadErrors.push(e);
@@ -178,7 +181,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
178
181
  try {
179
182
  const binding = __require("@rolldown/binding-win32-arm64-msvc");
180
183
  const bindingPackageVersion = __require("@rolldown/binding-win32-arm64-msvc/package.json").version;
181
- if (bindingPackageVersion !== "1.2.8" && 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.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
184
+ if (bindingPackageVersion !== "1.2.9" && 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.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
182
185
  return binding;
183
186
  } catch (e) {
184
187
  loadErrors.push(e);
@@ -193,7 +196,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
193
196
  try {
194
197
  const binding = __require("@rolldown/binding-darwin-universal");
195
198
  const bindingPackageVersion = __require("@rolldown/binding-darwin-universal/package.json").version;
196
- if (bindingPackageVersion !== "1.2.8" && 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.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
199
+ if (bindingPackageVersion !== "1.2.9" && 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.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
197
200
  return binding;
198
201
  } catch (e) {
199
202
  loadErrors.push(e);
@@ -207,7 +210,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
207
210
  try {
208
211
  const binding = __require("@rolldown/binding-darwin-x64");
209
212
  const bindingPackageVersion = __require("@rolldown/binding-darwin-x64/package.json").version;
210
- if (bindingPackageVersion !== "1.2.8" && 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.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
213
+ if (bindingPackageVersion !== "1.2.9" && 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.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
211
214
  return binding;
212
215
  } catch (e) {
213
216
  loadErrors.push(e);
@@ -221,7 +224,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
221
224
  try {
222
225
  const binding = __require("@rolldown/binding-darwin-arm64");
223
226
  const bindingPackageVersion = __require("@rolldown/binding-darwin-arm64/package.json").version;
224
- if (bindingPackageVersion !== "1.2.8" && 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.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
227
+ if (bindingPackageVersion !== "1.2.9" && 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.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
225
228
  return binding;
226
229
  } catch (e) {
227
230
  loadErrors.push(e);
@@ -237,7 +240,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
237
240
  try {
238
241
  const binding = __require("@rolldown/binding-freebsd-x64");
239
242
  const bindingPackageVersion = __require("@rolldown/binding-freebsd-x64/package.json").version;
240
- if (bindingPackageVersion !== "1.2.8" && 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.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
243
+ if (bindingPackageVersion !== "1.2.9" && 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.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
241
244
  return binding;
242
245
  } catch (e) {
243
246
  loadErrors.push(e);
@@ -251,7 +254,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
251
254
  try {
252
255
  const binding = __require("@rolldown/binding-freebsd-arm64");
253
256
  const bindingPackageVersion = __require("@rolldown/binding-freebsd-arm64/package.json").version;
254
- if (bindingPackageVersion !== "1.2.8" && 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.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
257
+ if (bindingPackageVersion !== "1.2.9" && 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.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
255
258
  return binding;
256
259
  } catch (e) {
257
260
  loadErrors.push(e);
@@ -268,7 +271,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
268
271
  try {
269
272
  const binding = __require("@rolldown/binding-linux-x64-musl");
270
273
  const bindingPackageVersion = __require("@rolldown/binding-linux-x64-musl/package.json").version;
271
- if (bindingPackageVersion !== "1.2.8" && 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.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
274
+ if (bindingPackageVersion !== "1.2.9" && 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.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
272
275
  return binding;
273
276
  } catch (e) {
274
277
  loadErrors.push(e);
@@ -282,7 +285,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
282
285
  try {
283
286
  const binding = __require("@rolldown/binding-linux-x64-gnu");
284
287
  const bindingPackageVersion = __require("@rolldown/binding-linux-x64-gnu/package.json").version;
285
- if (bindingPackageVersion !== "1.2.8" && 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.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
288
+ if (bindingPackageVersion !== "1.2.9" && 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.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
286
289
  return binding;
287
290
  } catch (e) {
288
291
  loadErrors.push(e);
@@ -298,7 +301,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
298
301
  try {
299
302
  const binding = __require("@rolldown/binding-linux-arm64-musl");
300
303
  const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-musl/package.json").version;
301
- if (bindingPackageVersion !== "1.2.8" && 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.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
304
+ if (bindingPackageVersion !== "1.2.9" && 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.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
302
305
  return binding;
303
306
  } catch (e) {
304
307
  loadErrors.push(e);
@@ -312,7 +315,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
312
315
  try {
313
316
  const binding = __require("@rolldown/binding-linux-arm64-gnu");
314
317
  const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-gnu/package.json").version;
315
- if (bindingPackageVersion !== "1.2.8" && 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.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
318
+ if (bindingPackageVersion !== "1.2.9" && 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.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
316
319
  return binding;
317
320
  } catch (e) {
318
321
  loadErrors.push(e);
@@ -328,7 +331,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
328
331
  try {
329
332
  const binding = __require("@rolldown/binding-linux-arm-musleabihf");
330
333
  const bindingPackageVersion = __require("@rolldown/binding-linux-arm-musleabihf/package.json").version;
331
- if (bindingPackageVersion !== "1.2.8" && 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.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
334
+ if (bindingPackageVersion !== "1.2.9" && 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.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
332
335
  return binding;
333
336
  } catch (e) {
334
337
  loadErrors.push(e);
@@ -342,7 +345,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
342
345
  try {
343
346
  const binding = __require("@rolldown/binding-linux-arm-gnueabihf");
344
347
  const bindingPackageVersion = __require("@rolldown/binding-linux-arm-gnueabihf/package.json").version;
345
- if (bindingPackageVersion !== "1.2.8" && 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.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
348
+ if (bindingPackageVersion !== "1.2.9" && 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.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
346
349
  return binding;
347
350
  } catch (e) {
348
351
  loadErrors.push(e);
@@ -358,7 +361,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
358
361
  try {
359
362
  const binding = __require("@rolldown/binding-linux-loong64-musl");
360
363
  const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-musl/package.json").version;
361
- if (bindingPackageVersion !== "1.2.8" && 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.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
364
+ if (bindingPackageVersion !== "1.2.9" && 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.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
362
365
  return binding;
363
366
  } catch (e) {
364
367
  loadErrors.push(e);
@@ -372,7 +375,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
372
375
  try {
373
376
  const binding = __require("@rolldown/binding-linux-loong64-gnu");
374
377
  const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-gnu/package.json").version;
375
- if (bindingPackageVersion !== "1.2.8" && 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.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
378
+ if (bindingPackageVersion !== "1.2.9" && 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.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
376
379
  return binding;
377
380
  } catch (e) {
378
381
  loadErrors.push(e);
@@ -388,7 +391,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
388
391
  try {
389
392
  const binding = __require("@rolldown/binding-linux-riscv64-musl");
390
393
  const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-musl/package.json").version;
391
- if (bindingPackageVersion !== "1.2.8" && 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.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
394
+ if (bindingPackageVersion !== "1.2.9" && 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.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
392
395
  return binding;
393
396
  } catch (e) {
394
397
  loadErrors.push(e);
@@ -402,7 +405,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
402
405
  try {
403
406
  const binding = __require("@rolldown/binding-linux-riscv64-gnu");
404
407
  const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-gnu/package.json").version;
405
- if (bindingPackageVersion !== "1.2.8" && 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.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
408
+ if (bindingPackageVersion !== "1.2.9" && 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.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
406
409
  return binding;
407
410
  } catch (e) {
408
411
  loadErrors.push(e);
@@ -417,7 +420,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
417
420
  try {
418
421
  const binding = __require("@rolldown/binding-linux-ppc64-gnu");
419
422
  const bindingPackageVersion = __require("@rolldown/binding-linux-ppc64-gnu/package.json").version;
420
- if (bindingPackageVersion !== "1.2.8" && 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.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
423
+ if (bindingPackageVersion !== "1.2.9" && 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.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
421
424
  return binding;
422
425
  } catch (e) {
423
426
  loadErrors.push(e);
@@ -431,7 +434,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
431
434
  try {
432
435
  const binding = __require("@rolldown/binding-linux-s390x-gnu");
433
436
  const bindingPackageVersion = __require("@rolldown/binding-linux-s390x-gnu/package.json").version;
434
- if (bindingPackageVersion !== "1.2.8" && 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.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
437
+ if (bindingPackageVersion !== "1.2.9" && 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.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
435
438
  return binding;
436
439
  } catch (e) {
437
440
  loadErrors.push(e);
@@ -447,7 +450,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
447
450
  try {
448
451
  const binding = __require("@rolldown/binding-openharmony-arm64");
449
452
  const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm64/package.json").version;
450
- if (bindingPackageVersion !== "1.2.8" && 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.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
453
+ if (bindingPackageVersion !== "1.2.9" && 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.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
451
454
  return binding;
452
455
  } catch (e) {
453
456
  loadErrors.push(e);
@@ -461,7 +464,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
461
464
  try {
462
465
  const binding = __require("@rolldown/binding-openharmony-x64");
463
466
  const bindingPackageVersion = __require("@rolldown/binding-openharmony-x64/package.json").version;
464
- if (bindingPackageVersion !== "1.2.8" && 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.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
467
+ if (bindingPackageVersion !== "1.2.9" && 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.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
465
468
  return binding;
466
469
  } catch (e) {
467
470
  loadErrors.push(e);
@@ -475,7 +478,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
475
478
  try {
476
479
  const binding = __require("@rolldown/binding-openharmony-arm");
477
480
  const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm/package.json").version;
478
- if (bindingPackageVersion !== "1.2.8" && 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.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
481
+ if (bindingPackageVersion !== "1.2.9" && 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.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
479
482
  return binding;
480
483
  } catch (e) {
481
484
  loadErrors.push(e);
@@ -545,6 +548,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
545
548
  if (!candidateFailed) {
546
549
  wasiBinding = __require("../rolldown-binding.wasi.cjs");
547
550
  nativeBinding = wasiBinding;
551
+ __napiLoadedBindingTarget = "wasm32-wasi";
548
552
  wasiBindingLoaded = true;
549
553
  }
550
554
  } catch (err) {
@@ -565,10 +569,11 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
565
569
  if (!candidateFailed) {
566
570
  if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
567
571
  const bindingPackageVersion = __require("@rolldown/binding-wasm32-wasi/package.json").version;
568
- if (bindingPackageVersion !== "1.2.8") throw new Error(`WASI binding package version mismatch, expected 1.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
572
+ if (bindingPackageVersion !== "1.2.9") throw new Error(`WASI binding package version mismatch, expected 1.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
569
573
  }
570
574
  wasiBinding = __require("@rolldown/binding-wasm32-wasi");
571
575
  nativeBinding = wasiBinding;
576
+ __napiLoadedBindingTarget = "wasm32-wasi";
572
577
  wasiBindingLoaded = true;
573
578
  }
574
579
  } catch (err) {
@@ -600,6 +605,25 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
600
605
  }
601
606
  throw new Error(`Failed to load native binding`);
602
607
  }
608
+ function __napiStampBindingTarget(exportsObject, target) {
609
+ if (Object.prototype.hasOwnProperty.call(exportsObject, "__napiBindingTarget")) {
610
+ if (exportsObject.__napiBindingTarget === target) return target;
611
+ const error = /* @__PURE__ */ new Error("`__napiBindingTarget` is reserved by the generated binding loader, but the loaded binding already exports it. Rename the export, e.g. #[napi(js_name = \"...\")].");
612
+ error.code = "ERR_NAPI_BINDING_TARGET_CONFLICT";
613
+ throw error;
614
+ }
615
+ if (!Object.isExtensible(exportsObject)) return target;
616
+ try {
617
+ Object.defineProperty(exportsObject, "__napiBindingTarget", {
618
+ configurable: true,
619
+ enumerable: true,
620
+ value: target,
621
+ writable: true
622
+ });
623
+ } catch {}
624
+ return target;
625
+ }
626
+ module.exports.__napiBindingTarget = __napiStampBindingTarget(nativeBinding, __napiLoadedBindingTarget);
603
627
  module.exports = nativeBinding;
604
628
  module.exports.LegalCommentsMode = nativeBinding.LegalCommentsMode;
605
629
  module.exports.minify = nativeBinding.minify;
@@ -650,6 +674,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
650
674
  module.exports.ParallelJsPluginRegistry = nativeBinding.ParallelJsPluginRegistry;
651
675
  module.exports.TraceSubscriberGuard = nativeBinding.TraceSubscriberGuard;
652
676
  module.exports.TsconfigCache = nativeBinding.TsconfigCache;
677
+ module.exports.__internalForcePanic = nativeBinding.__internalForcePanic;
653
678
  module.exports.BindingAttachDebugInfo = nativeBinding.BindingAttachDebugInfo;
654
679
  module.exports.BindingBuiltinPluginName = nativeBinding.BindingBuiltinPluginName;
655
680
  module.exports.BindingChunkModuleOrderBy = nativeBinding.BindingChunkModuleOrderBy;
@@ -1,8 +1,8 @@
1
- import { n as __toESM, t as require_binding } from "./binding-DH95uVkp.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-BbrDfv1x.mjs";
2
2
  import { i as logFailedValidation, l as logPluginError, n as error, o as logInvalidLogPosition, r as logCycleLoading, t as augmentCodeLocation } from "./logs-DmYCAKcW.mjs";
3
- import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-BgP6W4eD.mjs";
3
+ import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-zc1bUto6.mjs";
4
4
  import { i as noop, n as isPathFragment, o as unreachable, s as unsupported, t as arraify } from "./misc-DOSKtd97.mjs";
5
- import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-CRNyaqoL.mjs";
5
+ import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-CGhV1ebk.mjs";
6
6
  import { parseAst } from "../parse-ast-index.mjs";
7
7
  import fs from "node:fs";
8
8
  import path from "node:path";
@@ -10,7 +10,7 @@ import * as filter from "@rolldown/pluginutils";
10
10
  import fsp from "node:fs/promises";
11
11
  import { fileURLToPath } from "node:url";
12
12
  //#region package.json
13
- var version = "1.2.8";
13
+ var version = "1.2.9";
14
14
  var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
15
15
  //#endregion
16
16
  //#region src/constants/version.ts
@@ -236,7 +236,7 @@ function bindingAssetSource(source) {
236
236
  return { inner: source };
237
237
  }
238
238
  //#endregion
239
- //#region \0@oxc-project+runtime@0.149.0/helpers/esm/decorate.js
239
+ //#region \0@oxc-project+runtime@0.150.0/helpers/esm/decorate.js
240
240
  function __decorate(decorators, target, key, desc) {
241
241
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
242
242
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -545,6 +545,7 @@ function transformToOutputBundle(context, output, changed) {
545
545
  },
546
546
  deleteProperty(target, property) {
547
547
  if (typeof property === "string") changed.deleted.add(property);
548
+ delete target[property];
548
549
  return true;
549
550
  }
550
551
  });
@@ -1024,7 +1025,7 @@ function normalizeTransformHookSourcemap(id, originalCode, rawMap) {
1024
1025
  return map;
1025
1026
  }
1026
1027
  //#endregion
1027
- //#region ../../node_modules/.pnpm/remeda@2.45.0/node_modules/remeda/dist/lazyDataLastImpl--3B10z3s.js
1028
+ //#region ../../node_modules/.pnpm/remeda@2.48.0/node_modules/remeda/dist/lazyDataLastImpl--3B10z3s.js
1028
1029
  function e(e, t, n) {
1029
1030
  let r = (n) => e(n, ...t);
1030
1031
  return n === void 0 ? r : Object.assign(r, {
@@ -1033,7 +1034,7 @@ function e(e, t, n) {
1033
1034
  });
1034
1035
  }
1035
1036
  //#endregion
1036
- //#region ../../node_modules/.pnpm/remeda@2.45.0/node_modules/remeda/dist/purry.js
1037
+ //#region ../../node_modules/.pnpm/remeda@2.48.0/node_modules/remeda/dist/purry.js
1037
1038
  function t$1(t, n, r) {
1038
1039
  let i = t.length - n.length;
1039
1040
  if (i === 0) return t(...n);
@@ -1041,7 +1042,7 @@ function t$1(t, n, r) {
1041
1042
  throw Error(`Wrong number of arguments`);
1042
1043
  }
1043
1044
  //#endregion
1044
- //#region ../../node_modules/.pnpm/remeda@2.45.0/node_modules/remeda/dist/partition.js
1045
+ //#region ../../node_modules/.pnpm/remeda@2.48.0/node_modules/remeda/dist/partition.js
1045
1046
  function t(...t) {
1046
1047
  return t$1(n, t);
1047
1048
  }
@@ -1,5 +1,5 @@
1
- import { A as BindingViteResolvePluginConfig, C as BindingViteDynamicImportVarsPluginConfig, D as BindingViteModulePreloadPolyfillPluginConfig, O as BindingViteReactRefreshWrapperPluginConfig, S as BindingViteBuildImportAnalysisPluginConfig, T as BindingViteJsonPluginConfig, k as BindingViteReporterPluginConfig, l as BindingIsolatedDeclarationPluginConfig, s as BindingEsmExternalRequirePluginConfig, w as BindingViteImportGlobPluginConfig } from "./binding-DZuNHVw4.mjs";
2
- import { I as BuiltinPlugin, Kt as StringOrRegExp } from "./define-config-DjHYbH6S.mjs";
1
+ import { A as BindingViteResolvePluginConfig, C as BindingViteDynamicImportVarsPluginConfig, D as BindingViteModulePreloadPolyfillPluginConfig, O as BindingViteReactRefreshWrapperPluginConfig, S as BindingViteBuildImportAnalysisPluginConfig, T as BindingViteJsonPluginConfig, k as BindingViteReporterPluginConfig, l as BindingIsolatedDeclarationPluginConfig, s as BindingEsmExternalRequirePluginConfig, w as BindingViteImportGlobPluginConfig } from "./binding-BTa6BPQe.mjs";
2
+ import { I as BuiltinPlugin, Kt as StringOrRegExp } from "./define-config-BFdLpVut.mjs";
3
3
  //#region src/builtin-plugin/constructors.d.ts
4
4
  declare function viteModulePreloadPolyfillPlugin(config?: BindingViteModulePreloadPolyfillPluginConfig): BuiltinPlugin;
5
5
  type DynamicImportVarsPluginConfig = Omit<BindingViteDynamicImportVarsPluginConfig, "include" | "exclude"> & {
@@ -1,4 +1,4 @@
1
- import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-BgP6W4eD.mjs";
1
+ import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-zc1bUto6.mjs";
2
2
  //#region src/builtin-plugin/constructors.ts
3
3
  function viteModulePreloadPolyfillPlugin(config) {
4
4
  return new BuiltinPlugin("builtin:vite-module-preload-polyfill", config);