rolldown 1.0.0-beta.54 → 1.0.0-beta.56
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 +19 -19
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +8 -8
- package/dist/experimental-index.d.mts +37 -4
- package/dist/experimental-index.mjs +49 -22
- package/dist/filter-index.d.mts +2 -2
- package/dist/filter-index.mjs +1 -1
- package/dist/get-log-filter.d.mts +7 -0
- package/dist/get-log-filter.mjs +48 -0
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +10 -14
- package/dist/parallel-plugin-worker.mjs +5 -5
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +2 -2
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +3 -3
- package/dist/shared/{binding-yIBVkeOE.d.mts → binding-CDyF6W3D.d.mts} +15 -10
- package/dist/shared/{binding-BgawCXFG.mjs → binding-CtWITWm-.mjs} +51 -27
- package/dist/shared/{bindingify-input-options-DvsExmEF.mjs → bindingify-input-options-CO3Vzzk3.mjs} +58 -24
- package/dist/shared/{constructors-BgO0Ou3T.d.mts → constructors-Dw-B6Be3.d.mts} +2 -2
- package/dist/shared/{constructors-DqAPGbqJ.mjs → constructors-Jt3eRoTg.mjs} +1 -1
- package/dist/shared/{define-config-COJu-A7R.d.mts → define-config-izclUEbx.d.mts} +19 -43
- package/dist/shared/{load-config--qXpT-nH.mjs → load-config-BpSXYU8O.mjs} +1 -1
- package/dist/shared/logging-BpAvp7KV.d.mts +37 -0
- package/dist/shared/{logs-CSQ_UMWp.mjs → logs-Up1RAnkl.mjs} +4 -2
- package/dist/shared/{normalize-string-or-regex-CF1OWLn9.mjs → normalize-string-or-regex-DFzBrq1v.mjs} +6 -6
- package/dist/shared/{parse-ast-index-DeJDe-DO.mjs → parse-ast-index-BQgRrweO.mjs} +13 -10
- package/dist/shared/{rolldown-BsTgRBvz.mjs → rolldown-DA3tdfJk.mjs} +1 -1
- package/dist/shared/{rolldown-build-DtYoS8Tq.mjs → rolldown-build-CUD1BA8L.mjs} +25 -18
- package/dist/shared/{watch-CfGzq0YA.mjs → watch-XY1CZgsw.mjs} +11 -11
- package/package.json +20 -19
- /package/dist/shared/{define-config-DfeZGBEt.mjs → define-config-BF4P-Pum.mjs} +0 -0
- /package/dist/shared/{misc-CxyvWjTr.mjs → misc-DpjTMcQQ.mjs} +0 -0
- /package/dist/shared/{prompt-pmGBC3ws.mjs → prompt-CNt8OM9C.mjs} +0 -0
|
@@ -1,7 +1,31 @@
|
|
|
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
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
9
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
10
|
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
14
|
+
key = keys[i];
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
16
|
+
__defProp(to, key, {
|
|
17
|
+
get: ((k) => from[k]).bind(null, key),
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return to;
|
|
24
|
+
};
|
|
25
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
26
|
+
value: mod,
|
|
27
|
+
enumerable: true
|
|
28
|
+
}) : target, mod));
|
|
5
29
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
6
30
|
|
|
7
31
|
//#endregion
|
|
@@ -86,7 +110,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
86
110
|
try {
|
|
87
111
|
const binding = __require("@rolldown/binding-android-arm64");
|
|
88
112
|
const bindingPackageVersion = __require("@rolldown/binding-android-arm64/package.json").version;
|
|
89
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
113
|
+
if (bindingPackageVersion !== "1.0.0-beta.56" && 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.56 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
90
114
|
return binding;
|
|
91
115
|
} catch (e) {
|
|
92
116
|
loadErrors.push(e);
|
|
@@ -100,7 +124,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
100
124
|
try {
|
|
101
125
|
const binding = __require("@rolldown/binding-android-arm-eabi");
|
|
102
126
|
const bindingPackageVersion = __require("@rolldown/binding-android-arm-eabi/package.json").version;
|
|
103
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
127
|
+
if (bindingPackageVersion !== "1.0.0-beta.56" && 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.56 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
104
128
|
return binding;
|
|
105
129
|
} catch (e) {
|
|
106
130
|
loadErrors.push(e);
|
|
@@ -115,7 +139,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
115
139
|
try {
|
|
116
140
|
const binding = __require("@rolldown/binding-win32-x64-gnu");
|
|
117
141
|
const bindingPackageVersion = __require("@rolldown/binding-win32-x64-gnu/package.json").version;
|
|
118
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
142
|
+
if (bindingPackageVersion !== "1.0.0-beta.56" && 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.56 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
119
143
|
return binding;
|
|
120
144
|
} catch (e) {
|
|
121
145
|
loadErrors.push(e);
|
|
@@ -129,7 +153,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
129
153
|
try {
|
|
130
154
|
const binding = __require("@rolldown/binding-win32-x64-msvc");
|
|
131
155
|
const bindingPackageVersion = __require("@rolldown/binding-win32-x64-msvc/package.json").version;
|
|
132
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
156
|
+
if (bindingPackageVersion !== "1.0.0-beta.56" && 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.56 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
133
157
|
return binding;
|
|
134
158
|
} catch (e) {
|
|
135
159
|
loadErrors.push(e);
|
|
@@ -144,7 +168,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
144
168
|
try {
|
|
145
169
|
const binding = __require("@rolldown/binding-win32-ia32-msvc");
|
|
146
170
|
const bindingPackageVersion = __require("@rolldown/binding-win32-ia32-msvc/package.json").version;
|
|
147
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
171
|
+
if (bindingPackageVersion !== "1.0.0-beta.56" && 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.56 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
148
172
|
return binding;
|
|
149
173
|
} catch (e) {
|
|
150
174
|
loadErrors.push(e);
|
|
@@ -158,7 +182,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
158
182
|
try {
|
|
159
183
|
const binding = __require("@rolldown/binding-win32-arm64-msvc");
|
|
160
184
|
const bindingPackageVersion = __require("@rolldown/binding-win32-arm64-msvc/package.json").version;
|
|
161
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
185
|
+
if (bindingPackageVersion !== "1.0.0-beta.56" && 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.56 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
162
186
|
return binding;
|
|
163
187
|
} catch (e) {
|
|
164
188
|
loadErrors.push(e);
|
|
@@ -173,7 +197,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
173
197
|
try {
|
|
174
198
|
const binding = __require("@rolldown/binding-darwin-universal");
|
|
175
199
|
const bindingPackageVersion = __require("@rolldown/binding-darwin-universal/package.json").version;
|
|
176
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
200
|
+
if (bindingPackageVersion !== "1.0.0-beta.56" && 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.56 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
177
201
|
return binding;
|
|
178
202
|
} catch (e) {
|
|
179
203
|
loadErrors.push(e);
|
|
@@ -187,7 +211,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
187
211
|
try {
|
|
188
212
|
const binding = __require("@rolldown/binding-darwin-x64");
|
|
189
213
|
const bindingPackageVersion = __require("@rolldown/binding-darwin-x64/package.json").version;
|
|
190
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
214
|
+
if (bindingPackageVersion !== "1.0.0-beta.56" && 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.56 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
191
215
|
return binding;
|
|
192
216
|
} catch (e) {
|
|
193
217
|
loadErrors.push(e);
|
|
@@ -201,7 +225,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
201
225
|
try {
|
|
202
226
|
const binding = __require("@rolldown/binding-darwin-arm64");
|
|
203
227
|
const bindingPackageVersion = __require("@rolldown/binding-darwin-arm64/package.json").version;
|
|
204
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
228
|
+
if (bindingPackageVersion !== "1.0.0-beta.56" && 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.56 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
205
229
|
return binding;
|
|
206
230
|
} catch (e) {
|
|
207
231
|
loadErrors.push(e);
|
|
@@ -216,7 +240,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
216
240
|
try {
|
|
217
241
|
const binding = __require("@rolldown/binding-freebsd-x64");
|
|
218
242
|
const bindingPackageVersion = __require("@rolldown/binding-freebsd-x64/package.json").version;
|
|
219
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
243
|
+
if (bindingPackageVersion !== "1.0.0-beta.56" && 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.56 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
220
244
|
return binding;
|
|
221
245
|
} catch (e) {
|
|
222
246
|
loadErrors.push(e);
|
|
@@ -230,7 +254,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
230
254
|
try {
|
|
231
255
|
const binding = __require("@rolldown/binding-freebsd-arm64");
|
|
232
256
|
const bindingPackageVersion = __require("@rolldown/binding-freebsd-arm64/package.json").version;
|
|
233
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
257
|
+
if (bindingPackageVersion !== "1.0.0-beta.56" && 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.56 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
234
258
|
return binding;
|
|
235
259
|
} catch (e) {
|
|
236
260
|
loadErrors.push(e);
|
|
@@ -245,7 +269,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
245
269
|
try {
|
|
246
270
|
const binding = __require("@rolldown/binding-linux-x64-musl");
|
|
247
271
|
const bindingPackageVersion = __require("@rolldown/binding-linux-x64-musl/package.json").version;
|
|
248
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
272
|
+
if (bindingPackageVersion !== "1.0.0-beta.56" && 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.56 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
249
273
|
return binding;
|
|
250
274
|
} catch (e) {
|
|
251
275
|
loadErrors.push(e);
|
|
@@ -259,7 +283,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
259
283
|
try {
|
|
260
284
|
const binding = __require("@rolldown/binding-linux-x64-gnu");
|
|
261
285
|
const bindingPackageVersion = __require("@rolldown/binding-linux-x64-gnu/package.json").version;
|
|
262
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
286
|
+
if (bindingPackageVersion !== "1.0.0-beta.56" && 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.56 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
263
287
|
return binding;
|
|
264
288
|
} catch (e) {
|
|
265
289
|
loadErrors.push(e);
|
|
@@ -274,7 +298,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
274
298
|
try {
|
|
275
299
|
const binding = __require("@rolldown/binding-linux-arm64-musl");
|
|
276
300
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-musl/package.json").version;
|
|
277
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
301
|
+
if (bindingPackageVersion !== "1.0.0-beta.56" && 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.56 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
278
302
|
return binding;
|
|
279
303
|
} catch (e) {
|
|
280
304
|
loadErrors.push(e);
|
|
@@ -288,7 +312,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
288
312
|
try {
|
|
289
313
|
const binding = __require("@rolldown/binding-linux-arm64-gnu");
|
|
290
314
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-gnu/package.json").version;
|
|
291
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
315
|
+
if (bindingPackageVersion !== "1.0.0-beta.56" && 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.56 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
292
316
|
return binding;
|
|
293
317
|
} catch (e) {
|
|
294
318
|
loadErrors.push(e);
|
|
@@ -303,7 +327,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
303
327
|
try {
|
|
304
328
|
const binding = __require("@rolldown/binding-linux-arm-musleabihf");
|
|
305
329
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm-musleabihf/package.json").version;
|
|
306
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
330
|
+
if (bindingPackageVersion !== "1.0.0-beta.56" && 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.56 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
307
331
|
return binding;
|
|
308
332
|
} catch (e) {
|
|
309
333
|
loadErrors.push(e);
|
|
@@ -317,7 +341,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
317
341
|
try {
|
|
318
342
|
const binding = __require("@rolldown/binding-linux-arm-gnueabihf");
|
|
319
343
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm-gnueabihf/package.json").version;
|
|
320
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
344
|
+
if (bindingPackageVersion !== "1.0.0-beta.56" && 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.56 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
321
345
|
return binding;
|
|
322
346
|
} catch (e) {
|
|
323
347
|
loadErrors.push(e);
|
|
@@ -332,7 +356,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
332
356
|
try {
|
|
333
357
|
const binding = __require("@rolldown/binding-linux-loong64-musl");
|
|
334
358
|
const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-musl/package.json").version;
|
|
335
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
359
|
+
if (bindingPackageVersion !== "1.0.0-beta.56" && 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.56 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
336
360
|
return binding;
|
|
337
361
|
} catch (e) {
|
|
338
362
|
loadErrors.push(e);
|
|
@@ -346,7 +370,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
346
370
|
try {
|
|
347
371
|
const binding = __require("@rolldown/binding-linux-loong64-gnu");
|
|
348
372
|
const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-gnu/package.json").version;
|
|
349
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
373
|
+
if (bindingPackageVersion !== "1.0.0-beta.56" && 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.56 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
350
374
|
return binding;
|
|
351
375
|
} catch (e) {
|
|
352
376
|
loadErrors.push(e);
|
|
@@ -361,7 +385,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
361
385
|
try {
|
|
362
386
|
const binding = __require("@rolldown/binding-linux-riscv64-musl");
|
|
363
387
|
const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-musl/package.json").version;
|
|
364
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
388
|
+
if (bindingPackageVersion !== "1.0.0-beta.56" && 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.56 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
365
389
|
return binding;
|
|
366
390
|
} catch (e) {
|
|
367
391
|
loadErrors.push(e);
|
|
@@ -375,7 +399,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
375
399
|
try {
|
|
376
400
|
const binding = __require("@rolldown/binding-linux-riscv64-gnu");
|
|
377
401
|
const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-gnu/package.json").version;
|
|
378
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
402
|
+
if (bindingPackageVersion !== "1.0.0-beta.56" && 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.56 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
379
403
|
return binding;
|
|
380
404
|
} catch (e) {
|
|
381
405
|
loadErrors.push(e);
|
|
@@ -390,7 +414,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
390
414
|
try {
|
|
391
415
|
const binding = __require("@rolldown/binding-linux-ppc64-gnu");
|
|
392
416
|
const bindingPackageVersion = __require("@rolldown/binding-linux-ppc64-gnu/package.json").version;
|
|
393
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
417
|
+
if (bindingPackageVersion !== "1.0.0-beta.56" && 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.56 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
394
418
|
return binding;
|
|
395
419
|
} catch (e) {
|
|
396
420
|
loadErrors.push(e);
|
|
@@ -404,7 +428,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
404
428
|
try {
|
|
405
429
|
const binding = __require("@rolldown/binding-linux-s390x-gnu");
|
|
406
430
|
const bindingPackageVersion = __require("@rolldown/binding-linux-s390x-gnu/package.json").version;
|
|
407
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
431
|
+
if (bindingPackageVersion !== "1.0.0-beta.56" && 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.56 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
408
432
|
return binding;
|
|
409
433
|
} catch (e) {
|
|
410
434
|
loadErrors.push(e);
|
|
@@ -419,7 +443,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
419
443
|
try {
|
|
420
444
|
const binding = __require("@rolldown/binding-openharmony-arm64");
|
|
421
445
|
const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm64/package.json").version;
|
|
422
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
446
|
+
if (bindingPackageVersion !== "1.0.0-beta.56" && 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.56 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
423
447
|
return binding;
|
|
424
448
|
} catch (e) {
|
|
425
449
|
loadErrors.push(e);
|
|
@@ -433,7 +457,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
433
457
|
try {
|
|
434
458
|
const binding = __require("@rolldown/binding-openharmony-x64");
|
|
435
459
|
const bindingPackageVersion = __require("@rolldown/binding-openharmony-x64/package.json").version;
|
|
436
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
460
|
+
if (bindingPackageVersion !== "1.0.0-beta.56" && 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.56 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
437
461
|
return binding;
|
|
438
462
|
} catch (e) {
|
|
439
463
|
loadErrors.push(e);
|
|
@@ -447,7 +471,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
447
471
|
try {
|
|
448
472
|
const binding = __require("@rolldown/binding-openharmony-arm");
|
|
449
473
|
const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm/package.json").version;
|
|
450
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
474
|
+
if (bindingPackageVersion !== "1.0.0-beta.56" && 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.56 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
451
475
|
return binding;
|
|
452
476
|
} catch (e) {
|
|
453
477
|
loadErrors.push(e);
|
|
@@ -556,4 +580,4 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
556
580
|
}));
|
|
557
581
|
|
|
558
582
|
//#endregion
|
|
559
|
-
export { require_binding as t };
|
|
583
|
+
export { __toESM as n, require_binding as t };
|
package/dist/shared/{bindingify-input-options-DvsExmEF.mjs → bindingify-input-options-CO3Vzzk3.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as require_binding } from "./binding-
|
|
2
|
-
import { c as logPluginError, n as error, r as logCycleLoading, t as augmentCodeLocation } from "./logs-
|
|
3
|
-
import { a as unreachable, o as unsupported, t as arraify } from "./misc-
|
|
4
|
-
import { E as LOG_LEVEL_WARN, S as normalizeLog, _ as PlainObjectLike, a as bindingifyManifestPlugin, c as collectChangedBundle, d as bindingifySourcemap, f as transformRenderedChunk, g as lazyProp, i as bindingifyCSSPostPlugin, l as transformToOutputBundle, m as bindingAssetSource, n as BuiltinPlugin, o as bindingifyViteHtmlPlugin, p as __decorate, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex, v as MinimalPluginContextImpl } from "./normalize-string-or-regex-
|
|
5
|
-
import { t as parseAst } from "./parse-ast-index-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-CtWITWm-.mjs";
|
|
2
|
+
import { c as logPluginError, n as error, r as logCycleLoading, t as augmentCodeLocation } from "./logs-Up1RAnkl.mjs";
|
|
3
|
+
import { a as unreachable, o as unsupported, t as arraify } from "./misc-DpjTMcQQ.mjs";
|
|
4
|
+
import { E as LOG_LEVEL_WARN, S as normalizeLog, _ as PlainObjectLike, a as bindingifyManifestPlugin, c as collectChangedBundle, d as bindingifySourcemap, f as transformRenderedChunk, g as lazyProp, i as bindingifyCSSPostPlugin, l as transformToOutputBundle, m as bindingAssetSource, n as BuiltinPlugin, o as bindingifyViteHtmlPlugin, p as __decorate, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex, v as MinimalPluginContextImpl } from "./normalize-string-or-regex-DFzBrq1v.mjs";
|
|
5
|
+
import { t as parseAst } from "./parse-ast-index-BQgRrweO.mjs";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import * as filter from "@rolldown/pluginutils";
|
|
8
8
|
import fsp from "node:fs/promises";
|
|
@@ -143,7 +143,7 @@ function e(e$1, t$2, n$1) {
|
|
|
143
143
|
|
|
144
144
|
//#endregion
|
|
145
145
|
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/purry-DH9cw9sy.js
|
|
146
|
-
function t(t$2, n$1, r) {
|
|
146
|
+
function t$1(t$2, n$1, r) {
|
|
147
147
|
let i = t$2.length - n$1.length;
|
|
148
148
|
if (i === 0) return t$2(...n$1);
|
|
149
149
|
if (i === 1) return e(t$2, n$1, r);
|
|
@@ -152,8 +152,8 @@ function t(t$2, n$1, r) {
|
|
|
152
152
|
|
|
153
153
|
//#endregion
|
|
154
154
|
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/partition-DAu403JQ.js
|
|
155
|
-
function t
|
|
156
|
-
return t(n, t$2);
|
|
155
|
+
function t(...t$2) {
|
|
156
|
+
return t$1(n, t$2);
|
|
157
157
|
}
|
|
158
158
|
const n = (e$1, t$2) => {
|
|
159
159
|
let n$1 = [[], []];
|
|
@@ -183,8 +183,8 @@ function transformFilterMatcherToFilterExprs(filterOption) {
|
|
|
183
183
|
let idExcludes = [];
|
|
184
184
|
let codeIncludes = [];
|
|
185
185
|
let codeExcludes = [];
|
|
186
|
-
if (id) [idIncludes, idExcludes] = t
|
|
187
|
-
if (code) [codeIncludes, codeExcludes] = t
|
|
186
|
+
if (id) [idIncludes, idExcludes] = t(generalHookFilterMatcherToFilterExprs(id, "id") ?? [], (m) => m.kind === "include");
|
|
187
|
+
if (code) [codeIncludes, codeExcludes] = t(generalHookFilterMatcherToFilterExprs(code, "code") ?? [], (m) => m.kind === "include");
|
|
188
188
|
ret.push(...idExcludes);
|
|
189
189
|
ret.push(...codeExcludes);
|
|
190
190
|
let andExprList = [];
|
|
@@ -208,6 +208,20 @@ function bindingifyFilterExpr(expr) {
|
|
|
208
208
|
bindingifyFilterExprImpl(expr, list);
|
|
209
209
|
return list;
|
|
210
210
|
}
|
|
211
|
+
function containsImporterId(expr) {
|
|
212
|
+
switch (expr.kind) {
|
|
213
|
+
case "and":
|
|
214
|
+
case "or": return expr.args.some(containsImporterId);
|
|
215
|
+
case "not":
|
|
216
|
+
case "include":
|
|
217
|
+
case "exclude": return containsImporterId(expr.expr);
|
|
218
|
+
case "importerId": return true;
|
|
219
|
+
default: return false;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
function assertNoImporterId(filterExprs, hookName) {
|
|
223
|
+
if (filterExprs?.some(containsImporterId)) throw new Error(`The \`importerId\` filter can only be used with the \`resolveId\` hook, but it was used with the \`${hookName}\` hook.`);
|
|
224
|
+
}
|
|
211
225
|
function bindingifyFilterExprImpl(expr, list) {
|
|
212
226
|
switch (expr.kind) {
|
|
213
227
|
case "and": {
|
|
@@ -239,6 +253,13 @@ function bindingifyFilterExprImpl(expr, list) {
|
|
|
239
253
|
});
|
|
240
254
|
if (expr.params.cleanUrl) list.push({ kind: "CleanUrl" });
|
|
241
255
|
break;
|
|
256
|
+
case "importerId":
|
|
257
|
+
list.push({
|
|
258
|
+
kind: "ImporterId",
|
|
259
|
+
payload: expr.pattern
|
|
260
|
+
});
|
|
261
|
+
if (expr.params.cleanUrl) list.push({ kind: "CleanUrl" });
|
|
262
|
+
break;
|
|
242
263
|
case "moduleType":
|
|
243
264
|
list.push({
|
|
244
265
|
kind: "ModuleType",
|
|
@@ -279,32 +300,39 @@ function bindingifyResolveIdFilter(filterOption) {
|
|
|
279
300
|
}
|
|
280
301
|
function bindingifyLoadFilter(filterOption) {
|
|
281
302
|
if (!filterOption) return;
|
|
282
|
-
if (Array.isArray(filterOption))
|
|
303
|
+
if (Array.isArray(filterOption)) {
|
|
304
|
+
assertNoImporterId(filterOption, "load");
|
|
305
|
+
return { value: filterOption.map(bindingifyFilterExpr) };
|
|
306
|
+
}
|
|
283
307
|
return filterOption.id ? bindingifyGeneralHookFilter("id", filterOption.id) : void 0;
|
|
284
308
|
}
|
|
285
309
|
function bindingifyTransformFilter(filterOption) {
|
|
286
310
|
if (!filterOption) return;
|
|
287
311
|
let filterExprs = transformFilterMatcherToFilterExprs(filterOption);
|
|
312
|
+
assertNoImporterId(filterExprs, "transform");
|
|
288
313
|
let ret = [];
|
|
289
314
|
if (filterExprs) ret = filterExprs.map(bindingifyFilterExpr);
|
|
290
315
|
return { value: ret.length > 0 ? ret : void 0 };
|
|
291
316
|
}
|
|
292
317
|
function bindingifyRenderChunkFilter(filterOption) {
|
|
293
318
|
if (!filterOption) return;
|
|
294
|
-
if (Array.isArray(filterOption))
|
|
319
|
+
if (Array.isArray(filterOption)) {
|
|
320
|
+
assertNoImporterId(filterOption, "renderChunk");
|
|
321
|
+
return { value: filterOption.map(bindingifyFilterExpr) };
|
|
322
|
+
}
|
|
295
323
|
return filterOption.code ? bindingifyGeneralHookFilter("code", filterOption.code) : void 0;
|
|
296
324
|
}
|
|
297
325
|
|
|
298
326
|
//#endregion
|
|
299
327
|
//#region src/plugin/bindingify-plugin-hook-meta.ts
|
|
300
|
-
var import_binding
|
|
328
|
+
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
301
329
|
function bindingifyPluginHookMeta(options) {
|
|
302
330
|
return { order: bindingPluginOrder(options.order) };
|
|
303
331
|
}
|
|
304
332
|
function bindingPluginOrder(order) {
|
|
305
333
|
switch (order) {
|
|
306
|
-
case "post": return import_binding
|
|
307
|
-
case "pre": return import_binding
|
|
334
|
+
case "post": return import_binding.BindingPluginOrder.Post;
|
|
335
|
+
case "pre": return import_binding.BindingPluginOrder.Pre;
|
|
308
336
|
case null:
|
|
309
337
|
case void 0: return;
|
|
310
338
|
default: throw new Error(`Unknown plugin order: ${order}`);
|
|
@@ -471,7 +499,6 @@ var TransformPluginContextImpl = class extends PluginContextImpl {
|
|
|
471
499
|
|
|
472
500
|
//#endregion
|
|
473
501
|
//#region src/plugin/bindingify-build-hooks.ts
|
|
474
|
-
var import_binding$1 = require_binding();
|
|
475
502
|
function bindingifyBuildStart(args) {
|
|
476
503
|
const hook = args.plugin.buildStart;
|
|
477
504
|
if (!hook) return {};
|
|
@@ -571,7 +598,7 @@ function bindingifyTransform(args) {
|
|
|
571
598
|
Object.defineProperties(meta$1, {
|
|
572
599
|
magicString: { get() {
|
|
573
600
|
if (magicStringInstance) return magicStringInstance;
|
|
574
|
-
magicStringInstance = new import_binding
|
|
601
|
+
magicStringInstance = new import_binding.BindingMagicString(code);
|
|
575
602
|
return magicStringInstance;
|
|
576
603
|
} },
|
|
577
604
|
ast: { get() {
|
|
@@ -605,7 +632,7 @@ function bindingifyTransform(args) {
|
|
|
605
632
|
let normalizedCode = void 0;
|
|
606
633
|
let map = ret.map;
|
|
607
634
|
if (typeof ret.code === "string") normalizedCode = ret.code;
|
|
608
|
-
else if (ret.code instanceof import_binding
|
|
635
|
+
else if (ret.code instanceof import_binding.BindingMagicString) {
|
|
609
636
|
let magicString = ret.code;
|
|
610
637
|
normalizedCode = magicString.toString();
|
|
611
638
|
let fallbackSourcemap = ctx.sendMagicString(magicString);
|
|
@@ -1119,6 +1146,12 @@ var NormalizedOutputOptionsImpl = class extends PlainObjectLike {
|
|
|
1119
1146
|
get footer() {
|
|
1120
1147
|
return normalizeAddon(this.outputOptions.footer);
|
|
1121
1148
|
}
|
|
1149
|
+
get postBanner() {
|
|
1150
|
+
return normalizeAddon(this.outputOptions.postBanner);
|
|
1151
|
+
}
|
|
1152
|
+
get postFooter() {
|
|
1153
|
+
return normalizeAddon(this.outputOptions.postFooter);
|
|
1154
|
+
}
|
|
1122
1155
|
get intro() {
|
|
1123
1156
|
return normalizeAddon(this.outputOptions.intro);
|
|
1124
1157
|
}
|
|
@@ -1200,6 +1233,8 @@ __decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "inlineDynamicImpo
|
|
|
1200
1233
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "externalLiveBindings", null);
|
|
1201
1234
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "banner", null);
|
|
1202
1235
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "footer", null);
|
|
1236
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "postBanner", null);
|
|
1237
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "postFooter", null);
|
|
1203
1238
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "intro", null);
|
|
1204
1239
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "outro", null);
|
|
1205
1240
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "esModule", null);
|
|
@@ -1351,7 +1386,6 @@ function normalizeTransformOptions(inputOptions) {
|
|
|
1351
1386
|
|
|
1352
1387
|
//#endregion
|
|
1353
1388
|
//#region src/utils/bindingify-input-options.ts
|
|
1354
|
-
var import_binding = require_binding();
|
|
1355
1389
|
function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normalizedOutputPlugins, onLog, logLevel, watchMode) {
|
|
1356
1390
|
const pluginContextData = new PluginContextData(onLog, outputOptions, normalizedOutputPlugins);
|
|
1357
1391
|
const plugins = rawPlugins.map((plugin) => {
|
|
@@ -1405,10 +1439,10 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
|
|
|
1405
1439
|
tsconfig: inputOptions.resolve?.tsconfigFilename ?? inputOptions.tsconfig
|
|
1406
1440
|
};
|
|
1407
1441
|
}
|
|
1408
|
-
function
|
|
1409
|
-
if (
|
|
1410
|
-
if (typeof
|
|
1411
|
-
return
|
|
1442
|
+
function bindingifyDevMode(devMode) {
|
|
1443
|
+
if (devMode) {
|
|
1444
|
+
if (typeof devMode === "boolean") return devMode ? {} : void 0;
|
|
1445
|
+
return devMode;
|
|
1412
1446
|
}
|
|
1413
1447
|
}
|
|
1414
1448
|
function bindingifyAttachDebugInfo(attachDebugInfo) {
|
|
@@ -1444,7 +1478,7 @@ function bindingifyExperimental(experimental) {
|
|
|
1444
1478
|
disableLiveBindings: experimental?.disableLiveBindings,
|
|
1445
1479
|
viteMode: experimental?.viteMode,
|
|
1446
1480
|
resolveNewUrlToAsset: experimental?.resolveNewUrlToAsset,
|
|
1447
|
-
|
|
1481
|
+
devMode: bindingifyDevMode(experimental?.devMode),
|
|
1448
1482
|
attachDebugInfo: bindingifyAttachDebugInfo(experimental?.attachDebugInfo),
|
|
1449
1483
|
chunkModulesOrder,
|
|
1450
1484
|
chunkImportMap: experimental?.chunkImportMap,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { D as BindingViteResolvePluginConfig, E as BindingViteReporterPluginConfig, S as BindingViteJsonPluginConfig, T as BindingViteReactRefreshWrapperPluginConfig, h as BindingViteBuildImportAnalysisPluginConfig, i as BindingEsmExternalRequirePluginConfig, k as BindingViteWasmHelperPluginConfig, o as BindingIsolatedDeclarationPluginConfig, p as BindingViteAssetImportMetaUrlPluginConfig, v as BindingViteDynamicImportVarsPluginConfig, w as BindingViteModulePreloadPolyfillPluginConfig, x as BindingViteImportGlobPluginConfig, y as BindingViteHtmlInlineProxyPluginConfig } from "./binding-CDyF6W3D.mjs";
|
|
2
|
+
import { A as BuiltinPlugin, Tt as StringOrRegExp } from "./define-config-izclUEbx.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/builtin-plugin/constructors.d.ts
|
|
5
5
|
declare function viteModulePreloadPolyfillPlugin(config?: BindingViteModulePreloadPolyfillPluginConfig): BuiltinPlugin;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable, t as normalizedStringOrRegex } from "./normalize-string-or-regex-
|
|
1
|
+
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable, t as normalizedStringOrRegex } from "./normalize-string-or-regex-DFzBrq1v.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/builtin-plugin/constructors.ts
|
|
4
4
|
function viteModulePreloadPolyfillPlugin(config) {
|
|
@@ -1,43 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as RollupLog, i as RollupError, n as LogLevelOption, o as RollupLogWithString, r as LogOrStringHandler, t as LogLevel } from "./logging-BpAvp7KV.mjs";
|
|
2
|
+
import { A as BindingWatcherBundler, B as ParserOptions, F as JsxOptions, I as MinifyOptions$1, M as ExternalMemoryStatus, V as PreRenderedChunk, W as TransformOptions$1, a as BindingHookResolveIdExtraArgs, d as BindingTransformHookExtraArgs, j as BindingWatcherEvent, l as BindingRenderedChunk, s as BindingMagicString, t as BindingBuiltinPluginName } from "./binding-CDyF6W3D.mjs";
|
|
2
3
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
3
4
|
import { Program } from "@oxc-project/types";
|
|
4
5
|
|
|
5
|
-
//#region src/log/logging.d.ts
|
|
6
|
-
type LogLevel = "info" | "debug" | "warn";
|
|
7
|
-
type LogLevelOption = LogLevel | "silent";
|
|
8
|
-
type LogLevelWithError = LogLevel | "error";
|
|
9
|
-
interface RollupLog {
|
|
10
|
-
binding?: string;
|
|
11
|
-
cause?: unknown;
|
|
12
|
-
code?: string;
|
|
13
|
-
exporter?: string;
|
|
14
|
-
frame?: string;
|
|
15
|
-
hook?: string;
|
|
16
|
-
id?: string;
|
|
17
|
-
ids?: string[];
|
|
18
|
-
loc?: {
|
|
19
|
-
column: number;
|
|
20
|
-
file?: string;
|
|
21
|
-
line: number;
|
|
22
|
-
};
|
|
23
|
-
message: string;
|
|
24
|
-
meta?: any;
|
|
25
|
-
names?: string[];
|
|
26
|
-
plugin?: string;
|
|
27
|
-
pluginCode?: unknown;
|
|
28
|
-
pos?: number;
|
|
29
|
-
reexporter?: string;
|
|
30
|
-
stack?: string;
|
|
31
|
-
url?: string;
|
|
32
|
-
}
|
|
33
|
-
type RollupLogWithString = RollupLog | string;
|
|
34
|
-
interface RollupError extends RollupLog {
|
|
35
|
-
name?: string;
|
|
36
|
-
stack?: string;
|
|
37
|
-
watchFiles?: string[];
|
|
38
|
-
}
|
|
39
|
-
type LogOrStringHandler = (level: LogLevelWithError, log: RollupLogWithString) => void;
|
|
40
|
-
//#endregion
|
|
41
6
|
//#region src/types/misc.d.ts
|
|
42
7
|
type SourcemapPathTransformOption = (relativeSourcePath: string, sourcemapPath: string) => string;
|
|
43
8
|
type SourcemapIgnoreListOption = (relativeSourcePath: string, sourcemapPath: string) => boolean;
|
|
@@ -299,6 +264,14 @@ interface OutputOptions {
|
|
|
299
264
|
sourcemapPathTransform?: SourcemapPathTransformOption;
|
|
300
265
|
banner?: string | AddonFunction;
|
|
301
266
|
footer?: string | AddonFunction;
|
|
267
|
+
/**
|
|
268
|
+
* Similar to `banner` option, but will run after the `renderChunk` hook and builtin minification.
|
|
269
|
+
*/
|
|
270
|
+
postBanner?: string | AddonFunction;
|
|
271
|
+
/**
|
|
272
|
+
* Similar to `footer` option, but will run after the `renderChunk` hook and builtin minification.
|
|
273
|
+
*/
|
|
274
|
+
postFooter?: string | AddonFunction;
|
|
302
275
|
intro?: string | AddonFunction;
|
|
303
276
|
outro?: string | AddonFunction;
|
|
304
277
|
extend?: boolean;
|
|
@@ -746,6 +719,8 @@ interface NormalizedOutputOptions {
|
|
|
746
719
|
externalLiveBindings: boolean;
|
|
747
720
|
banner: AddonFunction;
|
|
748
721
|
footer: AddonFunction;
|
|
722
|
+
postBanner: AddonFunction;
|
|
723
|
+
postFooter: AddonFunction;
|
|
749
724
|
intro: AddonFunction;
|
|
750
725
|
outro: AddonFunction;
|
|
751
726
|
esModule: boolean | "if-default-prop";
|
|
@@ -1155,7 +1130,7 @@ type PluginHooks = { [K in keyof FunctionPluginHooks]: ObjectHook<K extends Asyn
|
|
|
1155
1130
|
} : {})> };
|
|
1156
1131
|
type AddonHookFunction = (this: PluginContext, chunk: RenderedChunk) => string | Promise<string>;
|
|
1157
1132
|
type AddonHook = string | AddonHookFunction;
|
|
1158
|
-
interface OutputPlugin extends Partial<{ [K in OutputPluginHooks]: PluginHooks[K] }>, Partial<{ [K in AddonHooks]: ObjectHook<AddonHook> }> {
|
|
1133
|
+
interface OutputPlugin extends Partial<{ [K in keyof PluginHooks as K & OutputPluginHooks]: PluginHooks[K] }>, Partial<{ [K in AddonHooks]: ObjectHook<AddonHook> }> {
|
|
1159
1134
|
name: string;
|
|
1160
1135
|
}
|
|
1161
1136
|
interface Plugin<A = any> extends OutputPlugin, Partial<PluginHooks> {
|
|
@@ -1193,10 +1168,10 @@ interface ChecksOptions {
|
|
|
1193
1168
|
*/
|
|
1194
1169
|
missingNameOptionForIifeExport?: boolean;
|
|
1195
1170
|
/**
|
|
1196
|
-
* Whether to emit warning when detecting mixed
|
|
1171
|
+
* Whether to emit warning when detecting mixed exports
|
|
1197
1172
|
* @default true
|
|
1198
1173
|
*/
|
|
1199
|
-
|
|
1174
|
+
mixedExports?: boolean;
|
|
1200
1175
|
/**
|
|
1201
1176
|
* Whether to emit warning when detecting unresolved entry
|
|
1202
1177
|
* @default true
|
|
@@ -1373,10 +1348,11 @@ interface WatcherOptions {
|
|
|
1373
1348
|
clearScreen?: boolean;
|
|
1374
1349
|
}
|
|
1375
1350
|
type MakeAbsoluteExternalsRelative = boolean | "ifRelativeSource";
|
|
1376
|
-
type
|
|
1351
|
+
type DevModeOptions = boolean | {
|
|
1377
1352
|
host?: string;
|
|
1378
1353
|
port?: number;
|
|
1379
1354
|
implement?: string;
|
|
1355
|
+
lazy?: boolean;
|
|
1380
1356
|
};
|
|
1381
1357
|
type OptimizationOptions = {
|
|
1382
1358
|
/**
|
|
@@ -1499,7 +1475,7 @@ interface InputOptions {
|
|
|
1499
1475
|
disableLiveBindings?: boolean;
|
|
1500
1476
|
viteMode?: boolean;
|
|
1501
1477
|
resolveNewUrlToAsset?: boolean;
|
|
1502
|
-
|
|
1478
|
+
devMode?: DevModeOptions;
|
|
1503
1479
|
/**
|
|
1504
1480
|
* Control which order should use when rendering modules in chunk
|
|
1505
1481
|
*
|
|
@@ -1691,4 +1667,4 @@ declare function defineConfig(config: RolldownOptions[]): RolldownOptions[];
|
|
|
1691
1667
|
declare function defineConfig(config: RolldownOptionsFunction): RolldownOptionsFunction;
|
|
1692
1668
|
declare function defineConfig(config: ConfigExport): ConfigExport;
|
|
1693
1669
|
//#endregion
|
|
1694
|
-
export { RolldownFsModule as $, BuiltinPlugin as A, RolldownOutput as At, EmittedPrebuiltChunk as B,
|
|
1670
|
+
export { RolldownFsModule as $, BuiltinPlugin as A, RolldownOutput as At, EmittedPrebuiltChunk as B, ResolveIdResult as C, MaybePromise as Ct, SourceDescription as D, OutputChunk as Dt, RolldownPluginOption as E, OutputAsset as Et, OutputBundle as F, MinimalPluginContext as G, PluginContext as H, TreeshakingOptions as I, HookFilter as J, PluginContextMeta as K, TransformPluginContext as L, ExistingRawSourceMap as M, freeExternalMemory as Mt, SourceMapInput as N, ModuleInfo as Nt, TransformResult as O, RenderedChunk as Ot, RolldownOptionsFunction as P, SourcemapIgnoreListOption as Pt, RolldownFileStats as Q, EmittedAsset as R, ResolveIdExtraOptions as S, PreRenderedAsset as St, RolldownPlugin as T, StringOrRegExp as Tt, DefineParallelPluginResult as U, GetModuleInfo as V, defineParallelPlugin as W, BufferEncoding as X, ModuleTypeFilter as Y, RolldownDirectoryEntry as Z, ModuleType as _, GeneratedCodePreset as _t, InputOption as a, watch as at, PartialResolvedId as b, ModuleFormat as bt, OptimizationOptions as c, WatchOptions as ct, CustomPluginOptions as d, BuildOptions as dt, InternalModuleFormat as et, FunctionPluginHooks as f, build as ft, ModuleOptions as g, GeneratedCodeOptions as gt, LoadResult as h, ChunkingContext as ht, ExternalOption as i, WarningHandlerWithDefault as it, VERSION as j, SourceMap as jt, withFilter as k, RenderedModule as kt, WatcherOptions as l, rolldown as lt, ImportKind as m, ChunkFileNamesFunction as mt, ConfigExport as n, NormalizedInputOptions as nt, InputOptions as o, RolldownWatcher as ot, HookFilterExtension as p, AddonFunction as pt, GeneralHookFilter as q, RolldownOptions as r, LoggingFunction as rt, ModuleTypes as s, RolldownWatcherEvent as st, defineConfig as t, NormalizedOutputOptions as tt, AsyncPluginHooks as u, RolldownBuild as ut, ObjectHook as v, GlobalsFunction as vt, ResolvedId as w, PartialNull as wt, Plugin as x, OutputOptions as xt, ParallelPluginHooks as y, MinifyOptions as yt, EmittedFile as z };
|