rolldown 1.0.0-beta.47 → 1.0.0-beta.49

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 (30) hide show
  1. package/dist/cli-setup.mjs +2 -2
  2. package/dist/cli.mjs +23 -10
  3. package/dist/config.d.mts +3 -2
  4. package/dist/config.mjs +7 -5
  5. package/dist/experimental-index.d.mts +18 -58
  6. package/dist/experimental-index.mjs +46 -112
  7. package/dist/filter-index.d.mts +3 -2
  8. package/dist/filter-index.mjs +1 -1
  9. package/dist/index.d.mts +3 -2
  10. package/dist/index.mjs +6 -4
  11. package/dist/parallel-plugin-worker.mjs +7 -5
  12. package/dist/parallel-plugin.d.mts +3 -2
  13. package/dist/parse-ast-index.d.mts +1 -1
  14. package/dist/parse-ast-index.mjs +3 -2
  15. package/dist/plugins-index.d.mts +31 -0
  16. package/dist/plugins-index.mjs +41 -0
  17. package/dist/shared/{binding-DBWhurrz.mjs → binding-Byz_-zMd.mjs} +28 -47
  18. package/dist/shared/{binding-BHtM7anm.d.mts → binding-TAvxYaaL.d.mts} +19 -49
  19. package/dist/shared/constructors-DLBJKpBt.mjs +68 -0
  20. package/dist/shared/constructors-DlLr_UMo.d.mts +32 -0
  21. package/dist/shared/{define-config-DdWK1ZyG.d.mts → define-config-CYc9_msm.d.mts} +7 -64
  22. package/dist/shared/{load-config-CQKld1Y8.mjs → load-config-DZSqgTtd.mjs} +1 -1
  23. package/dist/shared/{parse-ast-index-B4DJl5-M.mjs → logs-CSQ_UMWp.mjs} +2 -124
  24. package/dist/shared/normalize-string-or-regex-DpeiLkum.mjs +47 -0
  25. package/dist/shared/parse-ast-index-C3nalU1P.mjs +82 -0
  26. package/dist/shared/{prompt-YGfbLmz5.mjs → prompt-sxF8x3Tv.mjs} +1 -1
  27. package/dist/shared/{src-BwxUhqZU.mjs → src-CmBhXIUZ.mjs} +227 -201
  28. package/dist/shared/utils-CzdPrevI.d.mts +18 -0
  29. package/package.json +20 -19
  30. /package/dist/shared/{misc-usdOVIou.mjs → misc-DpQNcSw4.mjs} +0 -0
@@ -1,29 +1,10 @@
1
1
  import { createRequire } from "node:module";
2
2
 
3
3
  //#region rolldown:runtime
4
- var __create = Object.create;
5
- var __defProp = Object.defineProperty;
6
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
8
- var __getProtoOf = Object.getPrototypeOf;
9
- var __hasOwnProp = Object.prototype.hasOwnProperty;
10
5
  var __commonJS = (cb, mod) => function() {
11
6
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
12
7
  };
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
15
- key = keys[i];
16
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
- get: ((k) => from[k]).bind(null, key),
18
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
- });
20
- }
21
- return to;
22
- };
23
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
24
- value: mod,
25
- enumerable: true
26
- }) : target, mod));
27
8
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
28
9
 
29
10
  //#endregion
