rolldown 1.0.0-beta.53 → 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 +21 -21
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +8 -8
- package/dist/experimental-index.d.mts +16 -10
- package/dist/experimental-index.mjs +18 -19
- 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 +4 -3
- 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-BJqdPU1r.mjs → binding-DMnPPQ90.mjs} +51 -27
- package/dist/shared/{binding-CY7Z709f.d.mts → binding-r9j8jqRV.d.mts} +65 -19
- package/dist/shared/{bindingify-input-options-Bk0BBr2s.mjs → bindingify-input-options-A-rLIOKA.mjs} +41 -24
- package/dist/shared/{constructors-LQ8mmhQE.mjs → constructors-BGI2r6Tk.mjs} +8 -3
- package/dist/shared/{constructors-CMvFUBhn.d.mts → constructors-DO8UjlE5.d.mts} +6 -6
- package/dist/shared/{define-config-BS8Bt-r8.d.mts → define-config-MdVaFcie.d.mts} +32 -42
- package/dist/shared/{load-config-JSXrnuaS.mjs → load-config-DnirbDRj.mjs} +1 -1
- package/dist/shared/logging-BpAvp7KV.d.mts +37 -0
- package/dist/shared/{normalize-string-or-regex-BhaIG1rU.mjs → normalize-string-or-regex-B4d0IHth.mjs} +8 -6
- package/dist/shared/{parse-ast-index-BFX0oHaQ.mjs → parse-ast-index-CoZSRGeP.mjs} +4 -4
- package/dist/shared/{rolldown-Cqalltnr.mjs → rolldown-BTFK71hw.mjs} +1 -1
- package/dist/shared/{rolldown-build-BEU8N80I.mjs → rolldown-build-CNW2eye_.mjs} +25 -17
- package/dist/shared/{watch-DBnC-zol.mjs → watch-CKam-d6K.mjs} +20 -8
- package/package.json +20 -19
- /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 };
|
|
@@ -185,7 +185,7 @@ interface Comment {
|
|
|
185
185
|
end: number;
|
|
186
186
|
}
|
|
187
187
|
interface ErrorLabel {
|
|
188
|
-
message
|
|
188
|
+
message: string | null;
|
|
189
189
|
start: number;
|
|
190
190
|
end: number;
|
|
191
191
|
}
|
|
@@ -193,8 +193,8 @@ interface OxcError {
|
|
|
193
193
|
severity: Severity;
|
|
194
194
|
message: string;
|
|
195
195
|
labels: Array<ErrorLabel>;
|
|
196
|
-
helpMessage
|
|
197
|
-
codeframe
|
|
196
|
+
helpMessage: string | null;
|
|
197
|
+
codeframe: string | null;
|
|
198
198
|
}
|
|
199
199
|
type Severity = 'Error' | 'Warning' | 'Advice';
|
|
200
200
|
declare class ParseResult {
|
|
@@ -228,9 +228,9 @@ interface EcmaScriptModule {
|
|
|
228
228
|
}
|
|
229
229
|
interface ExportExportName {
|
|
230
230
|
kind: ExportExportNameKind;
|
|
231
|
-
name
|
|
232
|
-
start
|
|
233
|
-
end
|
|
231
|
+
name: string | null;
|
|
232
|
+
start: number | null;
|
|
233
|
+
end: number | null;
|
|
234
234
|
}
|
|
235
235
|
type ExportExportNameKind = /** `export { name } */
|
|
236
236
|
'Name' | /** `export default expression` */
|
|
@@ -238,9 +238,9 @@ type ExportExportNameKind = /** `export { name } */
|
|
|
238
238
|
'None';
|
|
239
239
|
interface ExportImportName {
|
|
240
240
|
kind: ExportImportNameKind;
|
|
241
|
-
name
|
|
242
|
-
start
|
|
243
|
-
end
|
|
241
|
+
name: string | null;
|
|
242
|
+
start: number | null;
|
|
243
|
+
end: number | null;
|
|
244
244
|
}
|
|
245
245
|
type ExportImportNameKind = /** `export { name } */
|
|
246
246
|
'Name' | /** `export * as ns from "mod"` */
|
|
@@ -249,9 +249,9 @@ type ExportImportNameKind = /** `export { name } */
|
|
|
249
249
|
'None';
|
|
250
250
|
interface ExportLocalName {
|
|
251
251
|
kind: ExportLocalNameKind;
|
|
252
|
-
name
|
|
253
|
-
start
|
|
254
|
-
end
|
|
252
|
+
name: string | null;
|
|
253
|
+
start: number | null;
|
|
254
|
+
end: number | null;
|
|
255
255
|
}
|
|
256
256
|
type ExportLocalNameKind = /** `export { name } */
|
|
257
257
|
'Name' | /** `export default expression` */
|
|
@@ -263,9 +263,9 @@ type ExportLocalNameKind = /** `export { name } */
|
|
|
263
263
|
'None';
|
|
264
264
|
interface ImportName {
|
|
265
265
|
kind: ImportNameKind;
|
|
266
|
-
name
|
|
267
|
-
start
|
|
268
|
-
end
|
|
266
|
+
name: string | null;
|
|
267
|
+
start: number | null;
|
|
268
|
+
end: number | null;
|
|
269
269
|
}
|
|
270
270
|
type ImportNameKind = /** `import { x } from "mod"` */
|
|
271
271
|
'Name' | /** `import * as ns from "mod"` */
|
|
@@ -323,7 +323,7 @@ interface StaticExport {
|
|
|
323
323
|
interface StaticExportEntry {
|
|
324
324
|
start: number;
|
|
325
325
|
end: number;
|
|
326
|
-
moduleRequest
|
|
326
|
+
moduleRequest: ValueSpan | null;
|
|
327
327
|
/** The name under which the desired binding is exported by the module`. */
|
|
328
328
|
importName: ExportImportName;
|
|
329
329
|
/** The name used to export this binding by this module. */
|
|
@@ -415,6 +415,18 @@ declare class ResolverFactory {
|
|
|
415
415
|
sync(directory: string, request: string): ResolveResult;
|
|
416
416
|
/** Asynchronously resolve `specifier` at an absolute path to a `directory`. */
|
|
417
417
|
async(directory: string, request: string): Promise<ResolveResult>;
|
|
418
|
+
/**
|
|
419
|
+
* Synchronously resolve `specifier` at an absolute path to a `file`.
|
|
420
|
+
*
|
|
421
|
+
* This method automatically discovers tsconfig.json by traversing parent directories.
|
|
422
|
+
*/
|
|
423
|
+
resolveFileSync(file: string, request: string): ResolveResult;
|
|
424
|
+
/**
|
|
425
|
+
* Asynchronously resolve `specifier` at an absolute path to a `file`.
|
|
426
|
+
*
|
|
427
|
+
* This method automatically discovers tsconfig.json by traversing parent directories.
|
|
428
|
+
*/
|
|
429
|
+
resolveFileAsync(file: string, request: string): Promise<ResolveResult>;
|
|
418
430
|
}
|
|
419
431
|
/** Node.js builtin module when `Options::builtin_modules` is enabled. */
|
|
420
432
|
interface Builtin {
|
|
@@ -656,9 +668,8 @@ interface TsconfigOptions {
|
|
|
656
668
|
* Support for Typescript Project References.
|
|
657
669
|
*
|
|
658
670
|
* * `'auto'`: use the `references` field from tsconfig of `config_file`.
|
|
659
|
-
* * `string[]`: manually provided relative or absolute path.
|
|
660
671
|
*/
|
|
661
|
-
references?: 'auto'
|
|
672
|
+
references?: 'auto';
|
|
662
673
|
}
|
|
663
674
|
interface SourceMap {
|
|
664
675
|
file?: string;
|
|
@@ -1271,7 +1282,7 @@ declare class BindingMagicString {
|
|
|
1271
1282
|
}
|
|
1272
1283
|
declare class BindingNormalizedOptions {
|
|
1273
1284
|
get input(): Array<string> | Record<string, string>;
|
|
1274
|
-
get cwd(): string
|
|
1285
|
+
get cwd(): string;
|
|
1275
1286
|
get platform(): 'node' | 'browser' | 'neutral';
|
|
1276
1287
|
get shimMissingExports(): boolean;
|
|
1277
1288
|
get name(): string | null;
|
|
@@ -1292,6 +1303,8 @@ declare class BindingNormalizedOptions {
|
|
|
1292
1303
|
get footer(): string | undefined | null | undefined;
|
|
1293
1304
|
get intro(): string | undefined | null | undefined;
|
|
1294
1305
|
get outro(): string | undefined | null | undefined;
|
|
1306
|
+
get postBanner(): string | undefined | null | undefined;
|
|
1307
|
+
get postFooter(): string | undefined | null | undefined;
|
|
1295
1308
|
get externalLiveBindings(): boolean;
|
|
1296
1309
|
get extend(): boolean;
|
|
1297
1310
|
get globals(): Record<string, string> | undefined;
|
|
@@ -1551,6 +1564,10 @@ interface BindingViteDynamicImportVarsPluginConfig {
|
|
|
1551
1564
|
include?: Array<BindingStringOrRegex>;
|
|
1552
1565
|
exclude?: Array<BindingStringOrRegex>;
|
|
1553
1566
|
resolver?: (id: string, importer: string) => MaybePromise<string | undefined>;
|
|
1567
|
+
isV2?: BindingViteDynamicImportVarsPluginV2Config;
|
|
1568
|
+
}
|
|
1569
|
+
interface BindingViteDynamicImportVarsPluginV2Config {
|
|
1570
|
+
sourcemap: boolean;
|
|
1554
1571
|
}
|
|
1555
1572
|
interface BindingViteHtmlInlineProxyPluginConfig {
|
|
1556
1573
|
root: string;
|
|
@@ -1572,6 +1589,10 @@ interface BindingViteHtmlPluginConfig {
|
|
|
1572
1589
|
interface BindingViteImportGlobPluginConfig {
|
|
1573
1590
|
root?: string;
|
|
1574
1591
|
restoreQueryExtension?: boolean;
|
|
1592
|
+
isV2?: BindingViteImportGlobPluginV2Config;
|
|
1593
|
+
}
|
|
1594
|
+
interface BindingViteImportGlobPluginV2Config {
|
|
1595
|
+
sourcemap?: boolean;
|
|
1575
1596
|
}
|
|
1576
1597
|
interface BindingViteJsonPluginConfig {
|
|
1577
1598
|
minify?: boolean;
|
|
@@ -1621,6 +1642,7 @@ interface BindingViteResolvePluginConfig {
|
|
|
1621
1642
|
resolveSubpathImports: (id: string, importer: string, isRequire: boolean, scan: boolean) => VoidNullable<string>;
|
|
1622
1643
|
onWarn?: (message: string) => void;
|
|
1623
1644
|
onDebug?: (message: string) => void;
|
|
1645
|
+
yarnPnp: boolean;
|
|
1624
1646
|
}
|
|
1625
1647
|
interface BindingViteResolvePluginResolveOptions {
|
|
1626
1648
|
isBuild: boolean;
|
|
@@ -1648,9 +1670,17 @@ interface BindingViteTransformPluginConfig {
|
|
|
1648
1670
|
isServerConsumer?: boolean;
|
|
1649
1671
|
jsxInject?: string;
|
|
1650
1672
|
transformOptions?: TransformOptions;
|
|
1673
|
+
yarnPnp?: boolean;
|
|
1651
1674
|
}
|
|
1652
1675
|
interface BindingViteWasmHelperPluginConfig {
|
|
1653
1676
|
decodedBase: string;
|
|
1677
|
+
v2?: BindingViteWasmHelperPluginV2Config;
|
|
1678
|
+
}
|
|
1679
|
+
interface BindingViteWasmHelperPluginV2Config {
|
|
1680
|
+
root: string;
|
|
1681
|
+
isLib: boolean;
|
|
1682
|
+
publicDir: string;
|
|
1683
|
+
assetInlineLimit: number | ((file: string, content: Buffer) => boolean | undefined);
|
|
1654
1684
|
}
|
|
1655
1685
|
declare function createTokioRuntime(blockingThreads?: number | undefined | null): void;
|
|
1656
1686
|
interface ExternalMemoryStatus {
|
|
@@ -1661,6 +1691,22 @@ interface ExternalMemoryStatus {
|
|
|
1661
1691
|
interface NativeError {
|
|
1662
1692
|
kind: string;
|
|
1663
1693
|
message: string;
|
|
1694
|
+
/** The id of the file associated with the error */
|
|
1695
|
+
id?: string;
|
|
1696
|
+
/** The exporter associated with the error (for import/export errors) */
|
|
1697
|
+
exporter?: string;
|
|
1698
|
+
/** Location information (line, column, file) */
|
|
1699
|
+
loc?: NativeErrorLocation;
|
|
1700
|
+
/** Position in the source file in UTF-16 code units */
|
|
1701
|
+
pos?: number;
|
|
1702
|
+
}
|
|
1703
|
+
/** Location information for errors */
|
|
1704
|
+
interface NativeErrorLocation {
|
|
1705
|
+
/** 1-based */
|
|
1706
|
+
line: number;
|
|
1707
|
+
/** 0-based position in the line in UTF-16 code units */
|
|
1708
|
+
column: number;
|
|
1709
|
+
file?: string;
|
|
1664
1710
|
}
|
|
1665
1711
|
interface PreRenderedChunk {
|
|
1666
1712
|
name: string;
|
package/dist/shared/{bindingify-input-options-Bk0BBr2s.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,
|
|
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";
|
|
@@ -37,8 +37,13 @@ function normalizeBindingResult(container) {
|
|
|
37
37
|
}
|
|
38
38
|
function normalizeBindingError(e$1) {
|
|
39
39
|
return e$1.type === "JsError" ? e$1.field0 : Object.assign(/* @__PURE__ */ new Error(), {
|
|
40
|
+
code: e$1.field0.kind,
|
|
40
41
|
kind: e$1.field0.kind,
|
|
41
42
|
message: e$1.field0.message,
|
|
43
|
+
id: e$1.field0.id,
|
|
44
|
+
exporter: e$1.field0.exporter,
|
|
45
|
+
loc: e$1.field0.loc,
|
|
46
|
+
pos: e$1.field0.pos,
|
|
42
47
|
stack: void 0
|
|
43
48
|
});
|
|
44
49
|
}
|
|
@@ -138,7 +143,7 @@ function e(e$1, t$2, n$1) {
|
|
|
138
143
|
|
|
139
144
|
//#endregion
|
|
140
145
|
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/purry-DH9cw9sy.js
|
|
141
|
-
function t(t$2, n$1, r) {
|
|
146
|
+
function t$1(t$2, n$1, r) {
|
|
142
147
|
let i = t$2.length - n$1.length;
|
|
143
148
|
if (i === 0) return t$2(...n$1);
|
|
144
149
|
if (i === 1) return e(t$2, n$1, r);
|
|
@@ -147,8 +152,8 @@ function t(t$2, n$1, r) {
|
|
|
147
152
|
|
|
148
153
|
//#endregion
|
|
149
154
|
//#region ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/partition-DAu403JQ.js
|
|
150
|
-
function t
|
|
151
|
-
return t(n, t$2);
|
|
155
|
+
function t(...t$2) {
|
|
156
|
+
return t$1(n, t$2);
|
|
152
157
|
}
|
|
153
158
|
const n = (e$1, t$2) => {
|
|
154
159
|
let n$1 = [[], []];
|
|
@@ -178,8 +183,8 @@ function transformFilterMatcherToFilterExprs(filterOption) {
|
|
|
178
183
|
let idExcludes = [];
|
|
179
184
|
let codeIncludes = [];
|
|
180
185
|
let codeExcludes = [];
|
|
181
|
-
if (id) [idIncludes, idExcludes] = t
|
|
182
|
-
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");
|
|
183
188
|
ret.push(...idExcludes);
|
|
184
189
|
ret.push(...codeExcludes);
|
|
185
190
|
let andExprList = [];
|
|
@@ -292,14 +297,14 @@ function bindingifyRenderChunkFilter(filterOption) {
|
|
|
292
297
|
|
|
293
298
|
//#endregion
|
|
294
299
|
//#region src/plugin/bindingify-plugin-hook-meta.ts
|
|
295
|
-
var import_binding
|
|
300
|
+
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
296
301
|
function bindingifyPluginHookMeta(options) {
|
|
297
302
|
return { order: bindingPluginOrder(options.order) };
|
|
298
303
|
}
|
|
299
304
|
function bindingPluginOrder(order) {
|
|
300
305
|
switch (order) {
|
|
301
|
-
case "post": return import_binding
|
|
302
|
-
case "pre": return import_binding
|
|
306
|
+
case "post": return import_binding.BindingPluginOrder.Post;
|
|
307
|
+
case "pre": return import_binding.BindingPluginOrder.Pre;
|
|
303
308
|
case null:
|
|
304
309
|
case void 0: return;
|
|
305
310
|
default: throw new Error(`Unknown plugin order: ${order}`);
|
|
@@ -384,7 +389,13 @@ var PluginContextImpl = class extends MinimalPluginContextImpl {
|
|
|
384
389
|
};
|
|
385
390
|
}
|
|
386
391
|
emitFile = (file) => {
|
|
387
|
-
if (file.type === "prebuilt-chunk") return
|
|
392
|
+
if (file.type === "prebuilt-chunk") return this.context.emitPrebuiltChunk({
|
|
393
|
+
fileName: file.fileName,
|
|
394
|
+
code: file.code,
|
|
395
|
+
exports: file.exports,
|
|
396
|
+
map: bindingifySourcemap(file.map),
|
|
397
|
+
sourcemapFileName: file.sourcemapFileName
|
|
398
|
+
});
|
|
388
399
|
if (file.type === "chunk") return this.context.emitChunk({
|
|
389
400
|
preserveEntrySignatures: bindingifyPreserveEntrySignatures(file.preserveSignature),
|
|
390
401
|
...file
|
|
@@ -460,7 +471,6 @@ var TransformPluginContextImpl = class extends PluginContextImpl {
|
|
|
460
471
|
|
|
461
472
|
//#endregion
|
|
462
473
|
//#region src/plugin/bindingify-build-hooks.ts
|
|
463
|
-
var import_binding$1 = require_binding();
|
|
464
474
|
function bindingifyBuildStart(args) {
|
|
465
475
|
const hook = args.plugin.buildStart;
|
|
466
476
|
if (!hook) return {};
|
|
@@ -560,7 +570,7 @@ function bindingifyTransform(args) {
|
|
|
560
570
|
Object.defineProperties(meta$1, {
|
|
561
571
|
magicString: { get() {
|
|
562
572
|
if (magicStringInstance) return magicStringInstance;
|
|
563
|
-
magicStringInstance = new import_binding
|
|
573
|
+
magicStringInstance = new import_binding.BindingMagicString(code);
|
|
564
574
|
return magicStringInstance;
|
|
565
575
|
} },
|
|
566
576
|
ast: { get() {
|
|
@@ -594,7 +604,7 @@ function bindingifyTransform(args) {
|
|
|
594
604
|
let normalizedCode = void 0;
|
|
595
605
|
let map = ret.map;
|
|
596
606
|
if (typeof ret.code === "string") normalizedCode = ret.code;
|
|
597
|
-
else if (ret.code instanceof import_binding
|
|
607
|
+
else if (ret.code instanceof import_binding.BindingMagicString) {
|
|
598
608
|
let magicString = ret.code;
|
|
599
609
|
normalizedCode = magicString.toString();
|
|
600
610
|
let fallbackSourcemap = ctx.sendMagicString(magicString);
|
|
@@ -1033,7 +1043,7 @@ var NormalizedInputOptionsImpl = class extends PlainObjectLike {
|
|
|
1033
1043
|
return this.inner.input;
|
|
1034
1044
|
}
|
|
1035
1045
|
get cwd() {
|
|
1036
|
-
return this.inner.cwd
|
|
1046
|
+
return this.inner.cwd;
|
|
1037
1047
|
}
|
|
1038
1048
|
get platform() {
|
|
1039
1049
|
return this.inner.platform;
|
|
@@ -1108,6 +1118,12 @@ var NormalizedOutputOptionsImpl = class extends PlainObjectLike {
|
|
|
1108
1118
|
get footer() {
|
|
1109
1119
|
return normalizeAddon(this.outputOptions.footer);
|
|
1110
1120
|
}
|
|
1121
|
+
get postBanner() {
|
|
1122
|
+
return normalizeAddon(this.outputOptions.postBanner);
|
|
1123
|
+
}
|
|
1124
|
+
get postFooter() {
|
|
1125
|
+
return normalizeAddon(this.outputOptions.postFooter);
|
|
1126
|
+
}
|
|
1111
1127
|
get intro() {
|
|
1112
1128
|
return normalizeAddon(this.outputOptions.intro);
|
|
1113
1129
|
}
|
|
@@ -1189,6 +1205,8 @@ __decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "inlineDynamicImpo
|
|
|
1189
1205
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "externalLiveBindings", null);
|
|
1190
1206
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "banner", null);
|
|
1191
1207
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "footer", null);
|
|
1208
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "postBanner", null);
|
|
1209
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "postFooter", null);
|
|
1192
1210
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "intro", null);
|
|
1193
1211
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "outro", null);
|
|
1194
1212
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "esModule", null);
|
|
@@ -1340,7 +1358,6 @@ function normalizeTransformOptions(inputOptions) {
|
|
|
1340
1358
|
|
|
1341
1359
|
//#endregion
|
|
1342
1360
|
//#region src/utils/bindingify-input-options.ts
|
|
1343
|
-
var import_binding = require_binding();
|
|
1344
1361
|
function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normalizedOutputPlugins, onLog, logLevel, watchMode) {
|
|
1345
1362
|
const pluginContextData = new PluginContextData(onLog, outputOptions, normalizedOutputPlugins);
|
|
1346
1363
|
const plugins = rawPlugins.map((plugin) => {
|
|
@@ -1394,10 +1411,10 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
|
|
|
1394
1411
|
tsconfig: inputOptions.resolve?.tsconfigFilename ?? inputOptions.tsconfig
|
|
1395
1412
|
};
|
|
1396
1413
|
}
|
|
1397
|
-
function
|
|
1398
|
-
if (
|
|
1399
|
-
if (typeof
|
|
1400
|
-
return
|
|
1414
|
+
function bindingifyDevMode(devMode) {
|
|
1415
|
+
if (devMode) {
|
|
1416
|
+
if (typeof devMode === "boolean") return devMode ? {} : void 0;
|
|
1417
|
+
return devMode;
|
|
1401
1418
|
}
|
|
1402
1419
|
}
|
|
1403
1420
|
function bindingifyAttachDebugInfo(attachDebugInfo) {
|
|
@@ -1433,7 +1450,7 @@ function bindingifyExperimental(experimental) {
|
|
|
1433
1450
|
disableLiveBindings: experimental?.disableLiveBindings,
|
|
1434
1451
|
viteMode: experimental?.viteMode,
|
|
1435
1452
|
resolveNewUrlToAsset: experimental?.resolveNewUrlToAsset,
|
|
1436
|
-
|
|
1453
|
+
devMode: bindingifyDevMode(experimental?.devMode),
|
|
1437
1454
|
attachDebugInfo: bindingifyAttachDebugInfo(experimental?.attachDebugInfo),
|
|
1438
1455
|
chunkModulesOrder,
|
|
1439
1456
|
chunkImportMap: experimental?.chunkImportMap,
|