@voidzero-dev/vite-plus-core 1.1.0 → 1.2.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 (64) hide show
  1. package/LICENSE +7 -1
  2. package/dist/rolldown/cli.mjs +30 -27
  3. package/dist/rolldown/config.d.mts +3 -3
  4. package/dist/rolldown/config.mjs +2 -2
  5. package/dist/rolldown/experimental-index.d.mts +27 -27
  6. package/dist/rolldown/experimental-index.mjs +8 -8
  7. package/dist/rolldown/experimental-runtime-types.d.ts +15 -2
  8. package/dist/rolldown/experimental-runtime.d.ts +15 -2
  9. package/dist/rolldown/experimental-runtime.mjs +19 -2
  10. package/dist/rolldown/filter-index.d.mts +1 -1
  11. package/dist/rolldown/index.d.mts +1 -1
  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 +3 -3
  15. package/dist/rolldown/parse-ast-index.d.mts +5 -6
  16. package/dist/rolldown/parse-ast-index.mjs +1 -1
  17. package/dist/rolldown/plugins-index.d.mts +4 -4
  18. package/dist/rolldown/plugins-index.mjs +2 -2
  19. package/dist/rolldown/shared/{binding-B4m_2rFW.mjs → binding-DlR5d34p.mjs} +27 -27
  20. package/dist/rolldown/shared/{bindingify-input-options-YtcpaV3r.mjs → bindingify-input-options-DhjlrWZE.mjs} +13 -13
  21. package/dist/rolldown/shared/{constructors-DDRbtWM1.mjs → constructors-B2hkJoIA.mjs} +1 -1
  22. package/dist/rolldown/shared/{constructors-CGQ9ItSV.d.mts → constructors-Dw9H1IvX.d.mts} +1 -1
  23. package/dist/rolldown/shared/{create-bundler-option-CFtx335R.mjs → create-bundler-option-1AEe_J0o.mjs} +22 -5
  24. package/dist/rolldown/shared/{define-config-kIZKjX8Q.d.mts → define-config-CGhm2DU-.d.mts} +24 -5
  25. package/dist/rolldown/shared/{error-Bj1xBdEY.mjs → error-Dsqzw0Oa.mjs} +1 -1
  26. package/dist/rolldown/shared/{load-config-CiFPv7UH.mjs → load-config-bvw8z7Ft.mjs} +1 -1
  27. package/dist/rolldown/shared/{normalize-string-or-regex-xyy0kCQR.mjs → normalize-string-or-regex-B7Gsiuz7.mjs} +1 -1
  28. package/dist/rolldown/shared/{parse-Zii6QoPp.mjs → parse-BCSSrLHf.mjs} +2 -2
  29. package/dist/rolldown/shared/{resolve-tsconfig-DRWFAQ3v.mjs → resolve-tsconfig-DyR2RUTm.mjs} +2 -2
  30. package/dist/rolldown/shared/{rolldown-BCQsxZbq.mjs → rolldown-C8QomUuX.mjs} +4 -4
  31. package/dist/rolldown/shared/{watch-CXhrnblH.mjs → watch-CPI70Lkn.mjs} +4 -4
  32. package/dist/rolldown/utils-index.d.mts +3 -3
  33. package/dist/rolldown/utils-index.mjs +5 -5
  34. package/dist/tsdown/{build-JVmLFaZt-k6Y-YuG9.js → build-KEepWO_k-BOsPZ2cH.js} +26 -25
  35. package/dist/tsdown/{debug-CpC4hV25-D_60QWpz.js → debug-DKTolR2K-BMJOFfj2.js} +4 -5
  36. package/dist/tsdown/{detect-Bg-d8iUV--_V5C4Db.js → detect-DHDepxVX-CpWW52Jd.js} +38 -34
  37. package/dist/tsdown/dist-BebyOHRu.js +6224 -0
  38. package/dist/tsdown/index-types.d.ts +216 -216
  39. package/dist/tsdown/index.js +4 -4
  40. package/dist/tsdown/{main-CyNcZUzu.js → main-Du9xCnhX.js} +105 -19
  41. package/dist/tsdown/npm_entry_picomatch.cjs +36 -25
  42. package/dist/tsdown/{resolver-DE0_sy8o-Pz8aksn9.js → resolver-DE0_sy8o-DNoi-dFQ.js} +3 -2
  43. package/dist/tsdown/run.js +28 -26
  44. package/dist/tsdown/{src-pN7Bl6zo.js → src-CBWRkeF5.js} +4 -4
  45. package/dist/tsdown/{target-DgdLrXba-BygiKCU8.js → target-HZbF5Cux-Cmv1LI5D.js} +175 -9
  46. package/dist/tsdown/{tsc-2xhsE0Bf.js → tsc-YwU2b8yT.js} +4 -4
  47. package/dist/tsdown/tsdown-css.js +4 -4
  48. package/dist/tsdown/tsdown-exe.js +5 -43
  49. package/dist/vite/client/bundledDevClient.mjs +38 -20
  50. package/dist/vite/client/client.mjs +10 -9
  51. package/dist/vite/node/chunks/build.js +19 -19
  52. package/dist/vite/node/chunks/node.js +4409 -4358
  53. package/dist/vite/node/chunks/postcss-import.js +10 -10
  54. package/dist/vite/node/cli.js +24 -21
  55. package/dist/vite/node/index.d.ts +2 -1
  56. package/dist/vite/node/index.js +1 -2
  57. package/dist/vite/node/internal.js +1 -2
  58. package/dist/vite/node/module-runner.d.ts +1 -0
  59. package/dist/vite/node/module-runner.js +16 -25
  60. package/package.json +26 -27
  61. package/dist/tsdown/dist-DquISSoY.js +0 -2952
  62. package/dist/tsdown/require-BbBF8Ii0-S6Y65RhW.js +0 -320
  63. package/dist/tsdown/style-DiMP8pYv-DIC5PXeH.js +0 -88
  64. package/dist/tsdown/version-CQ98ZBpL-CKvh-HCu.js +0 -169