@@ -108,7 +89,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
108
89
  try {
109
90
  const binding = __require("@rolldown/binding-android-arm64");
110
91
  const bindingPackageVersion = __require("@rolldown/binding-android-arm64/package.json").version;
111
- if (bindingPackageVersion !== "1.0.0-beta.47" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
92
+ if (bindingPackageVersion !== "1.0.0-beta.49" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.49 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
112
93
  return binding;
113
94
  } catch (e) {
114
95
  loadErrors.push(e);
@@ -122,7 +103,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
122
103
  try {
123
104
  const binding = __require("@rolldown/binding-android-arm-eabi");
124
105
  const bindingPackageVersion = __require("@rolldown/binding-android-arm-eabi/package.json").version;
125
- if (bindingPackageVersion !== "1.0.0-beta.47" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
106
+ if (bindingPackageVersion !== "1.0.0-beta.49" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.49 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
126
107
  return binding;
127
108
  } catch (e) {
128
109
  loadErrors.push(e);
@@ -137,7 +118,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
137
118
  try {
138
119
  const binding = __require("@rolldown/binding-win32-x64-gnu");
139
120
  const bindingPackageVersion = __require("@rolldown/binding-win32-x64-gnu/package.json").version;
140
- if (bindingPackageVersion !== "1.0.0-beta.47" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
121
+ if (bindingPackageVersion !== "1.0.0-beta.49" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.49 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
141
122
  return binding;
142
123
  } catch (e) {
143
124
  loadErrors.push(e);
@@ -151,7 +132,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
151
132
  try {
152
133
  const binding = __require("@rolldown/binding-win32-x64-msvc");
153
134
  const bindingPackageVersion = __require("@rolldown/binding-win32-x64-msvc/package.json").version;
154
- if (bindingPackageVersion !== "1.0.0-beta.47" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
135
+ if (bindingPackageVersion !== "1.0.0-beta.49" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.49 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
155
136
  return binding;
156
137
  } catch (e) {
157
138
  loadErrors.push(e);
@@ -166,7 +147,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
166
147
  try {
167
148
  const binding = __require("@rolldown/binding-win32-ia32-msvc");
168
149
  const bindingPackageVersion = __require("@rolldown/binding-win32-ia32-msvc/package.json").version;
169
- if (bindingPackageVersion !== "1.0.0-beta.47" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
150
+ if (bindingPackageVersion !== "1.0.0-beta.49" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.49 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
170
151
  return binding;
171
152
  } catch (e) {
172
153
  loadErrors.push(e);
@@ -180,7 +161,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
180
161
  try {
181
162
  const binding = __require("@rolldown/binding-win32-arm64-msvc");
182
163
  const bindingPackageVersion = __require("@rolldown/binding-win32-arm64-msvc/package.json").version;
183
- if (bindingPackageVersion !== "1.0.0-beta.47" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
164
+ if (bindingPackageVersion !== "1.0.0-beta.49" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.49 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
184
165
  return binding;
185
166
  } catch (e) {
186
167
  loadErrors.push(e);
@@ -195,7 +176,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
195
176
  try {
196
177
  const binding = __require("@rolldown/binding-darwin-universal");
197
178
  const bindingPackageVersion = __require("@rolldown/binding-darwin-universal/package.json").version;
198
- if (bindingPackageVersion !== "1.0.0-beta.47" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
179
+ if (bindingPackageVersion !== "1.0.0-beta.49" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.49 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
199
180
  return binding;
200
181
  } catch (e) {
201
182
  loadErrors.push(e);
@@ -209,7 +190,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
209
190
  try {
210
191
  const binding = __require("@rolldown/binding-darwin-x64");
211
192
  const bindingPackageVersion = __require("@rolldown/binding-darwin-x64/package.json").version;
212
- if (bindingPackageVersion !== "1.0.0-beta.47" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
193
+ if (bindingPackageVersion !== "1.0.0-beta.49" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.49 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
213
194
  return binding;
214
195
  } catch (e) {
215
196
  loadErrors.push(e);
@@ -223,7 +204,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
223
204
  try {
224
205
  const binding = __require("@rolldown/binding-darwin-arm64");
225
206
  const bindingPackageVersion = __require("@rolldown/binding-darwin-arm64/package.json").version;
226
- if (bindingPackageVersion !== "1.0.0-beta.47" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
207
+ if (bindingPackageVersion !== "1.0.0-beta.49" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.49 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
227
208
  return binding;
228
209
  } catch (e) {
229
210
  loadErrors.push(e);
@@ -238,7 +219,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
238
219
  try {
239
220
  const binding = __require("@rolldown/binding-freebsd-x64");
240
221
  const bindingPackageVersion = __require("@rolldown/binding-freebsd-x64/package.json").version;
241
- if (bindingPackageVersion !== "1.0.0-beta.47" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
222
+ if (bindingPackageVersion !== "1.0.0-beta.49" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.49 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
242
223
  return binding;
243
224
  } catch (e) {
244
225
  loadErrors.push(e);
@@ -252,7 +233,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
252
233
  try {
253
234
  const binding = __require("@rolldown/binding-freebsd-arm64");
254
235
  const bindingPackageVersion = __require("@rolldown/binding-freebsd-arm64/package.json").version;
255
- if (bindingPackageVersion !== "1.0.0-beta.47" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
236
+ if (bindingPackageVersion !== "1.0.0-beta.49" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.49 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
256
237
  return binding;
257
238
  } catch (e) {
258
239
  loadErrors.push(e);
@@ -267,7 +248,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
267
248
  try {
268
249
  const binding = __require("@rolldown/binding-linux-x64-musl");
269
250
  const bindingPackageVersion = __require("@rolldown/binding-linux-x64-musl/package.json").version;
270
- if (bindingPackageVersion !== "1.0.0-beta.47" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
251
+ if (bindingPackageVersion !== "1.0.0-beta.49" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.49 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
271
252
  return binding;
272
253
  } catch (e) {
273
254
  loadErrors.push(e);
@@ -281,7 +262,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
281
262
  try {
282
263
  const binding = __require("@rolldown/binding-linux-x64-gnu");
283
264
  const bindingPackageVersion = __require("@rolldown/binding-linux-x64-gnu/package.json").version;
284
- if (bindingPackageVersion !== "1.0.0-beta.47" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
265
+ if (bindingPackageVersion !== "1.0.0-beta.49" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.49 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
285
266
  return binding;
286
267
  } catch (e) {
287
268
  loadErrors.push(e);
@@ -296,7 +277,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
296
277
  try {
297
278
  const binding = __require("@rolldown/binding-linux-arm64-musl");
298
279
  const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-musl/package.json").version;
299
- if (bindingPackageVersion !== "1.0.0-beta.47" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
280
+ if (bindingPackageVersion !== "1.0.0-beta.49" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.49 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
300
281
  return binding;
301
282
  } catch (e) {
302
283
  loadErrors.push(e);
@@ -310,7 +291,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
310
291
  try {
311
292
  const binding = __require("@rolldown/binding-linux-arm64-gnu");
312
293
  const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-gnu/package.json").version;
313
- if (bindingPackageVersion !== "1.0.0-beta.47" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
294
+ if (bindingPackageVersion !== "1.0.0-beta.49" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.49 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
314
295
  return binding;
315
296
  } catch (e) {
316
297
  loadErrors.push(e);
@@ -325,7 +306,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
325
306
  try {
326
307
  const binding = __require("@rolldown/binding-linux-arm-musleabihf");
327
308
  const bindingPackageVersion = __require("@rolldown/binding-linux-arm-musleabihf/package.json").version;
328
- if (bindingPackageVersion !== "1.0.0-beta.47" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
309
+ if (bindingPackageVersion !== "1.0.0-beta.49" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.49 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
329
310
  return binding;
330
311
  } catch (e) {
331
312
  loadErrors.push(e);
@@ -339,7 +320,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
339
320
  try {
340
321
  const binding = __require("@rolldown/binding-linux-arm-gnueabihf");
341
322
  const bindingPackageVersion = __require("@rolldown/binding-linux-arm-gnueabihf/package.json").version;
342
- if (bindingPackageVersion !== "1.0.0-beta.47" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
323
+ if (bindingPackageVersion !== "1.0.0-beta.49" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.49 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
343
324
  return binding;
344
325
  } catch (e) {
345
326
  loadErrors.push(e);
@@ -354,7 +335,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
354
335
  try {
355
336
  const binding = __require("@rolldown/binding-linux-loong64-musl");
356
337
  const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-musl/package.json").version;
357
- if (bindingPackageVersion !== "1.0.0-beta.47" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
338
+ if (bindingPackageVersion !== "1.0.0-beta.49" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.49 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
358
339
  return binding;
359
340
  } catch (e) {
360
341
  loadErrors.push(e);
@@ -368,7 +349,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
368
349
  try {
369
350
  const binding = __require("@rolldown/binding-linux-loong64-gnu");
370
351
  const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-gnu/package.json").version;
371
- if (bindingPackageVersion !== "1.0.0-beta.47" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
352
+ if (bindingPackageVersion !== "1.0.0-beta.49" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.49 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
372
353
  return binding;
373
354
  } catch (e) {
374
355
  loadErrors.push(e);
@@ -383,7 +364,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
383
364
  try {
384
365
  const binding = __require("@rolldown/binding-linux-riscv64-musl");
385
366
  const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-musl/package.json").version;
386
- if (bindingPackageVersion !== "1.0.0-beta.47" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
367
+ if (bindingPackageVersion !== "1.0.0-beta.49" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.49 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
387
368
  return binding;
388
369
  } catch (e) {
389
370
  loadErrors.push(e);
@@ -397,7 +378,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
397
378
  try {
398
379
  const binding = __require("@rolldown/binding-linux-riscv64-gnu");
399
380
  const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-gnu/package.json").version;
400
- if (bindingPackageVersion !== "1.0.0-beta.47" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
381
+ if (bindingPackageVersion !== "1.0.0-beta.49" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.49 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
401
382
  return binding;
402
383
  } catch (e) {
403
384
  loadErrors.push(e);
@@ -412,7 +393,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
412
393
  try {
413
394
  const binding = __require("@rolldown/binding-linux-ppc64-gnu");
414
395
  const bindingPackageVersion = __require("@rolldown/binding-linux-ppc64-gnu/package.json").version;
415
- if (bindingPackageVersion !== "1.0.0-beta.47" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
396
+ if (bindingPackageVersion !== "1.0.0-beta.49" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.49 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
416
397
  return binding;
417
398
  } catch (e) {
418
399
  loadErrors.push(e);
@@ -426,7 +407,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
426
407
  try {
427
408
  const binding = __require("@rolldown/binding-linux-s390x-gnu");
428
409
  const bindingPackageVersion = __require("@rolldown/binding-linux-s390x-gnu/package.json").version;
429
- if (bindingPackageVersion !== "1.0.0-beta.47" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
410
+ if (bindingPackageVersion !== "1.0.0-beta.49" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.49 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
430
411
  return binding;
431
412
  } catch (e) {
432
413
  loadErrors.push(e);
@@ -441,7 +422,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
441
422
  try {
442
423
  const binding = __require("@rolldown/binding-openharmony-arm64");
443
424
  const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm64/package.json").version;
444
- if (bindingPackageVersion !== "1.0.0-beta.47" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
425
+ if (bindingPackageVersion !== "1.0.0-beta.49" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.49 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
445
426
  return binding;
446
427
  } catch (e) {
447
428
  loadErrors.push(e);
@@ -455,7 +436,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
455
436
  try {
456
437
  const binding = __require("@rolldown/binding-openharmony-x64");
457
438
  const bindingPackageVersion = __require("@rolldown/binding-openharmony-x64/package.json").version;
458
- if (bindingPackageVersion !== "1.0.0-beta.47" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
439
+ if (bindingPackageVersion !== "1.0.0-beta.49" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.49 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
459
440
  return binding;
460
441
  } catch (e) {
461
442
  loadErrors.push(e);
@@ -469,7 +450,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
469
450
  try {
470
451
  const binding = __require("@rolldown/binding-openharmony-arm");
471
452
  const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm/package.json").version;
472
- if (bindingPackageVersion !== "1.0.0-beta.47" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.47 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
453
+ if (bindingPackageVersion !== "1.0.0-beta.49" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.49 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
473
454
  return binding;
474
455
  } catch (e) {
475
456
  loadErrors.push(e);
@@ -537,7 +518,6 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
537
518
  module.exports.BindingBundleEndEventData = nativeBinding.BindingBundleEndEventData;
538
519
  module.exports.BindingBundleErrorEventData = nativeBinding.BindingBundleErrorEventData;
539
520
  module.exports.BindingBundler = nativeBinding.BindingBundler;
540
- module.exports.BindingBundlerImpl = nativeBinding.BindingBundlerImpl;
541
521
  module.exports.BindingCallableBuiltinPlugin = nativeBinding.BindingCallableBuiltinPlugin;
542
522
  module.exports.BindingChunkingContext = nativeBinding.BindingChunkingContext;
543
523
  module.exports.BindingDevEngine = nativeBinding.BindingDevEngine;
@@ -553,6 +533,7 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
553
533
  module.exports.BindingTransformPluginContext = nativeBinding.BindingTransformPluginContext;
554
534
  module.exports.BindingUrlResolver = nativeBinding.BindingUrlResolver;
555
535
  module.exports.BindingWatcher = nativeBinding.BindingWatcher;
536
+ module.exports.BindingWatcherBundler = nativeBinding.BindingWatcherBundler;
556
537
  module.exports.BindingWatcherChangeData = nativeBinding.BindingWatcherChangeData;
557
538
  module.exports.BindingWatcherEvent = nativeBinding.BindingWatcherEvent;
558
539
  module.exports.ParallelJsPluginRegistry = nativeBinding.ParallelJsPluginRegistry;
@@ -575,4 +556,4 @@ var require_binding = /* @__PURE__ */ __commonJS({ "src/binding.cjs": ((exports,
575
556
  }) });
576
557
 
577
558
  //#endregion
578
- export { __toESM as n, require_binding as t };
559
+ export { require_binding as t };
@@ -4,10 +4,6 @@ import * as _oxc_project_types0 from "@oxc-project/types";
4
4
  type MaybePromise<T> = T | Promise<T>;
5
5
  type VoidNullable<T = void> = T | null | undefined | void;
6
6
  type BindingStringOrRegex = string | RegExp;
7
- type BindingResult<T> = {
8
- errors: BindingError[];
9
- isBindingErrors: boolean;
10
- } | T;
11
7
  interface CodegenOptions {
12
8
  /**
13
9
  * Remove whitespace.
@@ -234,6 +230,12 @@ type ImportNameKind = /** `import { x } from "mod"` */
234
230
  'Name' | /** `import * as ns from "mod"` */
235
231
  'NamespaceObject' | /** `import defaultExport from "mod"` */
236
232
  'Default';
233
+ /**
234
+ * Parse asynchronously.
235
+ *
236
+ * Note: This function can be slower than `parseSync` due to the overhead of spawning a thread.
237
+ */
238
+ declare function parseAsync(filename: string, sourceText: string, options?: ParserOptions | undefined | null): Promise<ParseResult>;
237
239
  interface ParserOptions {
238
240
  /** Treat the source text as `js`, `jsx`, `ts`, `tsx` or `dts`. */
239
241
  lang?: 'js' | 'jsx' | 'ts' | 'tsx' | 'dts';
@@ -274,6 +276,8 @@ interface ParserOptions {
274
276
  */
275
277
  showSemanticErrors?: boolean;
276
278
  }
279
+ /** Parse synchronously. */
280
+ declare function parseSync(filename: string, sourceText: string, options?: ParserOptions | undefined | null): ParseResult;
277
281
  interface Span {
278
282
  start: number;
279
283
  end: number;
@@ -1182,20 +1186,12 @@ interface TypeScriptOptions {
1182
1186
  declare class BindingBundleEndEventData {
1183
1187
  output: string;
1184
1188
  duration: number;
1185
- get result(): BindingBundlerImpl;
1189
+ get result(): BindingWatcherBundler;
1186
1190
  }
1187
1191
  declare class BindingBundleErrorEventData {
1188
- get result(): BindingBundlerImpl;
1192
+ get result(): BindingWatcherBundler;
1189
1193
  get error(): Array<BindingError>;
1190
1194
  }
1191
- declare class BindingBundlerImpl {
1192
- write(): Promise<BindingResult<BindingOutputs>>;
1193
- generate(): Promise<BindingResult<BindingOutputs>>;
1194
- scan(): Promise<BindingResult<BindingOutputs>>;
1195
- close(): Promise<void>;
1196
- get closed(): boolean;
1197
- getWatchFiles(): Promise<Array<string>>;
1198
- }
1199
1195
  declare class BindingMagicString {
1200
1196
  constructor(source: string);
1201
1197
  replace(from: string, to: string): void;
@@ -1216,32 +1212,6 @@ declare class BindingMagicString {
1216
1212
  relocate(start: number, end: number, to: number): void;
1217
1213
  indent(indentor?: string | undefined | null): void;
1218
1214
  }
1219
- declare class BindingOutputAsset {
1220
- dropInner(): ExternalMemoryStatus;
1221
- getFileName(): string;
1222
- getOriginalFileName(): string | null;
1223
- getOriginalFileNames(): Array<string>;
1224
- getSource(): BindingAssetSource;
1225
- getName(): string | null;
1226
- getNames(): Array<string>;
1227
- }
1228
- declare class BindingOutputChunk {
1229
- dropInner(): ExternalMemoryStatus;
1230
- getIsEntry(): boolean;
1231
- getIsDynamicEntry(): boolean;
1232
- getFacadeModuleId(): string | null;
1233
- getModuleIds(): Array<string>;
1234
- getExports(): Array<string>;
1235
- getFileName(): string;
1236
- getModules(): BindingModules;
1237
- getImports(): Array<string>;
1238
- getDynamicImports(): Array<string>;
1239
- getCode(): string;
1240
- getMap(): string | null;
1241
- getSourcemapFileName(): string | null;
1242
- getPreliminaryFileName(): string;
1243
- getName(): string;
1244
- }
1245
1215
  declare class BindingRenderedChunk {
1246
1216
  get name(): string;
1247
1217
  get isEntry(): boolean;
@@ -1261,6 +1231,13 @@ declare class BindingRenderedModule {
1261
1231
  declare class BindingUrlResolver {
1262
1232
  call(url: string, importer?: string): Promise<[string, string | undefined]>;
1263
1233
  }
1234
+ /**
1235
+ * Minimal wrapper around the core `Bundler` for watcher events.
1236
+ * This is returned from watcher event data to allow access to the bundler instance.
1237
+ */
1238
+ declare class BindingWatcherBundler {
1239
+ close(): Promise<void>;
1240
+ }
1264
1241
  declare class BindingWatcherChangeData {
1265
1242
  path: string;
1266
1243
  kind: string;
@@ -1284,9 +1261,6 @@ interface BindingAssetPluginConfig {
1284
1261
  assetInlineLimit: number | ((file: string, content: Buffer) => boolean | undefined);
1285
1262
  renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) => undefined | string | BindingRenderBuiltUrlRet;
1286
1263
  }
1287
- interface BindingAssetSource {
1288
- inner: string | Uint8Array;
1289
- }
1290
1264
  interface BindingBuildImportAnalysisPluginConfig {
1291
1265
  preloadCode: string;
1292
1266
  insertPreload: boolean;
@@ -1302,7 +1276,7 @@ interface BindingBuildImportAnalysisPluginV2Config {
1302
1276
  modulePreload: false | BindingModulePreloadOptions;
1303
1277
  renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) => undefined | string | BindingRenderBuiltUrlRet;
1304
1278
  }
1305
- type BindingBuiltinPluginName = 'builtin:alias' | 'builtin:asset' | 'builtin:asset-import-meta-url' | 'builtin:build-import-analysis' | 'builtin:dynamic-import-vars' | 'builtin:esm-external-require' | 'builtin:import-glob' | 'builtin:isolated-declaration' | 'builtin:json' | 'builtin:load-fallback' | 'builtin:manifest' | 'builtin:module-preload-polyfill' | 'builtin:react-refresh-wrapper' | 'builtin:reporter' | 'builtin:replace' | 'builtin:transform' | 'builtin:vite-css' | 'builtin:vite-css-post' | 'builtin:vite-html' | 'builtin:vite-resolve' | 'builtin:wasm-fallback' | 'builtin:wasm-helper' | 'builtin:web-worker-post';
1279
+ type BindingBuiltinPluginName = 'builtin:alias' | 'builtin:asset' | 'builtin:asset-import-meta-url' | 'builtin:build-import-analysis' | 'builtin:dynamic-import-vars' | 'builtin:esm-external-require' | 'builtin:html-inline-proxy' | 'builtin:import-glob' | 'builtin:isolated-declaration' | 'builtin:json' | 'builtin:load-fallback' | 'builtin:manifest' | 'builtin:module-preload-polyfill' | 'builtin:react-refresh-wrapper' | 'builtin:reporter' | 'builtin:replace' | 'builtin:transform' | 'builtin:vite-css' | 'builtin:vite-css-post' | 'builtin:vite-html' | 'builtin:vite-resolve' | 'builtin:wasm-fallback' | 'builtin:wasm-helper' | 'builtin:web-worker-post';
1306
1280
  interface BindingClientHmrUpdate {
1307
1281
  clientId: string;
1308
1282
  update: BindingHmrUpdate;
@@ -1397,10 +1371,6 @@ interface BindingModules {
1397
1371
  values: Array<BindingRenderedModule>;
1398
1372
  keys: Array<string>;
1399
1373
  }
1400
- interface BindingOutputs {
1401
- chunks: Array<BindingOutputChunk>;
1402
- assets: Array<BindingOutputAsset>;
1403
- }
1404
1374
  interface BindingReactRefreshWrapperPluginConfig {
1405
1375
  cwd: string;
1406
1376
  include?: Array<BindingStringOrRegex>;
@@ -1545,4 +1515,4 @@ interface PreRenderedChunk {
1545
1515
  exports: Array<string>;
1546
1516
  }
1547
1517
  //#endregion
1548
- export { IsolatedDeclarationsOptions as A, ResolverFactory as B, BindingViteCssPluginConfig as C, BindingWasmHelperPluginConfig as D, BindingViteResolvePluginConfig as E, NapiResolveOptions as F, moduleRunnerTransform as G, TransformResult as H, ParseResult as I, transform as K, ParserOptions as L, JsxOptions as M, MinifyOptions as N, BindingWatcherEvent as O, MinifyResult as P, PreRenderedChunk as R, BindingUrlResolver as S, BindingViteHtmlPluginConfig as T, isolatedDeclaration as U, TransformOptions as V, minify as W, BindingRenderedChunk as _, BindingClientHmrUpdate as a, BindingTransformHookExtraArgs as b, BindingHookResolveIdExtraArgs as c, BindingJsonPluginConfig as d, BindingMagicString as f, BindingRebuildStrategy as g, BindingReactRefreshWrapperPluginConfig as h, BindingBundlerImpl as i, IsolatedDeclarationsResult as j, ExternalMemoryStatus as k, BindingImportGlobPluginConfig as l, BindingModulePreloadPolyfillPluginConfig as m, BindingBuildImportAnalysisPluginConfig as n, BindingDynamicImportVarsPluginConfig as o, BindingManifestPluginConfig as p, BindingBuiltinPluginName as r, BindingEsmExternalRequirePluginConfig as s, BindingAssetPluginConfig as t, BindingIsolatedDeclarationPluginConfig as u, BindingReplacePluginConfig as v, BindingViteCssPostPluginConfig as w, BindingTransformPluginConfig as x, BindingReporterPluginConfig as y, ResolveResult as z };
1518
+ export { IsolatedDeclarationsOptions as A, ResolverFactory as B, BindingViteCssPostPluginConfig as C, BindingWatcherBundler as D, BindingWasmHelperPluginConfig as E, NapiResolveOptions as F, moduleRunnerTransform as G, TransformResult as H, ParseResult as I, transform as J, parseAsync as K, ParserOptions as L, JsxOptions as M, MinifyOptions as N, BindingWatcherEvent as O, MinifyResult as P, PreRenderedChunk as R, BindingViteCssPluginConfig as S, BindingViteResolvePluginConfig as T, isolatedDeclaration as U, TransformOptions as V, minify as W, BindingReplacePluginConfig as _, BindingDynamicImportVarsPluginConfig as a, BindingTransformPluginConfig as b, BindingImportGlobPluginConfig as c, BindingMagicString as d, BindingManifestPluginConfig as f, BindingRenderedChunk as g, BindingRebuildStrategy as h, BindingClientHmrUpdate as i, IsolatedDeclarationsResult as j, ExternalMemoryStatus as k, BindingIsolatedDeclarationPluginConfig as l, BindingReactRefreshWrapperPluginConfig as m, BindingBuildImportAnalysisPluginConfig as n, BindingEsmExternalRequirePluginConfig as o, BindingModulePreloadPolyfillPluginConfig as p, parseSync as q, BindingBuiltinPluginName as r, BindingHookResolveIdExtraArgs as s, BindingAssetPluginConfig as t, BindingJsonPluginConfig as u, BindingReporterPluginConfig as v, BindingViteHtmlPluginConfig as w, BindingUrlResolver as x, BindingTransformHookExtraArgs as y, ResolveResult as z };
@@ -0,0 +1,68 @@
1
+ import { i as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-DpeiLkum.mjs";
2
+
3
+ //#region src/builtin-plugin/constructors.ts
4
+ function modulePreloadPolyfillPlugin(config) {
5
+ return new BuiltinPlugin("builtin:module-preload-polyfill", config);
6
+ }
7
+ function dynamicImportVarsPlugin(config) {
8
+ if (config) {
9
+ config.include = normalizedStringOrRegex(config.include);
10
+ config.exclude = normalizedStringOrRegex(config.exclude);
11
+ }
12
+ return new BuiltinPlugin("builtin:dynamic-import-vars", config);
13
+ }
14
+ function importGlobPlugin(config) {
15
+ return new BuiltinPlugin("builtin:import-glob", config);
16
+ }
17
+ function reporterPlugin(config) {
18
+ return new BuiltinPlugin("builtin:reporter", config);
19
+ }
20
+ function manifestPlugin(config) {
21
+ return new BuiltinPlugin("builtin:manifest", config);
22
+ }
23
+ function wasmHelperPlugin(config) {
24
+ return new BuiltinPlugin("builtin:wasm-helper", config);
25
+ }
26
+ function wasmFallbackPlugin() {
27
+ return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:wasm-fallback"));
28
+ }
29
+ function loadFallbackPlugin() {
30
+ return new BuiltinPlugin("builtin:load-fallback");
31
+ }
32
+ function jsonPlugin(config) {
33
+ return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:json", config));
34
+ }
35
+ function buildImportAnalysisPlugin(config) {
36
+ return new BuiltinPlugin("builtin:build-import-analysis", config);
37
+ }
38
+ function viteResolvePlugin(config) {
39
+ return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:vite-resolve", config));
40
+ }
41
+ function isolatedDeclarationPlugin(config) {
42
+ return new BuiltinPlugin("builtin:isolated-declaration", config);
43
+ }
44
+ function webWorkerPostPlugin() {
45
+ return new BuiltinPlugin("builtin:web-worker-post");
46
+ }
47
+ function esmExternalRequirePlugin(config) {
48
+ return new BuiltinPlugin("builtin:esm-external-require", config);
49
+ }
50
+ function reactRefreshWrapperPlugin(config) {
51
+ if (config) {
52
+ config.include = normalizedStringOrRegex(config.include);
53
+ config.exclude = normalizedStringOrRegex(config.exclude);
54
+ }
55
+ return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:react-refresh-wrapper", config));
56
+ }
57
+ function viteCSSPostPlugin(config) {
58
+ return new BuiltinPlugin("builtin:vite-css-post", config);
59
+ }
60
+ function viteHtmlPlugin(config) {
61
+ return new BuiltinPlugin("builtin:vite-html", config);
62
+ }
63
+ function htmlInlineProxyPlugin() {
64
+ return new BuiltinPlugin("builtin:html-inline-proxy");
65
+ }
66
+
67
+ //#endregion
68
+ export { wasmHelperPlugin as _, importGlobPlugin as a, loadFallbackPlugin as c, reactRefreshWrapperPlugin as d, reporterPlugin as f, wasmFallbackPlugin as g, viteResolvePlugin as h, htmlInlineProxyPlugin as i, manifestPlugin as l, viteHtmlPlugin as m, dynamicImportVarsPlugin as n, isolatedDeclarationPlugin as o, viteCSSPostPlugin as p, esmExternalRequirePlugin as r, jsonPlugin as s, buildImportAnalysisPlugin as t, modulePreloadPolyfillPlugin as u, webWorkerPostPlugin as v };
@@ -0,0 +1,32 @@
1
+ import { C as BindingViteCssPostPluginConfig, E as BindingWasmHelperPluginConfig, T as BindingViteResolvePluginConfig, a as BindingDynamicImportVarsPluginConfig, c as BindingImportGlobPluginConfig, f as BindingManifestPluginConfig, l as BindingIsolatedDeclarationPluginConfig, m as BindingReactRefreshWrapperPluginConfig, n as BindingBuildImportAnalysisPluginConfig, o as BindingEsmExternalRequirePluginConfig, p as BindingModulePreloadPolyfillPluginConfig, u as BindingJsonPluginConfig, v as BindingReporterPluginConfig, w as BindingViteHtmlPluginConfig } from "./binding-TAvxYaaL.mjs";
2
+ import { s as StringOrRegExp, t as BuiltinPlugin } from "./utils-CzdPrevI.mjs";
3
+
4
+ //#region src/builtin-plugin/constructors.d.ts
5
+ declare function modulePreloadPolyfillPlugin(config?: BindingModulePreloadPolyfillPluginConfig): BuiltinPlugin;
6
+ type DynamicImportVarsPluginConfig = Omit<BindingDynamicImportVarsPluginConfig, "include" | "exclude"> & {
7
+ include?: StringOrRegExp | StringOrRegExp[];
8
+ exclude?: StringOrRegExp | StringOrRegExp[];
9
+ };
10
+ declare function dynamicImportVarsPlugin(config?: DynamicImportVarsPluginConfig): BuiltinPlugin;
11
+ declare function importGlobPlugin(config?: BindingImportGlobPluginConfig): BuiltinPlugin;
12
+ declare function reporterPlugin(config?: BindingReporterPluginConfig): BuiltinPlugin;
13
+ declare function manifestPlugin(config?: BindingManifestPluginConfig): BuiltinPlugin;
14
+ declare function wasmHelperPlugin(config?: BindingWasmHelperPluginConfig): BuiltinPlugin;
15
+ declare function wasmFallbackPlugin(): BuiltinPlugin;
16
+ declare function loadFallbackPlugin(): BuiltinPlugin;
17
+ declare function jsonPlugin(config?: BindingJsonPluginConfig): BuiltinPlugin;
18
+ declare function buildImportAnalysisPlugin(config: BindingBuildImportAnalysisPluginConfig): BuiltinPlugin;
19
+ declare function viteResolvePlugin(config: BindingViteResolvePluginConfig): BuiltinPlugin;
20
+ declare function isolatedDeclarationPlugin(config?: BindingIsolatedDeclarationPluginConfig): BuiltinPlugin;
21
+ declare function webWorkerPostPlugin(): BuiltinPlugin;
22
+ declare function esmExternalRequirePlugin(config?: BindingEsmExternalRequirePluginConfig): BuiltinPlugin;
23
+ type ReactRefreshWrapperPluginConfig = Omit<BindingReactRefreshWrapperPluginConfig, "include" | "exclude"> & {
24
+ include?: StringOrRegExp | StringOrRegExp[];
25
+ exclude?: StringOrRegExp | StringOrRegExp[];
26
+ };
27
+ declare function reactRefreshWrapperPlugin(config: ReactRefreshWrapperPluginConfig): BuiltinPlugin;
28
+ declare function viteCSSPostPlugin(config?: BindingViteCssPostPluginConfig): BuiltinPlugin;
29
+ declare function viteHtmlPlugin(config?: BindingViteHtmlPluginConfig): BuiltinPlugin;
30
+ declare function htmlInlineProxyPlugin(): BuiltinPlugin;
31
+ //#endregion
32
+ export { wasmHelperPlugin as _, importGlobPlugin as a, loadFallbackPlugin as c, reactRefreshWrapperPlugin as d, reporterPlugin as f, wasmFallbackPlugin as g, viteResolvePlugin as h, htmlInlineProxyPlugin as i, manifestPlugin as l, viteHtmlPlugin as m, dynamicImportVarsPlugin as n, isolatedDeclarationPlugin as o, viteCSSPostPlugin as p, esmExternalRequirePlugin as r, jsonPlugin as s, buildImportAnalysisPlugin as t, modulePreloadPolyfillPlugin as u, webWorkerPostPlugin as v };