rolldown 1.0.0-beta.54 → 1.0.0-beta.55
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 +10 -4
- package/dist/experimental-index.mjs +14 -15
- 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-BgawCXFG.mjs → binding-DMnPPQ90.mjs} +51 -27
- package/dist/shared/{binding-yIBVkeOE.d.mts → binding-r9j8jqRV.d.mts} +2 -0
- package/dist/shared/{bindingify-input-options-DvsExmEF.mjs → bindingify-input-options-A-rLIOKA.mjs} +28 -22
- package/dist/shared/{constructors-DqAPGbqJ.mjs → constructors-BGI2r6Tk.mjs} +1 -1
- package/dist/shared/{constructors-BgO0Ou3T.d.mts → constructors-DO8UjlE5.d.mts} +2 -2
- package/dist/shared/{define-config-COJu-A7R.d.mts → define-config-MdVaFcie.d.mts} +15 -40
- package/dist/shared/{load-config--qXpT-nH.mjs → load-config-DnirbDRj.mjs} +1 -1
- package/dist/shared/logging-BpAvp7KV.d.mts +37 -0
- package/dist/shared/{normalize-string-or-regex-CF1OWLn9.mjs → normalize-string-or-regex-B4d0IHth.mjs} +6 -6
- package/dist/shared/{parse-ast-index-DeJDe-DO.mjs → parse-ast-index-CoZSRGeP.mjs} +4 -4
- package/dist/shared/{rolldown-BsTgRBvz.mjs → rolldown-BTFK71hw.mjs} +1 -1
- package/dist/shared/{rolldown-build-DtYoS8Tq.mjs → rolldown-build-CNW2eye_.mjs} +22 -15
- package/dist/shared/{watch-CfGzq0YA.mjs → watch-CKam-d6K.mjs} +11 -11
- package/package.json +19 -18
- /package/dist/shared/{define-config-DfeZGBEt.mjs → define-config-BF4P-Pum.mjs} +0 -0
- /package/dist/shared/{logs-CSQ_UMWp.mjs → logs-sGci9sux.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.55" && 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.55 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.55" && 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.55 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.55" && 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.55 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.55" && 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.55 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.55" && 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.55 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.55" && 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.55 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.55" && 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.55 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.55" && 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.55 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.55" && 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.55 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.55" && 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.55 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.55" && 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.55 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.55" && 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.55 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.55" && 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.55 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.55" && 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.55 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.55" && 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.55 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.55" && 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.55 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.55" && 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.55 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.55" && 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.55 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.55" && 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.55 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.55" && 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.55 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.55" && 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.55 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.55" && 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.55 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.55" && 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.55 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.55" && 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.55 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.55" && 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.55 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.55" && 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.55 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 };
|
|
@@ -1303,6 +1303,8 @@ declare class BindingNormalizedOptions {
|
|
|
1303
1303
|
get footer(): string | undefined | null | undefined;
|
|
1304
1304
|
get intro(): string | undefined | null | undefined;
|
|
1305
1305
|
get outro(): string | undefined | null | undefined;
|
|
1306
|
+
get postBanner(): string | undefined | null | undefined;
|
|
1307
|
+
get postFooter(): string | undefined | null | undefined;
|
|
1306
1308
|
get externalLiveBindings(): boolean;
|
|
1307
1309
|
get extend(): boolean;
|
|
1308
1310
|
get globals(): Record<string, string> | undefined;
|
package/dist/shared/{bindingify-input-options-DvsExmEF.mjs → bindingify-input-options-A-rLIOKA.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-DMnPPQ90.mjs";
|
|
2
|
+
import { c as logPluginError, n as error, r as logCycleLoading, t as augmentCodeLocation } from "./logs-sGci9sux.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-B4d0IHth.mjs";
|
|
5
|
+
import { t as parseAst } from "./parse-ast-index-CoZSRGeP.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 = [];
|
|
@@ -297,14 +297,14 @@ function bindingifyRenderChunkFilter(filterOption) {
|
|
|
297
297
|
|
|
298
298
|
//#endregion
|
|
299
299
|
//#region src/plugin/bindingify-plugin-hook-meta.ts
|
|
300
|
-
var import_binding
|
|
300
|
+
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
301
301
|
function bindingifyPluginHookMeta(options) {
|
|
302
302
|
return { order: bindingPluginOrder(options.order) };
|
|
303
303
|
}
|
|
304
304
|
function bindingPluginOrder(order) {
|
|
305
305
|
switch (order) {
|
|
306
|
-
case "post": return import_binding
|
|
307
|
-
case "pre": return import_binding
|
|
306
|
+
case "post": return import_binding.BindingPluginOrder.Post;
|
|
307
|
+
case "pre": return import_binding.BindingPluginOrder.Pre;
|
|
308
308
|
case null:
|
|
309
309
|
case void 0: return;
|
|
310
310
|
default: throw new Error(`Unknown plugin order: ${order}`);
|
|
@@ -471,7 +471,6 @@ var TransformPluginContextImpl = class extends PluginContextImpl {
|
|
|
471
471
|
|
|
472
472
|
//#endregion
|
|
473
473
|
//#region src/plugin/bindingify-build-hooks.ts
|
|
474
|
-
var import_binding$1 = require_binding();
|
|
475
474
|
function bindingifyBuildStart(args) {
|
|
476
475
|
const hook = args.plugin.buildStart;
|
|
477
476
|
if (!hook) return {};
|
|
@@ -571,7 +570,7 @@ function bindingifyTransform(args) {
|
|
|
571
570
|
Object.defineProperties(meta$1, {
|
|
572
571
|
magicString: { get() {
|
|
573
572
|
if (magicStringInstance) return magicStringInstance;
|
|
574
|
-
magicStringInstance = new import_binding
|
|
573
|
+
magicStringInstance = new import_binding.BindingMagicString(code);
|
|
575
574
|
return magicStringInstance;
|
|
576
575
|
} },
|
|
577
576
|
ast: { get() {
|
|
@@ -605,7 +604,7 @@ function bindingifyTransform(args) {
|
|
|
605
604
|
let normalizedCode = void 0;
|
|
606
605
|
let map = ret.map;
|
|
607
606
|
if (typeof ret.code === "string") normalizedCode = ret.code;
|
|
608
|
-
else if (ret.code instanceof import_binding
|
|
607
|
+
else if (ret.code instanceof import_binding.BindingMagicString) {
|
|
609
608
|
let magicString = ret.code;
|
|
610
609
|
normalizedCode = magicString.toString();
|
|
611
610
|
let fallbackSourcemap = ctx.sendMagicString(magicString);
|
|
@@ -1119,6 +1118,12 @@ var NormalizedOutputOptionsImpl = class extends PlainObjectLike {
|
|
|
1119
1118
|
get footer() {
|
|
1120
1119
|
return normalizeAddon(this.outputOptions.footer);
|
|
1121
1120
|
}
|
|
1121
|
+
get postBanner() {
|
|
1122
|
+
return normalizeAddon(this.outputOptions.postBanner);
|
|
1123
|
+
}
|
|
1124
|
+
get postFooter() {
|
|
1125
|
+
return normalizeAddon(this.outputOptions.postFooter);
|
|
1126
|
+
}
|
|
1122
1127
|
get intro() {
|
|
1123
1128
|
return normalizeAddon(this.outputOptions.intro);
|
|
1124
1129
|
}
|
|
@@ -1200,6 +1205,8 @@ __decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "inlineDynamicImpo
|
|
|
1200
1205
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "externalLiveBindings", null);
|
|
1201
1206
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "banner", null);
|
|
1202
1207
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "footer", null);
|
|
1208
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "postBanner", null);
|
|
1209
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "postFooter", null);
|
|
1203
1210
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "intro", null);
|
|
1204
1211
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "outro", null);
|
|
1205
1212
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "esModule", null);
|
|
@@ -1351,7 +1358,6 @@ function normalizeTransformOptions(inputOptions) {
|
|
|
1351
1358
|
|
|
1352
1359
|
//#endregion
|
|
1353
1360
|
//#region src/utils/bindingify-input-options.ts
|
|
1354
|
-
var import_binding = require_binding();
|
|
1355
1361
|
function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normalizedOutputPlugins, onLog, logLevel, watchMode) {
|
|
1356
1362
|
const pluginContextData = new PluginContextData(onLog, outputOptions, normalizedOutputPlugins);
|
|
1357
1363
|
const plugins = rawPlugins.map((plugin) => {
|
|
@@ -1405,10 +1411,10 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
|
|
|
1405
1411
|
tsconfig: inputOptions.resolve?.tsconfigFilename ?? inputOptions.tsconfig
|
|
1406
1412
|
};
|
|
1407
1413
|
}
|
|
1408
|
-
function
|
|
1409
|
-
if (
|
|
1410
|
-
if (typeof
|
|
1411
|
-
return
|
|
1414
|
+
function bindingifyDevMode(devMode) {
|
|
1415
|
+
if (devMode) {
|
|
1416
|
+
if (typeof devMode === "boolean") return devMode ? {} : void 0;
|
|
1417
|
+
return devMode;
|
|
1412
1418
|
}
|
|
1413
1419
|
}
|
|
1414
1420
|
function bindingifyAttachDebugInfo(attachDebugInfo) {
|
|
@@ -1444,7 +1450,7 @@ function bindingifyExperimental(experimental) {
|
|
|
1444
1450
|
disableLiveBindings: experimental?.disableLiveBindings,
|
|
1445
1451
|
viteMode: experimental?.viteMode,
|
|
1446
1452
|
resolveNewUrlToAsset: experimental?.resolveNewUrlToAsset,
|
|
1447
|
-
|
|
1453
|
+
devMode: bindingifyDevMode(experimental?.devMode),
|
|
1448
1454
|
attachDebugInfo: bindingifyAttachDebugInfo(experimental?.attachDebugInfo),
|
|
1449
1455
|
chunkModulesOrder,
|
|
1450
1456
|
chunkImportMap: experimental?.chunkImportMap,
|
|
@@ -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-B4d0IHth.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/builtin-plugin/constructors.ts
|
|
4
4
|
function viteModulePreloadPolyfillPlugin(config) {
|
|
@@ -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-r9j8jqRV.mjs";
|
|
2
|
+
import { A as BuiltinPlugin, Tt as StringOrRegExp } from "./define-config-MdVaFcie.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/builtin-plugin/constructors.d.ts
|
|
5
5
|
declare function viteModulePreloadPolyfillPlugin(config?: BindingViteModulePreloadPolyfillPluginConfig): BuiltinPlugin;
|
|
@@ -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-r9j8jqRV.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";
|
|
@@ -1373,7 +1348,7 @@ 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;
|
|
@@ -1499,7 +1474,7 @@ interface InputOptions {
|
|
|
1499
1474
|
disableLiveBindings?: boolean;
|
|
1500
1475
|
viteMode?: boolean;
|
|
1501
1476
|
resolveNewUrlToAsset?: boolean;
|
|
1502
|
-
|
|
1477
|
+
devMode?: DevModeOptions;
|
|
1503
1478
|
/**
|
|
1504
1479
|
* Control which order should use when rendering modules in chunk
|
|
1505
1480
|
*
|
|
@@ -1691,4 +1666,4 @@ declare function defineConfig(config: RolldownOptions[]): RolldownOptions[];
|
|
|
1691
1666
|
declare function defineConfig(config: RolldownOptionsFunction): RolldownOptionsFunction;
|
|
1692
1667
|
declare function defineConfig(config: ConfigExport): ConfigExport;
|
|
1693
1668
|
//#endregion
|
|
1694
|
-
export { RolldownFsModule as $, BuiltinPlugin as A, RolldownOutput as At, EmittedPrebuiltChunk as B,
|
|
1669
|
+
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 };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
//#region src/log/logging.d.ts
|
|
2
|
+
type LogLevel = "info" | "debug" | "warn";
|
|
3
|
+
type LogLevelOption = LogLevel | "silent";
|
|
4
|
+
type LogLevelWithError = LogLevel | "error";
|
|
5
|
+
interface RollupLog {
|
|
6
|
+
binding?: string;
|
|
7
|
+
cause?: unknown;
|
|
8
|
+
code?: string;
|
|
9
|
+
exporter?: string;
|
|
10
|
+
frame?: string;
|
|
11
|
+
hook?: string;
|
|
12
|
+
id?: string;
|
|
13
|
+
ids?: string[];
|
|
14
|
+
loc?: {
|
|
15
|
+
column: number;
|
|
16
|
+
file?: string;
|
|
17
|
+
line: number;
|
|
18
|
+
};
|
|
19
|
+
message: string;
|
|
20
|
+
meta?: any;
|
|
21
|
+
names?: string[];
|
|
22
|
+
plugin?: string;
|
|
23
|
+
pluginCode?: unknown;
|
|
24
|
+
pos?: number;
|
|
25
|
+
reexporter?: string;
|
|
26
|
+
stack?: string;
|
|
27
|
+
url?: string;
|
|
28
|
+
}
|
|
29
|
+
type RollupLogWithString = RollupLog | string;
|
|
30
|
+
interface RollupError extends RollupLog {
|
|
31
|
+
name?: string;
|
|
32
|
+
stack?: string;
|
|
33
|
+
watchFiles?: string[];
|
|
34
|
+
}
|
|
35
|
+
type LogOrStringHandler = (level: LogLevelWithError, log: RollupLogWithString) => void;
|
|
36
|
+
//#endregion
|
|
37
|
+
export { RollupLog as a, RollupError as i, LogLevelOption as n, RollupLogWithString as o, LogOrStringHandler as r, LogLevel as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as require_binding } from "./binding-
|
|
2
|
-
import { a as logInvalidLogPosition, c as logPluginError, n as error } from "./logs-
|
|
3
|
-
import { r as noop } from "./misc-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-DMnPPQ90.mjs";
|
|
2
|
+
import { a as logInvalidLogPosition, c as logPluginError, n as error } from "./logs-sGci9sux.mjs";
|
|
3
|
+
import { r as noop } from "./misc-DpjTMcQQ.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/log/logging.ts
|
|
6
6
|
const LOG_LEVEL_SILENT = "silent";
|
|
@@ -32,7 +32,7 @@ function getLogHandler(level, code, logger, pluginName, logLevel) {
|
|
|
32
32
|
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region package.json
|
|
35
|
-
var version = "1.0.0-beta.
|
|
35
|
+
var version = "1.0.0-beta.55";
|
|
36
36
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
37
37
|
|
|
38
38
|
//#endregion
|
|
@@ -190,7 +190,7 @@ function bindingAssetSource(source) {
|
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
//#endregion
|
|
193
|
-
//#region \0@oxc-project+runtime@0.
|
|
193
|
+
//#region \0@oxc-project+runtime@0.103.0/helpers/decorate.js
|
|
194
194
|
function __decorate(decorators, target, key, desc) {
|
|
195
195
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
196
196
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -556,7 +556,7 @@ function collectChangedBundle(changed, bundle) {
|
|
|
556
556
|
|
|
557
557
|
//#endregion
|
|
558
558
|
//#region src/builtin-plugin/utils.ts
|
|
559
|
-
var import_binding = require_binding();
|
|
559
|
+
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
560
560
|
var BuiltinPlugin = class {
|
|
561
561
|
/** Vite-specific option to control plugin ordering */
|
|
562
562
|
enforce;
|