@@ -1,5 +1,5 @@
1
- import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-xyy0kCQR.mjs";
2
- import { t as esmExternalRequirePlugin } from "./shared/constructors-DDRbtWM1.mjs";
1
+ import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-B7Gsiuz7.mjs";
2
+ import { t as esmExternalRequirePlugin } from "./shared/constructors-B2hkJoIA.mjs";
3
3
  //#region src/builtin-plugin/replace-plugin.ts
4
4
  /**
5
5
  * Replaces targeted strings in files while bundling.
@@ -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.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.`);
110
+ if (bindingPackageVersion !== "1.2.13" && 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.13 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.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.`);
124
+ if (bindingPackageVersion !== "1.2.13" && 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.13 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.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.`);
141
+ if (bindingPackageVersion !== "1.2.13" && 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.13 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.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.`);
155
+ if (bindingPackageVersion !== "1.2.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.2.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.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.`);
170
+ if (bindingPackageVersion !== "1.2.13" && 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.13 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.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.`);
184
+ if (bindingPackageVersion !== "1.2.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.2.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.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.`);
199
+ if (bindingPackageVersion !== "1.2.13" && 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.13 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.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.`);
213
+ if (bindingPackageVersion !== "1.2.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.2.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.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.`);
227
+ if (bindingPackageVersion !== "1.2.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.2.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.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.`);
243
+ if (bindingPackageVersion !== "1.2.13" && 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.13 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.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.`);
257
+ if (bindingPackageVersion !== "1.2.13" && 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.13 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.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.`);
274
+ if (bindingPackageVersion !== "1.2.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.2.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.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.`);
288
+ if (bindingPackageVersion !== "1.2.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.2.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.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.`);
304
+ if (bindingPackageVersion !== "1.2.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.2.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.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.`);
318
+ if (bindingPackageVersion !== "1.2.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.2.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.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.`);
334
+ if (bindingPackageVersion !== "1.2.13" && 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.13 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.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.`);
348
+ if (bindingPackageVersion !== "1.2.13" && 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.13 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.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.`);
364
+ if (bindingPackageVersion !== "1.2.13" && 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.13 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.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.`);
378
+ if (bindingPackageVersion !== "1.2.13" && 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.13 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.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.`);
394
+ if (bindingPackageVersion !== "1.2.13" && 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.13 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.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.`);
408
+ if (bindingPackageVersion !== "1.2.13" && 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.13 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.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.`);
423
+ if (bindingPackageVersion !== "1.2.13" && 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.13 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.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.`);
437
+ if (bindingPackageVersion !== "1.2.13" && 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.13 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.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.`);
453
+ if (bindingPackageVersion !== "1.2.13" && 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.13 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.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.`);
467
+ if (bindingPackageVersion !== "1.2.13" && 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.13 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.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.`);
481
+ if (bindingPackageVersion !== "1.2.13" && 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.13 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.12") throw new Error(`WASI binding package version mismatch, expected 1.2.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
572
+ if (bindingPackageVersion !== "1.2.13") throw new Error(`WASI binding package version mismatch, expected 1.2.13 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;
@@ -1,14 +1,14 @@
1
- import { n as __toESM, t as require_binding } from "./binding-B4m_2rFW.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-DlR5d34p.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-xyy0kCQR.mjs";
3
+ import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-B7Gsiuz7.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-Bj1xBdEY.mjs";
5
+ import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-Dsqzw0Oa.mjs";
6
6
  import { parseAst } from "../parse-ast-index.mjs";
7
7
  import path from "node:path";
8
8
  import * as filter from "@voidzero-dev/vite-plus-core/rolldown/pluginutils";
9
9
  import fsp from "node:fs/promises";
10
10
  //#region package.json
11
- var version = "1.2.12";
11
+ var version = "1.2.13";
12
12
  var package_default = {
13
13
  name: "rolldown",
14
14
  version,
@@ -416,7 +416,7 @@ function bindingAssetSource(source) {
416
416
  return { inner: source };
417
417
  }
418
418
  //#endregion
419
- //#region \0@oxc-project+runtime@0.152.0/helpers/esm/decorate.js
419
+ //#region \0@oxc-project+runtime@0.153.0/helpers/esm/decorate.js
420
420
  function __decorate(decorators, target, key, desc) {
421
421
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
422
422
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -1800,7 +1800,7 @@ function bindingifyRenderChunk(args) {
1800
1800
  return bindingifyHook(args.plugin.renderChunk, ({ handler, options }) => ({
1801
1801
  plugin: async (ctx, code, chunk, opts, meta) => {
1802
1802
  if (args.pluginContextData.getRenderChunkMeta() == null) args.pluginContextData.setRenderChunkMeta({ chunks: Object.fromEntries(Object.entries(meta.chunks).map(([key, value]) => [key, transformRenderedChunk(value)])) });
1803
- const renderChunkMeta = args.pluginContextData.getRenderChunkMeta();
1803
+ const renderChunkMeta = { chunks: args.pluginContextData.getRenderChunkMeta().chunks };
1804
1804
  let magicStringInstance;
1805
1805
  if (args.options.experimental?.nativeMagicString) Object.defineProperty(renderChunkMeta, "magicString", {
1806
1806
  get() {
@@ -1967,12 +1967,12 @@ function extractHookUsage(plugin) {
1967
1967
  if (plugin.closeBundle) hookUsage.union(8192);
1968
1968
  if (plugin.watchChange) hookUsage.union(16384);
1969
1969
  if (plugin.closeWatcher) hookUsage.union(32768);
1970
- if (plugin.banner) hookUsage.union(131072);
1971
- if (plugin.footer) hookUsage.union(262144);
1972
- if (plugin.intro) hookUsage.union(524288);
1973
- if (plugin.outro) hookUsage.union(1048576);
1974
- if (plugin.resolveFileUrl) hookUsage.union(2097152);
1975
- if (plugin.hotUpdate) hookUsage.union(4194304);
1970
+ if (plugin.banner) hookUsage.union(65536);
1971
+ if (plugin.footer) hookUsage.union(131072);
1972
+ if (plugin.intro) hookUsage.union(262144);
1973
+ if (plugin.outro) hookUsage.union(524288);
1974
+ if (plugin.resolveFileUrl) hookUsage.union(1048576);
1975
+ if (plugin.hotUpdate) hookUsage.union(2097152);
1976
1976
  return hookUsage;
1977
1977
  }
1978
1978
  //#endregion
@@ -2354,7 +2354,7 @@ function normalizeTransformOptions(inputOptions) {
2354
2354
  //#endregion
2355
2355
  //#region src/utils/default-dev-runtime.ts
2356
2356
  function getDefaultDevRuntime(host = "localhost", port = 3e3) {
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}`);
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 * `stamps[i]` is the rebuild stamp of `ids[i]`; a missing row means 0.\n * @typedef {{ ids: string[], localCount: number, edges: number[][], bindings?: Record<number, (string[] | null)[]>, dynamicEdges?: Record<number, number[]>, stamps?: 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 * A late payload (a slow lazy chunk after an HMR patch) must not replace newer rows or\n * factories.\n * @type {Map<string, number>}\n */\n rowStamps = new Map();\n /** @type {Map<string, number>} */\n factoryStamps = 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 if (delta.stamps) {\n const stamp = delta.stamps[i] ?? 0;\n if (stamp < (this.rowStamps.get(id) ?? 0)) continue;\n this.rowStamps.set(id, stamp);\n } else {\n // A full-build chunk has no stamps. It runs its code right away, so its row always\n // replaces the old one.\n this.rowStamps.delete(id);\n }\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 * @param {number} [stamp]\n */\n registerFactory(id, fn, stamp = 0) {\n if (stamp < (this.factoryStamps.get(id) ?? 0)) return;\n this.factoryStamps.set(id, stamp);\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}`);
2358
2358
  }
