@voidzero-dev/vite-plus-core 1.0.0-rc.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/LICENSE +29 -176
  2. package/dist/rolldown/cli.mjs +9 -8
  3. package/dist/rolldown/config.d.mts +1 -1
  4. package/dist/rolldown/config.mjs +2 -2
  5. package/dist/rolldown/experimental-index.d.mts +4 -4
  6. package/dist/rolldown/experimental-index.mjs +8 -8
  7. package/dist/rolldown/experimental-runtime-types.d.ts +25 -6
  8. package/dist/rolldown/experimental-runtime.d.ts +25 -6
  9. package/dist/rolldown/experimental-runtime.mjs +267 -255
  10. package/dist/rolldown/filter-index.d.mts +1 -1
  11. package/dist/rolldown/index.d.mts +3 -3
  12. package/dist/rolldown/index.mjs +4 -4
  13. package/dist/rolldown/parallel-plugin-worker.mjs +2 -2
  14. package/dist/rolldown/parallel-plugin.d.mts +1 -1
  15. package/dist/rolldown/parse-ast-index.d.mts +1 -1
  16. package/dist/rolldown/parse-ast-index.mjs +1 -1
  17. package/dist/rolldown/plugins-index.d.mts +3 -3
  18. package/dist/rolldown/plugins-index.mjs +2 -2
  19. package/dist/rolldown/shared/{binding-BY0qR5iS.mjs → binding-B4m_2rFW.mjs} +27 -28
  20. package/dist/rolldown/shared/{binding-BTa6BPQe.d.mts → binding-tzp6Hc_3.d.mts} +1 -1
  21. package/dist/rolldown/shared/{bindingify-input-options-B8JHmN6_.mjs → bindingify-input-options-YtcpaV3r.mjs} +196 -13
  22. package/dist/rolldown/shared/{constructors-DuOq7MqW.d.mts → constructors-CGQ9ItSV.d.mts} +2 -2
  23. package/dist/rolldown/shared/{constructors-xEvVj3lN.mjs → constructors-DDRbtWM1.mjs} +1 -1
  24. package/dist/rolldown/shared/{create-bundler-option-COco-7P6.mjs → create-bundler-option-CFtx335R.mjs} +17 -8
  25. package/dist/rolldown/shared/{define-config-C7HCoqY8.d.mts → define-config-kIZKjX8Q.d.mts} +72 -2
  26. package/dist/rolldown/shared/{error-C7pxws0W.mjs → error-Bj1xBdEY.mjs} +2 -1
  27. package/dist/rolldown/shared/{load-config-DkUBnDsI.mjs → load-config-CiFPv7UH.mjs} +2 -2
  28. package/dist/rolldown/shared/{normalize-string-or-regex-F14uvr6D.mjs → normalize-string-or-regex-xyy0kCQR.mjs} +1 -1
  29. package/dist/rolldown/shared/{parse-BWeE7Vr9.mjs → parse-Zii6QoPp.mjs} +2 -2
  30. package/dist/rolldown/shared/{resolve-tsconfig-DHwpIs5e.mjs → resolve-tsconfig-DRWFAQ3v.mjs} +2 -2
  31. package/dist/rolldown/shared/{rolldown-Bue0gNT5.mjs → rolldown-BCQsxZbq.mjs} +4 -4
  32. package/dist/rolldown/shared/{transform-DK_nCt9j.d.mts → transform-D4RDjIPI.d.mts} +1 -1
  33. package/dist/rolldown/shared/{watch-RXhXN1aG.mjs → watch-CXhrnblH.mjs} +4 -4
  34. package/dist/rolldown/utils-index.d.mts +3 -3
  35. package/dist/rolldown/utils-index.mjs +5 -5
  36. package/dist/tsdown/{build-JVmLFaZt-DRlLhpV3.js → build-JVmLFaZt-k6Y-YuG9.js} +8 -8
  37. package/dist/tsdown/{debug-CpC4hV25-C-OYr2iI.js → debug-CpC4hV25-D_60QWpz.js} +2 -2
  38. package/dist/tsdown/{detect-Bg-d8iUV-Du8LljhG.js → detect-Bg-d8iUV--_V5C4Db.js} +1 -1
  39. package/dist/tsdown/{dist-VDcV1Qyy.js → dist-DquISSoY.js} +8 -8
  40. package/dist/tsdown/index-types.d.ts +5 -5
  41. package/dist/tsdown/index.js +4 -4
  42. package/dist/tsdown/{require-BbBF8Ii0-BDaWJgzA.js → require-BbBF8Ii0-S6Y65RhW.js} +1 -1
  43. package/dist/tsdown/{resolver-DE0_sy8o-Bi3xbRxi.js → resolver-DE0_sy8o-Pz8aksn9.js} +2 -2
  44. package/dist/tsdown/run.js +3 -3
  45. package/dist/tsdown/{target-DgdLrXba-DpO9JXxB.js → target-DgdLrXba-BygiKCU8.js} +3 -3
  46. package/dist/tsdown/{tsc-BLb4pSBY.js → tsc-2xhsE0Bf.js} +4 -4
  47. package/dist/tsdown/tsdown-css.js +1 -1
  48. package/dist/tsdown/tsdown-exe.js +3 -3
  49. package/dist/tsdown/{version-CQ98ZBpL-D6GAHapk.js → version-CQ98ZBpL-CKvh-HCu.js} +1 -1
  50. package/dist/vite/client/bundledDevClient.mjs +75 -329
  51. package/dist/vite/client/client.mjs +74 -23
  52. package/dist/vite/node/chunks/node.js +883 -666
  53. package/dist/vite/node/index.d.ts +3 -1
  54. package/dist/vite/node/module-runner.js +16 -2
  55. package/package.json +38 -21
  56. package/dist/rolldown/experimental-default-runtime.mjs +0 -116
  57. package/dist/rolldown/experimental-runtime-base.mjs +0 -95
