rolldown 1.0.0-beta.46 → 1.0.0-beta.48
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.
- package/dist/cli-setup.mjs +2 -2
- package/dist/cli.mjs +23 -10
- package/dist/config.d.mts +3 -2
- package/dist/config.mjs +7 -5
- package/dist/experimental-index.d.mts +18 -58
- package/dist/experimental-index.mjs +47 -112
- package/dist/filter-index.d.mts +3 -2
- package/dist/filter-index.mjs +1 -1
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +6 -4
- package/dist/parallel-plugin-worker.mjs +7 -5
- package/dist/parallel-plugin.d.mts +3 -2
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +3 -2
- package/dist/plugins-index.d.mts +31 -0
- package/dist/plugins-index.mjs +41 -0
- package/dist/shared/{binding-DOZoR4bu.mjs → binding-Drb7x8Xk.mjs} +28 -47
- package/dist/shared/{binding-CCMrV5an.d.mts → binding-TAvxYaaL.d.mts} +49 -58
- package/dist/shared/constructors-CPzYu5kE.mjs +68 -0
- package/dist/shared/constructors-DlLr_UMo.d.mts +32 -0
- package/dist/shared/{define-config-Czc1YEBi.d.mts → define-config-De0wBOd9.d.mts} +4 -62
- package/dist/shared/{load-config-Brje6-4J.mjs → load-config-CgaGIE8O.mjs} +1 -1
- package/dist/shared/{parse-ast-index-oPgrkdqc.mjs → logs-CSQ_UMWp.mjs} +2 -124
- package/dist/shared/normalize-string-or-regex-C20xiVob.mjs +47 -0
- package/dist/shared/parse-ast-index-khff6py4.mjs +82 -0
- package/dist/shared/{prompt-YGfbLmz5.mjs → prompt-sxF8x3Tv.mjs} +1 -1
- package/dist/shared/{src-D1weNlnG.mjs → src-cg9B-h5W.mjs} +234 -203
- package/dist/shared/utils-CzdPrevI.d.mts +18 -0
- package/package.json +18 -18
- /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.
|
|
92
|
+
if (bindingPackageVersion !== "1.0.0-beta.48" && process.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.48 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.
|
|
106
|
+
if (bindingPackageVersion !== "1.0.0-beta.48" && process.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.48 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.
|
|
121
|
+
if (bindingPackageVersion !== "1.0.0-beta.48" && process.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.48 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.
|
|
135
|
+
if (bindingPackageVersion !== "1.0.0-beta.48" && process.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.48 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.
|
|
150
|
+
if (bindingPackageVersion !== "1.0.0-beta.48" && process.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.48 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.
|
|
164
|
+
if (bindingPackageVersion !== "1.0.0-beta.48" && process.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.48 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.
|
|
179
|
+
if (bindingPackageVersion !== "1.0.0-beta.48" && process.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.48 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.
|
|
193
|
+
if (bindingPackageVersion !== "1.0.0-beta.48" && process.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.48 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.
|
|
207
|
+
if (bindingPackageVersion !== "1.0.0-beta.48" && process.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.48 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.
|
|
222
|
+
if (bindingPackageVersion !== "1.0.0-beta.48" && process.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.48 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.
|
|
236
|
+
if (bindingPackageVersion !== "1.0.0-beta.48" && process.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.48 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.
|
|
251
|
+
if (bindingPackageVersion !== "1.0.0-beta.48" && process.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.48 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.
|
|
265
|
+
if (bindingPackageVersion !== "1.0.0-beta.48" && process.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.48 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.
|
|
280
|
+
if (bindingPackageVersion !== "1.0.0-beta.48" && process.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.48 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.
|
|
294
|
+
if (bindingPackageVersion !== "1.0.0-beta.48" && process.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.48 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.
|
|
309
|
+
if (bindingPackageVersion !== "1.0.0-beta.48" && process.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.48 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.
|
|
323
|
+
if (bindingPackageVersion !== "1.0.0-beta.48" && process.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.48 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.
|
|
338
|
+
if (bindingPackageVersion !== "1.0.0-beta.48" && process.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.48 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.
|
|
352
|
+
if (bindingPackageVersion !== "1.0.0-beta.48" && process.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.48 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.
|
|
367
|
+
if (bindingPackageVersion !== "1.0.0-beta.48" && process.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.48 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.
|
|
381
|
+
if (bindingPackageVersion !== "1.0.0-beta.48" && process.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.48 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.
|
|
396
|
+
if (bindingPackageVersion !== "1.0.0-beta.48" && process.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.48 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.
|
|
410
|
+
if (bindingPackageVersion !== "1.0.0-beta.48" && process.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.48 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.
|
|
425
|
+
if (bindingPackageVersion !== "1.0.0-beta.48" && process.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.48 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.
|
|
439
|
+
if (bindingPackageVersion !== "1.0.0-beta.48" && process.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.48 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.
|
|
453
|
+
if (bindingPackageVersion !== "1.0.0-beta.48" && process.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.48 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 {
|
|
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.
|
|
@@ -126,6 +122,8 @@ interface MangleOptionsKeepNames {
|
|
|
126
122
|
*/
|
|
127
123
|
class: boolean;
|
|
128
124
|
}
|
|
125
|
+
/** Minify synchronously. */
|
|
126
|
+
declare function minify(filename: string, sourceText: string, options?: MinifyOptions | undefined | null): MinifyResult;
|
|
129
127
|
interface MinifyOptions {
|
|
130
128
|
/** Use when minifying an ES6 module. */
|
|
131
129
|
module?: boolean;
|
|
@@ -134,6 +132,11 @@ interface MinifyOptions {
|
|
|
134
132
|
codegen?: boolean | CodegenOptions;
|
|
135
133
|
sourcemap?: boolean;
|
|
136
134
|
}
|
|
135
|
+
interface MinifyResult {
|
|
136
|
+
code: string;
|
|
137
|
+
map?: SourceMap;
|
|
138
|
+
errors: Array<OxcError>;
|
|
139
|
+
}
|
|
137
140
|
interface Comment {
|
|
138
141
|
type: 'Line' | 'Block';
|
|
139
142
|
value: string;
|
|
@@ -227,6 +230,12 @@ type ImportNameKind = /** `import { x } from "mod"` */
|
|
|
227
230
|
'Name' | /** `import * as ns from "mod"` */
|
|
228
231
|
'NamespaceObject' | /** `import defaultExport from "mod"` */
|
|
229
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>;
|
|
230
239
|
interface ParserOptions {
|
|
231
240
|
/** Treat the source text as `js`, `jsx`, `ts`, `tsx` or `dts`. */
|
|
232
241
|
lang?: 'js' | 'jsx' | 'ts' | 'tsx' | 'dts';
|
|
@@ -267,6 +276,8 @@ interface ParserOptions {
|
|
|
267
276
|
*/
|
|
268
277
|
showSemanticErrors?: boolean;
|
|
269
278
|
}
|
|
279
|
+
/** Parse synchronously. */
|
|
280
|
+
declare function parseSync(filename: string, sourceText: string, options?: ParserOptions | undefined | null): ParseResult;
|
|
270
281
|
interface Span {
|
|
271
282
|
start: number;
|
|
272
283
|
end: number;
|
|
@@ -1175,20 +1186,12 @@ interface TypeScriptOptions {
|
|
|
1175
1186
|
declare class BindingBundleEndEventData {
|
|
1176
1187
|
output: string;
|
|
1177
1188
|
duration: number;
|
|
1178
|
-
get result():
|
|
1189
|
+
get result(): BindingWatcherBundler;
|
|
1179
1190
|
}
|
|
1180
1191
|
declare class BindingBundleErrorEventData {
|
|
1181
|
-
get result():
|
|
1192
|
+
get result(): BindingWatcherBundler;
|
|
1182
1193
|
get error(): Array<BindingError>;
|
|
1183
1194
|
}
|
|
1184
|
-
declare class BindingBundlerImpl {
|
|
1185
|
-
write(): Promise<BindingResult<BindingOutputs>>;
|
|
1186
|
-
generate(): Promise<BindingResult<BindingOutputs>>;
|
|
1187
|
-
scan(): Promise<BindingResult<BindingOutputs>>;
|
|
1188
|
-
close(): Promise<void>;
|
|
1189
|
-
get closed(): boolean;
|
|
1190
|
-
getWatchFiles(): Promise<Array<string>>;
|
|
1191
|
-
}
|
|
1192
1195
|
declare class BindingMagicString {
|
|
1193
1196
|
constructor(source: string);
|
|
1194
1197
|
replace(from: string, to: string): void;
|
|
@@ -1204,32 +1207,10 @@ declare class BindingMagicString {
|
|
|
1204
1207
|
hasChanged(): boolean;
|
|
1205
1208
|
length(): number;
|
|
1206
1209
|
isEmpty(): boolean;
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
getOriginalFileName(): string | null;
|
|
1212
|
-
getOriginalFileNames(): Array<string>;
|
|
1213
|
-
getSource(): BindingAssetSource;
|
|
1214
|
-
getName(): string | null;
|
|
1215
|
-
getNames(): Array<string>;
|
|
1216
|
-
}
|
|
1217
|
-
declare class BindingOutputChunk {
|
|
1218
|
-
dropInner(): ExternalMemoryStatus;
|
|
1219
|
-
getIsEntry(): boolean;
|
|
1220
|
-
getIsDynamicEntry(): boolean;
|
|
1221
|
-
getFacadeModuleId(): string | null;
|
|
1222
|
-
getModuleIds(): Array<string>;
|
|
1223
|
-
getExports(): Array<string>;
|
|
1224
|
-
getFileName(): string;
|
|
1225
|
-
getModules(): BindingModules;
|
|
1226
|
-
getImports(): Array<string>;
|
|
1227
|
-
getDynamicImports(): Array<string>;
|
|
1228
|
-
getCode(): string;
|
|
1229
|
-
getMap(): string | null;
|
|
1230
|
-
getSourcemapFileName(): string | null;
|
|
1231
|
-
getPreliminaryFileName(): string;
|
|
1232
|
-
getName(): string;
|
|
1210
|
+
remove(start: number, end: number): void;
|
|
1211
|
+
update(start: number, end: number, content: string): void;
|
|
1212
|
+
relocate(start: number, end: number, to: number): void;
|
|
1213
|
+
indent(indentor?: string | undefined | null): void;
|
|
1233
1214
|
}
|
|
1234
1215
|
declare class BindingRenderedChunk {
|
|
1235
1216
|
get name(): string;
|
|
@@ -1250,6 +1231,13 @@ declare class BindingRenderedModule {
|
|
|
1250
1231
|
declare class BindingUrlResolver {
|
|
1251
1232
|
call(url: string, importer?: string): Promise<[string, string | undefined]>;
|
|
1252
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
|
+
}
|
|
1253
1241
|
declare class BindingWatcherChangeData {
|
|
1254
1242
|
path: string;
|
|
1255
1243
|
kind: string;
|
|
@@ -1271,10 +1259,7 @@ interface BindingAssetPluginConfig {
|
|
|
1271
1259
|
isSkipAssets: boolean;
|
|
1272
1260
|
assetsInclude: Array<BindingStringOrRegex>;
|
|
1273
1261
|
assetInlineLimit: number | ((file: string, content: Buffer) => boolean | undefined);
|
|
1274
|
-
renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) =>
|
|
1275
|
-
}
|
|
1276
|
-
interface BindingAssetSource {
|
|
1277
|
-
inner: string | Uint8Array;
|
|
1262
|
+
renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) => undefined | string | BindingRenderBuiltUrlRet;
|
|
1278
1263
|
}
|
|
1279
1264
|
interface BindingBuildImportAnalysisPluginConfig {
|
|
1280
1265
|
preloadCode: string;
|
|
@@ -1282,9 +1267,16 @@ interface BindingBuildImportAnalysisPluginConfig {
|
|
|
1282
1267
|
optimizeModulePreloadRelativePaths: boolean;
|
|
1283
1268
|
renderBuiltUrl: boolean;
|
|
1284
1269
|
isRelativeBase: boolean;
|
|
1285
|
-
|
|
1270
|
+
v2?: BindingBuildImportAnalysisPluginV2Config;
|
|
1271
|
+
}
|
|
1272
|
+
interface BindingBuildImportAnalysisPluginV2Config {
|
|
1273
|
+
isSsr: boolean;
|
|
1274
|
+
urlBase: string;
|
|
1275
|
+
decodedBase: string;
|
|
1276
|
+
modulePreload: false | BindingModulePreloadOptions;
|
|
1277
|
+
renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) => undefined | string | BindingRenderBuiltUrlRet;
|
|
1286
1278
|
}
|
|
1287
|
-
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';
|
|
1288
1280
|
interface BindingClientHmrUpdate {
|
|
1289
1281
|
clientId: string;
|
|
1290
1282
|
update: BindingHmrUpdate;
|
|
@@ -1365,6 +1357,13 @@ interface BindingManifestPluginConfig {
|
|
|
1365
1357
|
isLegacy?: () => boolean;
|
|
1366
1358
|
cssEntries: () => Record<string, string>;
|
|
1367
1359
|
}
|
|
1360
|
+
interface BindingModulePreloadOptions {
|
|
1361
|
+
polyfill: boolean;
|
|
1362
|
+
resolveDependencies?: (filename: string, deps: string[], context: {
|
|
1363
|
+
hostId: string;
|
|
1364
|
+
hostType: 'html' | 'js';
|
|
1365
|
+
}) => string[];
|
|
1366
|
+
}
|
|
1368
1367
|
interface BindingModulePreloadPolyfillPluginConfig {
|
|
1369
1368
|
isServer?: boolean;
|
|
1370
1369
|
}
|
|
@@ -1372,10 +1371,6 @@ interface BindingModules {
|
|
|
1372
1371
|
values: Array<BindingRenderedModule>;
|
|
1373
1372
|
keys: Array<string>;
|
|
1374
1373
|
}
|
|
1375
|
-
interface BindingOutputs {
|
|
1376
|
-
chunks: Array<BindingOutputChunk>;
|
|
1377
|
-
assets: Array<BindingOutputAsset>;
|
|
1378
|
-
}
|
|
1379
1374
|
interface BindingReactRefreshWrapperPluginConfig {
|
|
1380
1375
|
cwd: string;
|
|
1381
1376
|
include?: Array<BindingStringOrRegex>;
|
|
@@ -1454,7 +1449,7 @@ interface BindingViteCssPostPluginConfig {
|
|
|
1454
1449
|
libCssFilename?: string;
|
|
1455
1450
|
isLegacy?: () => boolean;
|
|
1456
1451
|
cssMinify?: (css: string) => Promise<string>;
|
|
1457
|
-
renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) =>
|
|
1452
|
+
renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) => undefined | string | BindingRenderBuiltUrlRet;
|
|
1458
1453
|
}
|
|
1459
1454
|
interface BindingViteHtmlPluginConfig {
|
|
1460
1455
|
isLib: boolean;
|
|
@@ -1463,13 +1458,9 @@ interface BindingViteHtmlPluginConfig {
|
|
|
1463
1458
|
publicDir: string;
|
|
1464
1459
|
decodedBase: string;
|
|
1465
1460
|
cssCodeSplit: boolean;
|
|
1466
|
-
|
|
1461
|
+
modulePreload: false | BindingModulePreloadOptions;
|
|
1467
1462
|
assetInlineLimit: number | ((file: string, content: Buffer) => boolean | undefined);
|
|
1468
|
-
renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) =>
|
|
1469
|
-
resolveDependencies?: boolean | ((filename: string, dependencies: string[], context: {
|
|
1470
|
-
hostId: string;
|
|
1471
|
-
hostType: 'html' | 'js';
|
|
1472
|
-
}) => Promise<string[]>);
|
|
1463
|
+
renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) => undefined | string | BindingRenderBuiltUrlRet;
|
|
1473
1464
|
}
|
|
1474
1465
|
interface BindingViteResolvePluginConfig {
|
|
1475
1466
|
resolveOptions: BindingViteResolvePluginResolveOptions;
|
|
@@ -1524,4 +1515,4 @@ interface PreRenderedChunk {
|
|
|
1524
1515
|
exports: Array<string>;
|
|
1525
1516
|
}
|
|
1526
1517
|
//#endregion
|
|
1527
|
-
export { IsolatedDeclarationsOptions as A,
|
|
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-C20xiVob.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 };
|