2359
2359
  //#endregion
2360
2360
  //#region src/utils/bindingify-input-options.ts
@@ -1,4 +1,4 @@
1
- import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-xyy0kCQR.mjs";
1
+ import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-B7Gsiuz7.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,5 +1,5 @@
1
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";
2
+ import { I as BuiltinPlugin, qt as StringOrRegExp } from "./define-config-CGhm2DU-.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,7 +1,7 @@
1
- import { n as __toESM, t as require_binding } from "./binding-B4m_2rFW.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-DlR5d34p.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-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";
3
+ import { n as BuiltinPlugin } from "./normalize-string-or-regex-B7Gsiuz7.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-DhjlrWZE.mjs";
5
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";
@@ -413,6 +413,22 @@ function awaitAsync() {
413
413
  }
414
414
  };
415
415
  }
416
+ /* @__NO_SIDE_EFFECTS__ */
417
+ function check(requirement, message$1) {
418
+ return {
419
+ kind: "validation",
420
+ type: "check",
421
+ reference: check,
422
+ async: false,
423
+ expects: null,
424
+ requirement,
425
+ message: message$1,
426
+ "~run"(dataset, config$1) {
427
+ if (dataset.typed && !this.requirement(dataset.value)) _addIssue(this, "input", dataset, config$1);
428
+ return dataset;
429
+ }
430
+ };
431
+ }
416
432
  /**
417
433
  * Creates a description metadata action.
418
434
  *
@@ -1559,7 +1575,8 @@ const DevModeSchema = /* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PU
1559
1575
  host: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1560
1576
  implement: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1561
1577
  skipCommonRuntimeInjection: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1562
- lazy: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1578
+ lazy: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1579
+ hotUpdate: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1563
1580
  })]);
1564
1581
  const InputOptionsSchema = /* @__PURE__ */ strictObject({
1565
1582
  input: /* @__PURE__ */ optional(InputOptionSchema),
@@ -1606,7 +1623,7 @@ const InputOptionsSchema = /* @__PURE__ */ strictObject({
1606
1623
  transform: /* @__PURE__ */ optional(TransformOptionsSchema),
1607
1624
  watch: /* @__PURE__ */ optional(/* @__PURE__ */ union([WatcherOptionsSchema, /* @__PURE__ */ literal(false)])),
1608
1625
  checks: /* @__PURE__ */ optional(ChecksOptionsSchema),
1609
- devtools: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ object({ sessionId: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Used to name the build.")) })), /* @__PURE__ */ description("Enable debug mode. Emit debug information to disk. This might slow down the build process significantly.")),
1626
+ devtools: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ object({ sessionId: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ check((id) => id !== "" && id !== "." && id !== ".." && !/[/\\\0]/.test(id), "Expected one path segment: not empty, not \".\" or \"..\", and without \"/\", \"\\\" or NUL"), /* @__PURE__ */ check((id) => id.toLowerCase().toUpperCase() !== "UNKNOWN-SESSION", "\"unknown-session\" is reserved for devtools events without a session context"))), /* @__PURE__ */ description("Used to name the build.")) })), /* @__PURE__ */ description("Enable debug mode. Emit debug information to disk. This might slow down the build process significantly.")),
1610
1627
  preserveEntrySignatures: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([
1611
1628
  /* @__PURE__ */ literal("strict"),
1612
1629
  /* @__PURE__ */ literal("allow-extension"),
@@ -1252,11 +1252,19 @@ type AdvancedChunksGroup = CodeSplittingGroup;
1252
1252
  * Options for `codeSplitting.experimentalInlineCommonChunks`.
1253
1253
  *
1254
1254
  * Small common chunks produced by automatic code splitting are replaced by a factory function
1255
- * that is copied into the chunks reading them (a chunk whose static dependency already carries the
1256
- * factory uses that copy). A registry in the runtime chunk makes sure the chunk's modules keep one
1255
+ * that is copied into the chunks reading them, unless every known entry loading path already registers
1256
+ * the factory. A registry in the runtime chunk makes sure the chunk's modules keep one
1257
1257
  * state, one execution and one set of export identities across all copies, so no entry downloads
1258
1258
  * code it could not reach with the option off.
1259
1259
  *
1260
+ * Non-entry chunks rely on loading paths visible to the build. Loading one by its
1261
+ * output URL through an unresolved import or external module can bypass required registrations.
1262
+ * Emit independently loaded modules as entries, using `this.emitFile` with
1263
+ * `preserveSignature: 'strict'` when their exports must be preserved. Alternatively, exclude
1264
+ * their shared dependencies from inlining, including transitive dependencies.
1265
+ * Static cycles through external modules back into generated output, including entries, are
1266
+ * unsupported. Bundle the modules forming such cycles together or exclude their shared dependencies.
1267
+ *
1260
1268
  * Before enabling it, check the plugins and code shapes that see a chunk's modules as one file:
1261
1269
  *
1262
1270
  * - A module of an inlined chunk appears in the `moduleIds` and `modules` of every chunk that
@@ -1379,7 +1387,7 @@ type BuildOptions = InputOptions & {
1379
1387
  */
1380
1388
  declare function build(options: BuildOptions): Promise<RolldownOutput>;
1381
1389
  /**
1382
- * Build multiple outputs __sequentially__.
1390
+ * Build multiple outputs __in parallel__.
1383
1391
  *
1384
1392
  * @param options The build options.
1385
1393
  * @returns A Promise that resolves to the build outputs for each option.
@@ -2161,9 +2169,10 @@ interface HookFilter {
2161
2169
  */
2162
2170
  moduleType?: ModuleTypeFilter;
2163
2171
  /**
2164
- * A filter based on the module's code.
2172
+ * A filter based on the code passed to the hook.
2165
2173
  *
2166
- * Only available for {@linkcode Plugin.transform | transform} hook.
2174
+ * Only available for {@linkcode Plugin.transform | transform} and
2175
+ * {@linkcode Plugin.renderChunk | renderChunk} hooks.
2167
2176
  */
2168
2177
  code?: GeneralHookFilter;
2169
2178
  }
@@ -3571,6 +3580,11 @@ type DevModeOptions = boolean | {
3571
3580
  */
3572
3581
  skipCommonRuntimeInjection?: boolean;
3573
3582
  lazy?: boolean;
3583
+ /**
3584
+ * Call the `hotUpdate` plugin hook. The `hotUpdate` option of `dev()` also turns it on.
3585
+ * @default false
3586
+ */
3587
+ hotUpdate?: boolean;
3574
3588
  };
3575
3589
  type OptimizationOptions = {
3576
3590
  /**
@@ -4110,6 +4124,11 @@ interface InputOptions {
4110
4124
  * Consumers can parse the output with `@rolldown/debug` after
4111
4125
  * `await bundle.close()` resolves.
4112
4126
  *
4127
+ * `sessionId` replaces the generated session id. It must be one path segment: not empty, not
4128
+ * `.` or `..`, and without `/`, `\` or NUL. Rolldown does not check that it is unique: give each
4129
+ * bundler that runs at the same time its own `sessionId`, or their devtools output mixes.
4130
+ * The name `unknown-session` is reserved regardless of case.
4131
+ *
4113
4132
  * @experimental
4114
4133
  */
4115
4134
  devtools?: {
@@ -1,4 +1,4 @@
1
- import { t as require_binding } from "./binding-B4m_2rFW.mjs";
1
+ import { t as require_binding } from "./binding-DlR5d34p.mjs";
2
2
  //#region src/types/sourcemap.ts
3
3
  function bindingifySourcemap(map) {
4
4
  if (map == null) return;
@@ -1,4 +1,4 @@
1
- import { t as rolldown } from "./rolldown-BCQsxZbq.mjs";
1
+ import { t as rolldown } from "./rolldown-C8QomUuX.mjs";
2
2
  import fs from "node:fs";
3
3
  import path from "node:path";
4
4
  import { readdir } from "node:fs/promises";
@@ -1,4 +1,4 @@
1
- import { n as __toESM, t as require_binding } from "./binding-B4m_2rFW.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-DlR5d34p.mjs";
2
2
  import { n as error, u as logPluginError } from "./logs-D6uA606S.mjs";
3
3
  //#region src/builtin-plugin/utils.ts
4
4
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
@@ -1,5 +1,5 @@
1
- import { n as __toESM, t as require_binding } from "./binding-B4m_2rFW.mjs";
2
- //#region ../../../node_modules/.pnpm/oxc-parser@0.153.0/node_modules/oxc-parser/src-js/wrap.js
1
+ import { n as __toESM, t as require_binding } from "./binding-DlR5d34p.mjs";
2
+ //#region ../../../node_modules/.pnpm/oxc-parser@0.154.0/node_modules/oxc-parser/src-js/wrap.js
3
3
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
4
4
  function wrap(result) {
5
5
  let program, module, comments, errors;
@@ -1,5 +1,5 @@
1
- import { n as __toESM, t as require_binding } from "./binding-B4m_2rFW.mjs";
2
- import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-Bj1xBdEY.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-DlR5d34p.mjs";
2
+ import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-Dsqzw0Oa.mjs";
3
3
  //#region src/utils/minify.ts
4
4
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
5
5
  /**
@@ -1,7 +1,7 @@
1
- import { n as __toESM, t as require_binding } from "./binding-B4m_2rFW.mjs";
2
- import { f as __decorate, h as PlainObjectLike, m as lazyProp, u as transformToRollupOutput } from "./bindingify-input-options-YtcpaV3r.mjs";
3
- import { l as PluginDriver, s as validateOption, t as createBundlerOptions } from "./create-bundler-option-CFtx335R.mjs";
4
- import { i as unwrapBindingResult } from "./error-Bj1xBdEY.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-DlR5d34p.mjs";
2
+ import { f as __decorate, h as PlainObjectLike, m as lazyProp, u as transformToRollupOutput } from "./bindingify-input-options-DhjlrWZE.mjs";
3
+ import { l as PluginDriver, s as validateOption, t as createBundlerOptions } from "./create-bundler-option-1AEe_J0o.mjs";
4
+ import { i as unwrapBindingResult } from "./error-Dsqzw0Oa.mjs";
5
5
  //#region src/types/rolldown-output-impl.ts
6
6
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
7
7
  var RolldownOutputImpl = class extends PlainObjectLike {
@@ -1,9 +1,9 @@
1
- import { n as __toESM, t as require_binding } from "./binding-B4m_2rFW.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-DlR5d34p.mjs";
2
2
  import { c as logMultipleWatcherOption } from "./logs-D6uA606S.mjs";
3
- import { C as LOG_LEVEL_WARN } from "./bindingify-input-options-YtcpaV3r.mjs";
3
+ import { C as LOG_LEVEL_WARN } from "./bindingify-input-options-DhjlrWZE.mjs";
4
4
  import { t as arraify } from "./misc-DOSKtd97.mjs";
5
- import { l as PluginDriver, t as createBundlerOptions } from "./create-bundler-option-CFtx335R.mjs";
6
- import { t as aggregateBindingErrorsIntoJsError } from "./error-Bj1xBdEY.mjs";
5
+ import { l as PluginDriver, t as createBundlerOptions } from "./create-bundler-option-1AEe_J0o.mjs";
6
+ import { t as aggregateBindingErrorsIntoJsError } from "./error-Dsqzw0Oa.mjs";
7
7
  //#region ../../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
8
8
  /**
9
9
  * This is not the set of all possible signals.