@@ -107,7 +107,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
107
107
  try {
108
108
  const binding = __require("@rolldown/binding-android-arm64");
109
109
  const bindingPackageVersion = __require("@rolldown/binding-android-arm64/package.json").version;
110
- if (bindingPackageVersion !== "1.2.11" && 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.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
110
+ if (bindingPackageVersion !== "1.2.12" && 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.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
111
111
  return binding;
112
112
  } catch (e) {
113
113
  loadErrors.push(e);
@@ -121,7 +121,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
121
121
  try {
122
122
  const binding = __require("@rolldown/binding-android-arm-eabi");
123
123
  const bindingPackageVersion = __require("@rolldown/binding-android-arm-eabi/package.json").version;
124
- if (bindingPackageVersion !== "1.2.11" && 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.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
124
+ if (bindingPackageVersion !== "1.2.12" && 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.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
125
125
  return binding;
126
126
  } catch (e) {
127
127
  loadErrors.push(e);
@@ -138,7 +138,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
138
138
  try {
139
139
  const binding = __require("@rolldown/binding-win32-x64-gnu");
140
140
  const bindingPackageVersion = __require("@rolldown/binding-win32-x64-gnu/package.json").version;
141
- if (bindingPackageVersion !== "1.2.11" && 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.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
141
+ if (bindingPackageVersion !== "1.2.12" && 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.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
142
142
  return binding;
143
143
  } catch (e) {
144
144
  loadErrors.push(e);
@@ -152,7 +152,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
152
152
  try {
153
153
  const binding = __require("@voidzero-dev/vite-plus-win32-x64-msvc");
154
154
  const bindingPackageVersion = __require("@voidzero-dev/vite-plus-win32-x64-msvc/package.json").version;
155
- if (bindingPackageVersion !== "1.0.0-rc.1" && 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-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
155
+ if (bindingPackageVersion !== "1.1.0" && 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.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
156
156
  return binding;
157
157
  } catch (e) {
158
158
  loadErrors.push(e);
@@ -167,7 +167,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
167
167
  try {
168
168
  const binding = __require("@rolldown/binding-win32-ia32-msvc");
169
169
  const bindingPackageVersion = __require("@rolldown/binding-win32-ia32-msvc/package.json").version;
170
- if (bindingPackageVersion !== "1.2.11" && 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.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
170
+ if (bindingPackageVersion !== "1.2.12" && 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.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
171
171
  return binding;
172
172
  } catch (e) {
173
173
  loadErrors.push(e);
@@ -181,7 +181,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
181
181
  try {
182
182
  const binding = __require("@voidzero-dev/vite-plus-win32-arm64-msvc");
183
183
  const bindingPackageVersion = __require("@voidzero-dev/vite-plus-win32-arm64-msvc/package.json").version;
184
- if (bindingPackageVersion !== "1.0.0-rc.1" && 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-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
184
+ if (bindingPackageVersion !== "1.1.0" && 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.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
185
185
  return binding;
186
186
  } catch (e) {
187
187
  loadErrors.push(e);
@@ -196,7 +196,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
196
196
  try {
197
197
  const binding = __require("@rolldown/binding-darwin-universal");
198
198
  const bindingPackageVersion = __require("@rolldown/binding-darwin-universal/package.json").version;
199
- if (bindingPackageVersion !== "1.2.11" && 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.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
199
+ if (bindingPackageVersion !== "1.2.12" && 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.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
200
200
  return binding;
201
201
  } catch (e) {
202
202
  loadErrors.push(e);
@@ -210,7 +210,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
210
210
  try {
211
211
  const binding = __require("@voidzero-dev/vite-plus-darwin-x64");
212
212
  const bindingPackageVersion = __require("@voidzero-dev/vite-plus-darwin-x64/package.json").version;
213
- if (bindingPackageVersion !== "1.0.0-rc.1" && 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-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
213
+ if (bindingPackageVersion !== "1.1.0" && 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.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
214
214
  return binding;
215
215
  } catch (e) {
216
216
  loadErrors.push(e);
@@ -224,7 +224,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
224
224
  try {
225
225
  const binding = __require("@voidzero-dev/vite-plus-darwin-arm64");
226
226
  const bindingPackageVersion = __require("@voidzero-dev/vite-plus-darwin-arm64/package.json").version;
227
- if (bindingPackageVersion !== "1.0.0-rc.1" && 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-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
227
+ if (bindingPackageVersion !== "1.1.0" && 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.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
228
228
  return binding;
229
229
  } catch (e) {
230
230
  loadErrors.push(e);
@@ -240,7 +240,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
240
240
  try {
241
241
  const binding = __require("@rolldown/binding-freebsd-x64");
242
242
  const bindingPackageVersion = __require("@rolldown/binding-freebsd-x64/package.json").version;
243
- if (bindingPackageVersion !== "1.2.11" && 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.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
243
+ if (bindingPackageVersion !== "1.2.12" && 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.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
244
244
  return binding;
245
245
  } catch (e) {
246
246
  loadErrors.push(e);
@@ -254,7 +254,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
254
254
  try {
255
255
  const binding = __require("@rolldown/binding-freebsd-arm64");
256
256
  const bindingPackageVersion = __require("@rolldown/binding-freebsd-arm64/package.json").version;
257
- if (bindingPackageVersion !== "1.2.11" && 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.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
257
+ if (bindingPackageVersion !== "1.2.12" && 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.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
258
258
  return binding;
259
259
  } catch (e) {
260
260
  loadErrors.push(e);
@@ -271,7 +271,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
271
271
  try {
272
272
  const binding = __require("@voidzero-dev/vite-plus-linux-x64-musl");
273
273
  const bindingPackageVersion = __require("@voidzero-dev/vite-plus-linux-x64-musl/package.json").version;
274
- if (bindingPackageVersion !== "1.0.0-rc.1" && 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-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
274
+ if (bindingPackageVersion !== "1.1.0" && 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.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
275
275
  return binding;
276
276
  } catch (e) {
277
277
  loadErrors.push(e);
@@ -285,7 +285,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
285
285
  try {
286
286
  const binding = __require("@voidzero-dev/vite-plus-linux-x64-gnu");
287
287
  const bindingPackageVersion = __require("@voidzero-dev/vite-plus-linux-x64-gnu/package.json").version;
288
- if (bindingPackageVersion !== "1.0.0-rc.1" && 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-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
288
+ if (bindingPackageVersion !== "1.1.0" && 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.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
289
289
  return binding;
290
290
  } catch (e) {
291
291
  loadErrors.push(e);
@@ -301,7 +301,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
301
301
  try {
302
302
  const binding = __require("@voidzero-dev/vite-plus-linux-arm64-musl");
303
303
  const bindingPackageVersion = __require("@voidzero-dev/vite-plus-linux-arm64-musl/package.json").version;
304
- if (bindingPackageVersion !== "1.0.0-rc.1" && 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-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
304
+ if (bindingPackageVersion !== "1.1.0" && 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.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
305
305
  return binding;
306
306
  } catch (e) {
307
307
  loadErrors.push(e);
@@ -315,7 +315,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
315
315
  try {
316
316
  const binding = __require("@voidzero-dev/vite-plus-linux-arm64-gnu");
317
317
  const bindingPackageVersion = __require("@voidzero-dev/vite-plus-linux-arm64-gnu/package.json").version;
318
- if (bindingPackageVersion !== "1.0.0-rc.1" && 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-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
318
+ if (bindingPackageVersion !== "1.1.0" && 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.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
319
319
  return binding;
320
320
  } catch (e) {
321
321
  loadErrors.push(e);
@@ -331,7 +331,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
331
331
  try {
332
332
  const binding = __require("@rolldown/binding-linux-arm-musleabihf");
333
333
  const bindingPackageVersion = __require("@rolldown/binding-linux-arm-musleabihf/package.json").version;
334
- if (bindingPackageVersion !== "1.2.11" && 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.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
334
+ if (bindingPackageVersion !== "1.2.12" && 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.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
335
335
  return binding;
336
336
  } catch (e) {
337
337
  loadErrors.push(e);
@@ -345,7 +345,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
345
345
  try {
346
346
  const binding = __require("@rolldown/binding-linux-arm-gnueabihf");
347
347
  const bindingPackageVersion = __require("@rolldown/binding-linux-arm-gnueabihf/package.json").version;
348
- if (bindingPackageVersion !== "1.2.11" && 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.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
348
+ if (bindingPackageVersion !== "1.2.12" && 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.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
349
349
  return binding;
350
350
  } catch (e) {
351
351
  loadErrors.push(e);
@@ -361,7 +361,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
361
361
  try {
362
362
  const binding = __require("@rolldown/binding-linux-loong64-musl");
363
363
  const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-musl/package.json").version;
364
- if (bindingPackageVersion !== "1.2.11" && 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.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
364
+ if (bindingPackageVersion !== "1.2.12" && 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.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
365
365
  return binding;
366
366
  } catch (e) {
367
367
  loadErrors.push(e);
@@ -375,7 +375,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
375
375
  try {
376
376
  const binding = __require("@rolldown/binding-linux-loong64-gnu");
377
377
  const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-gnu/package.json").version;
378
- if (bindingPackageVersion !== "1.2.11" && 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.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
378
+ if (bindingPackageVersion !== "1.2.12" && 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.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
379
379
  return binding;
380
380
  } catch (e) {
381
381
  loadErrors.push(e);
@@ -391,7 +391,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
391
391
  try {
392
392
  const binding = __require("@rolldown/binding-linux-riscv64-musl");
393
393
  const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-musl/package.json").version;
394
- if (bindingPackageVersion !== "1.2.11" && 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.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
394
+ if (bindingPackageVersion !== "1.2.12" && 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.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
395
395
  return binding;
396
396
  } catch (e) {
397
397
  loadErrors.push(e);
@@ -405,7 +405,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
405
405
  try {
406
406
  const binding = __require("@rolldown/binding-linux-riscv64-gnu");
407
407
  const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-gnu/package.json").version;
408
- if (bindingPackageVersion !== "1.2.11" && 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.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
408
+ if (bindingPackageVersion !== "1.2.12" && 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.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
409
409
  return binding;
410
410
  } catch (e) {
411
411
  loadErrors.push(e);
@@ -420,7 +420,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
420
420
  try {
421
421
  const binding = __require("@rolldown/binding-linux-ppc64-gnu");
422
422
  const bindingPackageVersion = __require("@rolldown/binding-linux-ppc64-gnu/package.json").version;
423
- if (bindingPackageVersion !== "1.2.11" && 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.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
423
+ if (bindingPackageVersion !== "1.2.12" && 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.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
424
424
  return binding;
425
425
  } catch (e) {
426
426
  loadErrors.push(e);
@@ -434,7 +434,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
434
434
  try {
435
435
  const binding = __require("@rolldown/binding-linux-s390x-gnu");
436
436
  const bindingPackageVersion = __require("@rolldown/binding-linux-s390x-gnu/package.json").version;
437
- if (bindingPackageVersion !== "1.2.11" && 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.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
437
+ if (bindingPackageVersion !== "1.2.12" && 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.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
438
438
  return binding;
439
439
  } catch (e) {
440
440
  loadErrors.push(e);
@@ -450,7 +450,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
450
450
  try {
451
451
  const binding = __require("@rolldown/binding-openharmony-arm64");
452
452
  const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm64/package.json").version;
453
- if (bindingPackageVersion !== "1.2.11" && 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.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
453
+ if (bindingPackageVersion !== "1.2.12" && 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.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
454
454
  return binding;
455
455
  } catch (e) {
456
456
  loadErrors.push(e);
@@ -464,7 +464,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
464
464
  try {
465
465
  const binding = __require("@rolldown/binding-openharmony-x64");
466
466
  const bindingPackageVersion = __require("@rolldown/binding-openharmony-x64/package.json").version;
467
- if (bindingPackageVersion !== "1.2.11" && 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.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
467
+ if (bindingPackageVersion !== "1.2.12" && 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.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
468
468
  return binding;
469
469
  } catch (e) {
470
470
  loadErrors.push(e);
@@ -478,7 +478,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
478
478
  try {
479
479
  const binding = __require("@rolldown/binding-openharmony-arm");
480
480
  const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm/package.json").version;
481
- if (bindingPackageVersion !== "1.2.11" && 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.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
481
+ if (bindingPackageVersion !== "1.2.12" && 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.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
482
482
  return binding;
483
483
  } catch (e) {
484
484
  loadErrors.push(e);
@@ -569,7 +569,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
569
569
  if (!candidateFailed) {
570
570
  if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
571
571
  const bindingPackageVersion = __require("@rolldown/binding-wasm32-wasi/package.json").version;
572
- if (bindingPackageVersion !== "1.2.11") throw new Error(`WASI binding package version mismatch, expected 1.2.11 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
572
+ if (bindingPackageVersion !== "1.2.12") throw new Error(`WASI binding package version mismatch, expected 1.2.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
573
573
  }
574
574
  wasiBinding = __require("@rolldown/binding-wasm32-wasi");
575
575
  nativeBinding = wasiBinding;
@@ -675,7 +675,6 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
675
675
  module.exports.ParallelJsPluginRegistry = nativeBinding.ParallelJsPluginRegistry;
676
676
  module.exports.TraceSubscriberGuard = nativeBinding.TraceSubscriberGuard;
677
677
  module.exports.TsconfigCache = nativeBinding.TsconfigCache;
678
- module.exports.__internalForcePanic = nativeBinding.__internalForcePanic;
679
678
  module.exports.BindingAttachDebugInfo = nativeBinding.BindingAttachDebugInfo;
680
679
  module.exports.BindingBuiltinPluginName = nativeBinding.BindingBuiltinPluginName;
681
680
  module.exports.BindingChunkModuleOrderBy = nativeBinding.BindingChunkModuleOrderBy;
@@ -787,7 +787,7 @@ interface SourceMap {
787
787
  sources: Array<string>;
788
788
  sourcesContent?: Array<string>;
789
789
  version: number;
790
- x_google_ignoreList?: Array<number>;
790
+ ignoreList?: Array<number>;
791
791
  }
792
792
  interface CompilerAssumptions {
793
793
  ignoreFunctionLength?: boolean;
@@ -1,17 +1,197 @@
1
- import { n as __toESM, t as require_binding } from "./binding-BY0qR5iS.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-B4m_2rFW.mjs";
2
2
  import { i as logFailedValidation, n as error, o as logInvalidLogPosition, r as logCycleLoading, t as augmentCodeLocation, u as logPluginError } from "./logs-D6uA606S.mjs";
3
- import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-F14uvr6D.mjs";
3
+ import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-xyy0kCQR.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-C7pxws0W.mjs";
5
+ import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-Bj1xBdEY.mjs";
6
6
  import { parseAst } from "../parse-ast-index.mjs";
7
- import fs from "node:fs";
8
7
  import path from "node:path";
9
8
  import * as filter from "@voidzero-dev/vite-plus-core/rolldown/pluginutils";
10
9
  import fsp from "node:fs/promises";
11
- import { fileURLToPath } from "node:url";
12
10
  //#region package.json
13
- var version = "1.2.11";
14
- var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
11
+ var version = "1.2.12";
12
+ var package_default = {
13
+ name: "rolldown",
14
+ version,
15
+ description: "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
16
+ keywords: [
17
+ "bundler",
18
+ "esbuild",
19
+ "parcel",
20
+ "rolldown",
21
+ "rollup",
22
+ "webpack"
23
+ ],
24
+ homepage: "https://rolldown.rs/",
25
+ bugs: { "url": "https://github.com/rolldown/rolldown/issues" },
26
+ license: "MIT",
27
+ repository: {
28
+ "type": "git",
29
+ "url": "git+https://github.com/rolldown/rolldown.git",
30
+ "directory": "packages/rolldown"
31
+ },
32
+ bin: { "rolldown": "./bin/cli.mjs" },
33
+ files: [
34
+ "bin",
35
+ "cli",
36
+ "dist",
37
+ "LICENSE",
38
+ "THIRD-PARTY-LICENSE",
39
+ "!dist/*.node"
40
+ ],
41
+ type: "module",
42
+ main: "./dist/index.mjs",
43
+ module: "./dist/index.mjs",
44
+ types: "./dist/index.d.mts",
45
+ imports: { "#parallel-plugin-worker": "./dist/parallel-plugin-worker.mjs" },
46
+ exports: {
47
+ ".": {
48
+ "dev": "./src/index.ts",
49
+ "default": "./dist/index.mjs"
50
+ },
51
+ "./config": {
52
+ "dev": "./src/config.ts",
53
+ "default": "./dist/config.mjs"
54
+ },
55
+ "./experimental": {
56
+ "dev": "./src/experimental-index.ts",
57
+ "default": "./dist/experimental-index.mjs"
58
+ },
59
+ "./experimental/runtime-types": { "types": "./dist/experimental-runtime-types.d.ts" },
60
+ "./experimental/runtime": {
61
+ "types": "./dist/experimental-runtime.d.ts",
62
+ "default": "./dist/experimental-runtime.mjs"
63
+ },
64
+ "./filter": {
65
+ "dev": "./src/filter-index.ts",
66
+ "default": "./dist/filter-index.mjs"
67
+ },
68
+ "./getLogFilter": {
69
+ "dev": "./src/get-log-filter.ts",
70
+ "default": "./dist/get-log-filter.mjs"
71
+ },
72
+ "./parallelPlugin": {
73
+ "dev": "./src/parallel-plugin.ts",
74
+ "default": "./dist/parallel-plugin.mjs"
75
+ },
76
+ "./parseAst": {
77
+ "dev": "./src/parse-ast-index.ts",
78
+ "default": "./dist/parse-ast-index.mjs"
79
+ },
80
+ "./package.json": "./package.json",
81
+ "./plugins": {
82
+ "dev": "./src/plugins-index.ts",
83
+ "default": "./dist/plugins-index.mjs"
84
+ },
85
+ "./utils": {
86
+ "dev": "./src/utils-index.ts",
87
+ "default": "./dist/utils-index.mjs"
88
+ }
89
+ },
90
+ publishConfig: {
91
+ "exports": {
92
+ ".": "./dist/index.mjs",
93
+ "./config": "./dist/config.mjs",
94
+ "./experimental": "./dist/experimental-index.mjs",
95
+ "./experimental/runtime-types": { "types": "./dist/experimental-runtime-types.d.ts" },
96
+ "./experimental/runtime": {
97
+ "types": "./dist/experimental-runtime.d.ts",
98
+ "default": "./dist/experimental-runtime.mjs"
99
+ },
100
+ "./filter": "./dist/filter-index.mjs",
101
+ "./getLogFilter": "./dist/get-log-filter.mjs",
102
+ "./parallelPlugin": "./dist/parallel-plugin.mjs",
103
+ "./parseAst": "./dist/parse-ast-index.mjs",
104
+ "./package.json": "./package.json",
105
+ "./plugins": "./dist/plugins-index.mjs",
106
+ "./utils": "./dist/utils-index.mjs"
107
+ },
108
+ "access": "public",
109
+ "registry": "https://registry.npmjs.org/"
110
+ },
111
+ scripts: {
112
+ "# Scrips for binding #": "_",
113
+ "artifacts": "napi artifacts --cwd ./src --package-json-path ../package.json -o=../artifacts --npm-dir ../npm",
114
+ "build-binding": "oxnode ./build-binding.ts",
115
+ "build-binding:release": "pnpm build-binding --release",
116
+ "build-binding:profile": "pnpm build-binding --profile profile --features chrome-tracing",
117
+ "build-binding:wasi": "pnpm build-binding --target wasm32-wasip1-threads",
118
+ "build-binding:wasi:release": "pnpm build-binding --profile release-wasi --target wasm32-wasip1-threads",
119
+ "# Scrips for node #": "_",
120
+ "build-node": "node --enable-source-maps --import @oxc-node/core/register -C dev ./build.ts",
121
+ "build-types-check": "tsc -p ./tsconfig.check.json",
122
+ "build-js-glue": "pnpm run --sequential '/^build-(node|types-check)$/'",
123
+ "build-native:debug": "pnpm run --sequential '/^build-(binding|js-glue)$/'",
124
+ "build-native:release": "pnpm run --sequential '/^build-(binding:release|js-glue)$/'",
125
+ "build-native:profile": "pnpm run build-binding:profile && pnpm run build-js-glue",
126
+ "build-native:memory-profile": "pnpm run build-binding:profile --features default_global_allocator && pnpm run build-js-glue",
127
+ "build-wasi:debug": "TARGET='rolldown-wasi' pnpm run --sequential '/^build-(binding|binding:wasi|node)$/'",
128
+ "build-wasi:release": "TARGET='rolldown-wasi' pnpm run --sequential '/^build-(binding|binding:wasi:release|node)$/'",
129
+ "build-browser-pkg:debug": "TARGET='browser' pnpm run --sequential '/^build-(binding:wasi|node)$/'",
130
+ "build-browser-pkg:release": "TARGET='browser' pnpm run --sequential '/^build-(binding:wasi:release|node)$/'",
131
+ "# Scrips for docs #": "_",
132
+ "prepublishOnly": "napi pre-publish -t npm --no-gh-release ${NAPI_DRY_RUN:+--dry-run} ${NAPI_SKIP_OPTIONAL_PUBLISH:+--skip-optional-publish}",
133
+ "publint": "publint ."
134
+ },
135
+ dependencies: {
136
+ "@oxc-project/types": "catalog:",
137
+ "@rolldown/pluginutils": "catalog:"
138
+ },
139
+ devDependencies: {
140
+ "@emnapi/core": "catalog:",
141
+ "@emnapi/runtime": "catalog:",
142
+ "@napi-rs/cli": "catalog:",
143
+ "@napi-rs/wasm-runtime": "catalog:",
144
+ "@oxc-node/cli": "catalog:",
145
+ "cac": "catalog:",
146
+ "consola": "catalog:",
147
+ "emnapi": "catalog:",
148
+ "execa": "catalog:",
149
+ "fresh-import": "catalog:",
150
+ "glob": "catalog:",
151
+ "oxc-parser": "catalog:",
152
+ "pathe": "catalog:",
153
+ "remeda": "catalog:",
154
+ "rolldown": "workspace:*",
155
+ "rolldown-plugin-dts": "catalog:",
156
+ "rollup": "catalog:",
157
+ "signal-exit": "catalog:",
158
+ "source-map": "catalog:",
159
+ "typescript": "catalog:",
160
+ "valibot": "catalog:"
161
+ },
162
+ napi: {
163
+ "binaryName": "rolldown-binding",
164
+ "dtsHeader": "type MaybePromise<T> = T | Promise<T>\ntype Nullable<T> = T | null | undefined\ntype VoidNullable<T = void> = T | null | undefined | void\nexport type BindingStringOrRegex = string | RegExp\nexport type BindingResult<T> = { errors: BindingError[], isBindingErrors: boolean } | T\n\n",
165
+ "packageName": "@rolldown/binding",
166
+ "targets": [
167
+ "aarch64-apple-darwin",
168
+ "aarch64-linux-android",
169
+ "aarch64-pc-windows-msvc",
170
+ "aarch64-unknown-linux-gnu",
171
+ "aarch64-unknown-linux-musl",
172
+ "aarch64-unknown-linux-ohos",
173
+ "armv7-linux-androideabi",
174
+ "armv7-unknown-linux-gnueabihf",
175
+ "powerpc64le-unknown-linux-gnu",
176
+ "s390x-unknown-linux-gnu",
177
+ "wasm32-wasip1-threads",
178
+ "x86_64-apple-darwin",
179
+ "x86_64-pc-windows-msvc",
180
+ "x86_64-unknown-freebsd",
181
+ "x86_64-unknown-linux-gnu",
182
+ "x86_64-unknown-linux-musl"
183
+ ],
184
+ "wasm": {
185
+ "initialMemory": 16384,
186
+ "browser": {
187
+ "fs": true,
188
+ "asyncInit": true,
189
+ "errorEvent": true
190
+ }
191
+ }
192
+ },
193
+ engines: { "node": "^20.19.0 || >=22.12.0" }
194
+ };
15
195
  //#endregion
16
196
  //#region src/constants/version.ts
17
197
  /**
@@ -236,7 +416,7 @@ function bindingAssetSource(source) {
236
416
  return { inner: source };
237
417
  }
238
418
  //#endregion
239
- //#region \0@oxc-project+runtime@0.151.0/helpers/esm/decorate.js
419
+ //#region \0@oxc-project+runtime@0.152.0/helpers/esm/decorate.js
240
420
  function __decorate(decorators, target, key, desc) {
241
421
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
242
422
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -433,6 +613,12 @@ function transformToRollupSourceMap(map) {
433
613
  return `data:application/json;charset=utf-8;base64,${Buffer.from(obj.toString(), "utf-8").toString("base64")}`;
434
614
  }
435
615
  };
616
+ Object.defineProperty(obj, "x_google_ignoreList", {
617
+ get: () => obj.ignoreList,
618
+ set: (value) => {
619
+ obj.ignoreList = value;
620
+ }
621
+ });
436
622
  return obj;
437
623
  }
438
624
  function transformToRollupOutputChunk(bindingChunk) {
@@ -2168,10 +2354,7 @@ function normalizeTransformOptions(inputOptions) {
2168
2354
  //#endregion
2169
2355
  //#region src/utils/default-dev-runtime.ts
2170
2356
  function getDefaultDevRuntime(host = "localhost", port = 3e3) {
2171
- const runtimeEntry = fs.readFileSync(fileURLToPath(import.meta.resolve("#runtime")), "utf8");
2172
- const runtimeHelperImportEnd = runtimeEntry.indexOf("\n");
2173
- if (!runtimeEntry.startsWith("import ") || runtimeHelperImportEnd === -1) throw new Error("Expected the standalone runtime to start with a helper import");
2174
- return `${runtimeEntry.slice(runtimeHelperImportEnd + 1)}\n${fs.readFileSync(fileURLToPath(import.meta.resolve("#default-runtime")), "utf8").replaceAll("$ADDR", `${host}:${port}`)}`;
2357
+ return "// @ts-check\n\nclass Module {\n /**\n * @type {{ exports: any }}\n */\n exportsHolder = { exports: null };\n /**\n * @type {string}\n */\n id;\n\n /**\n * @param {string} id\n */\n constructor(id) {\n this.id = id;\n }\n\n get exports() {\n return this.exportsHolder.exports;\n }\n}\n\n/**\n * Compiler-emitted module-graph delta — topology (static + dynamic edges).\n * `ids[0, localCount)` are the modules this payload carries; `ids[localCount, …)` are foreign edge targets.\n * `edges[i]` / `dynamicEdges[i]` are the static / dynamic-`import()` out-edges of `ids[i]`.\n * `bindings[i][j]` are the export names `ids[i]` imports through `edges[i][j]`. `bindings` holds\n * only some rows; a missing row, or a missing or `null` entry, means the whole namespace.\n * `dynamicEdges` also holds only some rows; a missing row means no dynamic edges.\n * @typedef {{ ids: string[], localCount: number, edges: number[][], bindings?: Record<number, (string[] | null)[]>, dynamicEdges?: Record<number, number[]> }} ModuleGraphDelta\n * @typedef {{ createModuleHotContext(moduleId: string): any, onModuleCacheRemoval(moduleId: string): void }} DevRuntimeHooks\n */\n\nexport class MissingFactoryError extends Error {\n /**\n * @param {string} id\n */\n constructor(id) {\n super(`No factory registered for module ${id}`);\n this.id = id;\n }\n}\n\nexport class DevRuntime {\n /**\n * Client ID generated at runtime initialization, used for lazy compilation requests.\n * @type {string}\n */\n clientId;\n\n /**\n * @param {string} clientId\n */\n constructor(clientId) {\n this.clientId = clientId;\n }\n\n /**\n * Static import edges from `registerGraph` — entries persist across `removeModuleCache`\n * and change only by replacement from a newer payload (last write wins).\n * `bindings` is the payload row as sent; `getImportedBindings` resolves a missing entry.\n * @type {Map<string, { edges: string[], bindings: (string[] | null)[] | undefined }>}\n */\n staticImports = new Map();\n /**\n * Reverse index over the static imports.\n * @type {Map<string, Set<string>>}\n */\n importers = new Map();\n /**\n * Dynamic `import()` edges from `registerGraph`, keyed by importer — mirror of\n * `staticImports` for the dynamic reverse index.\n * @type {Map<string, { edges: string[] }>}\n */\n dynamicImports = new Map();\n /**\n * Reverse index over the dynamic imports.\n * @type {Map<string, Set<string>>}\n */\n dynamicImporters = new Map();\n /**\n * The module cache. Membership means \"this module's side effects ran in this tab\" —\n * registration is emitted ahead of every module body, and nothing un-registers on\n * unwind, so a factory that throws mid-body stays registered. A `Map` rather than a\n * plain object: HMR eviction deletes entries, and a `delete` on an object drops V8\n * into dictionary mode, taxing every later lookup on the hottest read path.\n * @type {Map<string, Module>}\n */\n moduleCache = new Map();\n /**\n * Re-runnable factories from HMR patches and lazy chunks. The initial bundle stays\n * scope-hoisted and contributes none.\n * @type {Map<string, (id: string) => void>}\n */\n factories = new Map();\n /**\n * Installed by the dev client at boot. The runtime is a store + executor and makes\n * no HMR decisions; accepting, disposing, and reloading live behind these hooks.\n * @type {DevRuntimeHooks | null}\n */\n hooks = null;\n\n /**\n * @param {ModuleGraphDelta} delta\n */\n registerGraph(delta) {\n for (let i = 0; i < delta.localCount; i++) {\n const id = delta.ids[i];\n const edges = delta.edges[i].map((j) => delta.ids[j]);\n for (const target of this.staticImports.get(id)?.edges ?? []) {\n this.importers.get(target)?.delete(id);\n }\n for (const target of edges) {\n let importerSet = this.importers.get(target);\n if (!importerSet) {\n importerSet = new Set();\n this.importers.set(target, importerSet);\n }\n importerSet.add(id);\n }\n this.staticImports.set(id, { edges, bindings: delta.bindings?.[i] });\n\n // Dynamic `import()` edges are maintained in a parallel reverse index with the same\n // last-write-wins bookkeeping; `getImporters` unions the two.\n const dynamicEdges = (delta.dynamicEdges?.[i] ?? []).map((j) => delta.ids[j]);\n for (const target of this.dynamicImports.get(id)?.edges ?? []) {\n this.dynamicImporters.get(target)?.delete(id);\n }\n for (const target of dynamicEdges) {\n let importerSet = this.dynamicImporters.get(target);\n if (!importerSet) {\n importerSet = new Set();\n this.dynamicImporters.set(target, importerSet);\n }\n importerSet.add(id);\n }\n this.dynamicImports.set(id, { edges: dynamicEdges });\n }\n }\n\n /**\n * @param {string} id\n * @param {(id: string) => void} fn\n */\n registerFactory(id, fn) {\n this.factories.set(id, fn);\n }\n\n /**\n * @param {string} id\n * @param {{ exports: any }} [exportsHolder]\n */\n registerModule(id, exportsHolder = { exports: {} }) {\n const module = new Module(id);\n module.exportsHolder = exportsHolder;\n this.moduleCache.set(id, module);\n }\n\n /**\n * @param {string} id\n * @returns {string[]}\n */\n getImporters(id) {\n // Static ∪ dynamic importers — the boundary walk treats both kinds the same (parity\n // with Vite `node.importers` / webpack `module.parents`). Deduped so a module that\n // imports `id` both statically and via `import()` appears once.\n const dynamic = this.dynamicImporters.get(id);\n if (!dynamic || dynamic.size === 0) {\n return [...(this.importers.get(id) ?? [])];\n }\n return [...new Set([...(this.importers.get(id) ?? []), ...dynamic])];\n }\n\n /**\n * `\"*\"` means the whole namespace, an empty list a side-effect-only import, `undefined` no edge.\n * @param {string} importer\n * @param {string} id\n * @returns {string[] | undefined}\n */\n getImportedBindings(importer, id) {\n const record = this.staticImports.get(importer);\n const j = record ? record.edges.indexOf(id) : -1;\n const names = j === -1 ? undefined : (record?.bindings?.[j] ?? ['*']);\n if (!this.dynamicImports.get(importer)?.edges.includes(id)) {\n return names;\n }\n if (!names) return ['*'];\n return names.includes('*') ? names : [...names, '*'];\n }\n\n /**\n * @param {string} id\n */\n isExecuted(id) {\n return this.moduleCache.has(id);\n }\n\n /**\n * @param {string} id\n */\n hasFactory(id) {\n return this.factories.has(id);\n }\n\n /**\n * Module-cache delete only — static imports and factories persist. Removal is what\n * re-arms a cache-gated factory for `initModule`.\n * @param {string} id\n */\n removeModuleCache(id) {\n this.moduleCache.delete(id);\n this.hooks?.onModuleCacheRemoval(id);\n }\n\n /**\n * The one re-execution gate: registered → return the live exports; otherwise run the\n * mapped factory (which registers itself first, then runs the body).\n * @param {string} id\n */\n initModule(id) {\n if (this.moduleCache.has(id)) {\n return this.loadExports(id);\n }\n const factory = this.factories.get(id);\n if (!factory) {\n throw new MissingFactoryError(id);\n }\n factory(id);\n return this.loadExports(id);\n }\n\n /**\n * @param {string} id\n */\n loadExports(id) {\n const module = this.moduleCache.get(id);\n if (module) {\n return module.exportsHolder.exports;\n } else {\n console.warn(`Module ${id} not found`);\n return {};\n }\n }\n\n /**\n * @param {string} moduleId\n */\n createModuleHotContext(moduleId) {\n if (this.hooks) {\n return this.hooks.createModuleHotContext(moduleId);\n }\n throw new Error('createModuleHotContext requires installed hooks or an override');\n }\n\n /** @internal */\n // @ts-expect-error The variable will be injected at build time.\n __toESM = __toESM;\n /** @internal */\n // @ts-expect-error The variable will be injected at build time.\n __toCommonJS = __toCommonJS;\n /** @internal */\n // @ts-expect-error The variable will be injected at build time.\n __exportAll = __exportAll;\n /**\n * @param {boolean} [isNodeMode]\n * @returns {(mod: any) => any}\n * @internal\n */\n // @ts-expect-error The variable will be injected at build time.\n __toDynamicImportESM = (isNodeMode) => (mod) => __toESM(mod.default, isNodeMode);\n /** @internal */\n // @ts-expect-error The variable will be injected at build time.\n __reExport = __reExport;\n}\n\n// @ts-check\n\n/** @import { DevRuntime } from './runtime-extra-dev-common.js' */\n\n/** @type {typeof DevRuntime} */\n// @ts-expect-error -- there's no way to declare a variable by JSDoc\nvar BaseDevRuntime = DevRuntime;\n\nclass ModuleHotContext {\n /**\n * @type {{ deps: [string], fn: (moduleExports: Record<string, any>[]) => void }[]}\n */\n acceptCallbacks = [];\n /**\n * @param {string} moduleId\n * @param {InstanceType<BaseDevRuntime>} devRuntime\n */\n constructor(moduleId, devRuntime) {\n this.moduleId = moduleId;\n this.devRuntime = devRuntime;\n }\n\n /**\n * @overload\n * @param {(mod: Record<string, any>) => void} cb\n * @returns {void}\n */\n /**\n * @param {...any} args\n * @returns {void}\n */\n accept(...args) {\n if (args.length === 1) {\n const [cb] = /** @type {[(mod: Record<string, any>) => void]} */ (args);\n const acceptingPath = this.moduleId;\n this.acceptCallbacks.push({\n deps: [acceptingPath],\n fn: cb,\n });\n } else if (args.length === 0) {}\n else {\n throw new Error('Invalid arguments for `import.meta.hot.accept`');\n }\n }\n\n invalidate() {\n socket.send(JSON.stringify({\n type: 'hmr:invalidate',\n moduleId: this.moduleId,\n }));\n }\n}\n\nclass DefaultDevRuntime extends BaseDevRuntime {\n /**\n * @type {Map<string, ModuleHotContext>}\n */\n moduleHotContexts = new Map();\n /**\n * @override\n * @param {string} moduleId\n */\n createModuleHotContext(moduleId) {\n const hotContext = new ModuleHotContext(moduleId, this);\n this.moduleHotContexts.set(moduleId, hotContext);\n return hotContext;\n }\n}\n\n/** @param {string} url */\nfunction loadScript(url) {\n var script = document.createElement('script');\n script.src = url;\n script.type = 'module';\n script.onerror = function() {\n console.error('Failed to load script: ' + url);\n };\n document.body.appendChild(script);\n}\n\nconsole.debug('HMR runtime loaded', '$ADDR');\n// Generate client ID immediately at runtime initialization\n// This ensures the client ID is available before any lazy imports\nconst clientId = crypto.randomUUID();\nconst addr = new URL('ws://$ADDR');\naddr.searchParams.set('clientId', clientId);\n\nconst socket = new WebSocket(addr);\n\n(/** @type {any} */ (globalThis)).__rolldown_runtime__ ??=\n new DefaultDevRuntime(clientId);\n\n/** @param {MessageEvent} event */\nsocket.onmessage = function(event) {\n const data = JSON.parse(event.data);\n console.debug('Received message:', data);\n if (data.type === 'connected') {\n // Server acknowledged the connection\n console.debug('[hmr]: Connection established with server');\n } else if (data.type === 'hmr:update') {\n if (typeof process === 'object') {\n import(data.path);\n console.debug(`[hmr]: Importing HMR patch: ${data.path}`);\n } else {\n console.debug(`[hmr]: Loading HMR patch: ${data.path}`);\n loadScript(data.url);\n }\n } else if (data.type === 'hmr:reload') {\n console.log('[hmr]: Full reload required, reloading page');\n if (typeof location !== 'undefined') {\n location.reload();\n } else {\n console.log('[hmr]: location is undefined, cannot reload page');\n }\n }\n};\n".replaceAll("$ADDR", `${host}:${port}`);
2175
2358
  }
2176
2359
  //#endregion
2177
2360
  //#region src/utils/bindingify-input-options.ts
@@ -2416,4 +2599,4 @@ function bindingifyPreserveEntrySignatures(preserveEntrySignatures) {
2416
2599
  };
2417
2600
  }
2418
2601
  //#endregion
2419
- export { LOG_LEVEL_WARN as C, version as D, description as E, LOG_LEVEL_INFO as S, VERSION as T, getParallelPluginInfo as _, measureIfFunction as a, LOG_LEVEL_DEBUG as b, PluginContextData as c, transformRenderedChunk as d, __decorate as f, MinimalPluginContextImpl as g, PlainObjectLike as h, measureHookCost as i, transformModuleInfo as l, lazyProp as m, bindingifyPlugin as n, pluginTimingsRecorderFor as o, transformAssetSource as p, OUTPUT_OPTIONS_OWNER as r, RolldownMagicString as s, bindingifyInputOptions as t, transformToRollupOutput as u, normalizeHook as v, logLevelPriority as w, LOG_LEVEL_ERROR as x, normalizeLog as y };
2602
+ export { LOG_LEVEL_WARN as C, version as D, package_default as E, LOG_LEVEL_INFO as S, VERSION as T, getParallelPluginInfo as _, measureIfFunction as a, LOG_LEVEL_DEBUG as b, PluginContextData as c, transformRenderedChunk as d, __decorate as f, MinimalPluginContextImpl as g, PlainObjectLike as h, measureHookCost as i, transformModuleInfo as l, lazyProp as m, bindingifyPlugin as n, pluginTimingsRecorderFor as o, transformAssetSource as p, OUTPUT_OPTIONS_OWNER as r, RolldownMagicString as s, bindingifyInputOptions as t, transformToRollupOutput as u, normalizeHook as v, logLevelPriority as w, LOG_LEVEL_ERROR as x, normalizeLog as y };
@@ -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-BTa6BPQe.mjs";
2
- import { I as BuiltinPlugin, Kt as StringOrRegExp } from "./define-config-C7HCoqY8.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-tzp6Hc_3.mjs";
2
+ import { I as BuiltinPlugin, qt as StringOrRegExp } from "./define-config-kIZKjX8Q.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-F14uvr6D.mjs";
1
+ import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-xyy0kCQR.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);
@@ -1,8 +1,8 @@
1
- import { n as __toESM, t as require_binding } from "./binding-BY0qR5iS.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-B4m_2rFW.mjs";
2
2
  import { a as logInputHookInOutputPlugin, n as error, s as logMissingCodeSplittingGroupDebugName } from "./logs-D6uA606S.mjs";
3
- import { n as BuiltinPlugin } from "./normalize-string-or-regex-F14uvr6D.mjs";
4
- import { C as LOG_LEVEL_WARN, T as VERSION, _ as getParallelPluginInfo, a as measureIfFunction, b as LOG_LEVEL_DEBUG, c as PluginContextData, d as transformRenderedChunk, g as MinimalPluginContextImpl, i as measureHookCost, l as transformModuleInfo, o as pluginTimingsRecorderFor, p as transformAssetSource, r as OUTPUT_OPTIONS_OWNER, t as bindingifyInputOptions, v as normalizeHook, w as logLevelPriority, y as normalizeLog } from "./bindingify-input-options-B8JHmN6_.mjs";
5
- import { a as unimplemented } from "./misc-DOSKtd97.mjs";
3
+ import { n as BuiltinPlugin } from "./normalize-string-or-regex-xyy0kCQR.mjs";
4
+ import { C as LOG_LEVEL_WARN, T as VERSION, _ as getParallelPluginInfo, a as measureIfFunction, b as LOG_LEVEL_DEBUG, c as PluginContextData, d as transformRenderedChunk, g as MinimalPluginContextImpl, i as measureHookCost, l as transformModuleInfo, o as pluginTimingsRecorderFor, p as transformAssetSource, r as OUTPUT_OPTIONS_OWNER, t as bindingifyInputOptions, v as normalizeHook, w as logLevelPriority, y as normalizeLog } from "./bindingify-input-options-YtcpaV3r.mjs";
5
+ import { a as unimplemented, t as arraify } from "./misc-DOSKtd97.mjs";
6
6
  import { Worker } from "node:worker_threads";
7
7
  import path, { sep } from "node:path";
8
8
  import { formatWithOptions, styleText } from "node:util";
@@ -1660,6 +1660,7 @@ const AdvancedChunksTestFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @_
1660
1660
  /* @__PURE__ */ void_(),
1661
1661
  /* @__PURE__ */ undefined_()
1662
1662
  ])));
1663
+ const InlineCommonChunksExcludeItemSchema = /* @__PURE__ */ union([StringOrRegExpSchema, AdvancedChunksTestFunctionSchema]);
1663
1664
  const AdvancedChunksSchema = /* @__PURE__ */ strictObject({
1664
1665
  includeDependenciesRecursively: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1665
1666
  minSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
@@ -1681,7 +1682,11 @@ const AdvancedChunksSchema = /* @__PURE__ */ strictObject({
1681
1682
  entriesAwareMergeThreshold: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
1682
1683
  includeDependenciesRecursively: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1683
1684
  tags: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string()))
1684
- })))
1685
+ }))),
1686
+ experimentalInlineCommonChunks: /* @__PURE__ */ optional(/* @__PURE__ */ strictObject({
1687
+ maxSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
1688
+ exclude: /* @__PURE__ */ optional(/* @__PURE__ */ union([InlineCommonChunksExcludeItemSchema, /* @__PURE__ */ array(InlineCommonChunksExcludeItemSchema)]))
1689
+ }))
1685
1690
  });
1686
1691
  const GeneratedCodeOptionsSchema = /* @__PURE__ */ strictObject({
1687
1692
  symbols: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to use Symbol.toStringTag for namespace objects")),
@@ -3026,11 +3031,15 @@ function bindingifyCodeSplitting(codeSplitting, inlineDynamicImportsOption, adva
3026
3031
  }
3027
3032
  let advancedChunksResult;
3028
3033
  if (effectiveChunksOption != null) {
3029
- const { groups, ...restOptions } = effectiveChunksOption;
3034
+ const { groups, experimentalInlineCommonChunks, ...restOptions } = effectiveChunksOption;
3030
3035
  let chunkingContext;
3031
3036
  const getChunkingContext = (bindingContext) => chunkingContext ??= new ChunkingContextImpl(bindingContext, pluginContextData);
3032
3037
  advancedChunksResult = {
3033
3038
  ...restOptions,
3039
+ experimentalInlineCommonChunks: experimentalInlineCommonChunks == null ? void 0 : {
3040
+ maxSize: experimentalInlineCommonChunks.maxSize,
3041
+ exclude: experimentalInlineCommonChunks.exclude == null ? void 0 : arraify(experimentalInlineCommonChunks.exclude).map((matcher) => typeof matcher === "function" ? batchTest(measureHookCost(timings, OUTPUT_OPTIONS_OWNER, "codeSplitting.experimentalInlineCommonChunks.exclude", matcher), "output.codeSplitting.experimentalInlineCommonChunks.exclude") : matcher)
3042
+ },
3034
3043
  internalInvalidateModuleInfoCache: () => {
3035
3044
  chunkingContext?.clearModuleInfoCache();
3036
3045
  chunkingContext = void 0;
@@ -3081,12 +3090,12 @@ function bindingifyCodeSplitting(codeSplitting, inlineDynamicImportsOption, adva
3081
3090
  *
3082
3091
  * The result is a `Uint8Array`, which crosses as a buffer instead of one tagged value per id.
3083
3092
  */
3084
- function batchTest(test) {
3093
+ function batchTest(test, optionName = "output.codeSplitting.groups[].test") {
3085
3094
  return (ids) => {
3086
3095
  const results = new Uint8Array(ids.length);
3087
3096
  for (let index = 0; index < ids.length; index++) {
3088
3097
  const result = test(ids[index]);
3089
- if (result != null && typeof result !== "boolean") throw new TypeError(`\`output.codeSplitting.groups[].test\` returned ${typeof result} for module "${ids[index]}", but expected a boolean, null or undefined.`);
3098
+ if (result != null && typeof result !== "boolean") throw new TypeError(`\`${optionName}\` returned ${typeof result} for module "${ids[index]}", but expected a boolean, null or undefined.`);
3090
3099
  results[index] = result === true ? 1 : 0;
3091
3100
  }
3092
3101
  return results;