@rollipop/rolldown 1.0.0-rc.3 → 1.0.0-rc.5
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/bin/cli.mjs +0 -1
- package/dist/cli.mjs +11 -22
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +10 -11
- package/dist/experimental-index.d.mts +26 -6
- package/dist/experimental-index.mjs +39 -22
- package/dist/filter-index.d.mts +2 -2
- package/dist/filter-index.mjs +2 -8
- package/dist/get-log-filter.mjs +1 -2
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +10 -13
- package/dist/parallel-plugin-worker.mjs +7 -9
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parallel-plugin.mjs +1 -2
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +4 -6
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +4 -6
- package/dist/shared/{binding-D25Pz9Tj.mjs → binding-BpAdsRMp.mjs} +33 -42
- package/dist/shared/{binding-C4ZlFAt6.d.mts → binding-MOe7QjvW.d.mts} +22 -6
- package/dist/shared/{bindingify-input-options-D6jfpJ6l.mjs → bindingify-input-options-DlgCN9zc.mjs} +36 -58
- package/dist/shared/{constructors-C-tyKVjw.d.mts → constructors-BVMsBEI4.d.mts} +2 -2
- package/dist/shared/{constructors-BAGdj697.mjs → constructors-ByA8Vmcs.mjs} +2 -4
- package/dist/shared/{define-config-BKLqq_zt.d.mts → define-config-D2erlXSV.d.mts} +75 -30
- package/dist/shared/{define-config-BMj_QknW.mjs → define-config-DJOr6Iwt.mjs} +1 -2
- package/dist/shared/{error-BoaGIj5N.mjs → error-Rnftw-T1.mjs} +3 -8
- package/dist/shared/{load-config-CV5K8wKJ.mjs → load-config-C1TxsD8r.mjs} +2 -4
- package/dist/shared/{logs-CCc_0vhs.mjs → logs-D80CXhvg.mjs} +5 -8
- package/dist/shared/{misc-Xty885dB.mjs → misc-DJYbNKZX.mjs} +1 -2
- package/dist/shared/{normalize-string-or-regex-tBSnk6HY.mjs → normalize-string-or-regex-BFIgWR19.mjs} +3 -6
- package/dist/shared/{parse-DWZRPGsB.mjs → parse-BuECM1WH.mjs} +2 -5
- package/dist/shared/{prompt-B56gTa4S.mjs → prompt-BYQIwEjg.mjs} +1 -3
- package/dist/shared/{rolldown-CZ1SIh-x.mjs → rolldown-BpbRpba4.mjs} +2 -4
- package/dist/shared/{rolldown-build-BYA-VVk0.mjs → rolldown-build-Cc7GWaEw.mjs} +427 -473
- package/dist/shared/{transform-CIcvJTbn.mjs → transform-CFiExOzd.mjs} +3 -6
- package/dist/shared/{transform-DoG7c5_r.d.mts → transform-DKslvixZ.d.mts} +1 -1
- package/dist/shared/{watch-DV7vV2OV.mjs → watch-BBA-reCD.mjs} +71 -77
- package/dist/utils-index.d.mts +2 -2
- package/dist/utils-index.mjs +9 -18
- package/package.json +12 -12
- package/dist/cli-setup.d.mts +0 -1
- package/dist/cli-setup.mjs +0 -17
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
|
-
|
|
3
2
|
//#region \0rolldown/runtime.js
|
|
4
3
|
var __create = Object.create;
|
|
5
4
|
var __defProp = Object.defineProperty;
|
|
@@ -9,16 +8,12 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
9
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
9
|
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
11
10
|
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
}
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
|
+
key = keys[i];
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: ((k) => from[k]).bind(null, key),
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
22
17
|
}
|
|
23
18
|
return to;
|
|
24
19
|
};
|
|
@@ -27,7 +22,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
22
|
enumerable: true
|
|
28
23
|
}) : target, mod));
|
|
29
24
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
30
|
-
|
|
31
25
|
//#endregion
|
|
32
26
|
//#region src/webcontainer-fallback.cjs
|
|
33
27
|
var require_webcontainer_fallback = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -51,7 +45,6 @@ var require_webcontainer_fallback = /* @__PURE__ */ __commonJSMin(((exports, mod
|
|
|
51
45
|
}
|
|
52
46
|
module.exports = __require(bindingEntry);
|
|
53
47
|
}));
|
|
54
|
-
|
|
55
48
|
//#endregion
|
|
56
49
|
//#region src/binding.cjs
|
|
57
50
|
var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -110,7 +103,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
110
103
|
try {
|
|
111
104
|
const binding = __require("@rollipop/rolldown-binding-android-arm64");
|
|
112
105
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-android-arm64/package.json").version;
|
|
113
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
106
|
+
if (bindingPackageVersion !== "1.0.0-rc.5" && 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-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
114
107
|
return binding;
|
|
115
108
|
} catch (e) {
|
|
116
109
|
loadErrors.push(e);
|
|
@@ -124,7 +117,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
124
117
|
try {
|
|
125
118
|
const binding = __require("@rollipop/rolldown-binding-android-arm-eabi");
|
|
126
119
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-android-arm-eabi/package.json").version;
|
|
127
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
120
|
+
if (bindingPackageVersion !== "1.0.0-rc.5" && 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-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
128
121
|
return binding;
|
|
129
122
|
} catch (e) {
|
|
130
123
|
loadErrors.push(e);
|
|
@@ -139,7 +132,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
139
132
|
try {
|
|
140
133
|
const binding = __require("@rollipop/rolldown-binding-win32-x64-gnu");
|
|
141
134
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-win32-x64-gnu/package.json").version;
|
|
142
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
135
|
+
if (bindingPackageVersion !== "1.0.0-rc.5" && 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-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
143
136
|
return binding;
|
|
144
137
|
} catch (e) {
|
|
145
138
|
loadErrors.push(e);
|
|
@@ -153,7 +146,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
153
146
|
try {
|
|
154
147
|
const binding = __require("@rollipop/rolldown-binding-win32-x64-msvc");
|
|
155
148
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-win32-x64-msvc/package.json").version;
|
|
156
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
149
|
+
if (bindingPackageVersion !== "1.0.0-rc.5" && 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-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
157
150
|
return binding;
|
|
158
151
|
} catch (e) {
|
|
159
152
|
loadErrors.push(e);
|
|
@@ -168,7 +161,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
168
161
|
try {
|
|
169
162
|
const binding = __require("@rollipop/rolldown-binding-win32-ia32-msvc");
|
|
170
163
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-win32-ia32-msvc/package.json").version;
|
|
171
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
164
|
+
if (bindingPackageVersion !== "1.0.0-rc.5" && 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-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
172
165
|
return binding;
|
|
173
166
|
} catch (e) {
|
|
174
167
|
loadErrors.push(e);
|
|
@@ -182,7 +175,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
182
175
|
try {
|
|
183
176
|
const binding = __require("@rollipop/rolldown-binding-win32-arm64-msvc");
|
|
184
177
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-win32-arm64-msvc/package.json").version;
|
|
185
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
178
|
+
if (bindingPackageVersion !== "1.0.0-rc.5" && 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-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
186
179
|
return binding;
|
|
187
180
|
} catch (e) {
|
|
188
181
|
loadErrors.push(e);
|
|
@@ -197,7 +190,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
197
190
|
try {
|
|
198
191
|
const binding = __require("@rollipop/rolldown-binding-darwin-universal");
|
|
199
192
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-darwin-universal/package.json").version;
|
|
200
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
193
|
+
if (bindingPackageVersion !== "1.0.0-rc.5" && 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-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
201
194
|
return binding;
|
|
202
195
|
} catch (e) {
|
|
203
196
|
loadErrors.push(e);
|
|
@@ -211,7 +204,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
211
204
|
try {
|
|
212
205
|
const binding = __require("@rollipop/rolldown-binding-darwin-x64");
|
|
213
206
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-darwin-x64/package.json").version;
|
|
214
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
207
|
+
if (bindingPackageVersion !== "1.0.0-rc.5" && 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-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
215
208
|
return binding;
|
|
216
209
|
} catch (e) {
|
|
217
210
|
loadErrors.push(e);
|
|
@@ -225,7 +218,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
225
218
|
try {
|
|
226
219
|
const binding = __require("@rollipop/rolldown-binding-darwin-arm64");
|
|
227
220
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-darwin-arm64/package.json").version;
|
|
228
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
221
|
+
if (bindingPackageVersion !== "1.0.0-rc.5" && 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-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
229
222
|
return binding;
|
|
230
223
|
} catch (e) {
|
|
231
224
|
loadErrors.push(e);
|
|
@@ -240,7 +233,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
240
233
|
try {
|
|
241
234
|
const binding = __require("@rollipop/rolldown-binding-freebsd-x64");
|
|
242
235
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-freebsd-x64/package.json").version;
|
|
243
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
236
|
+
if (bindingPackageVersion !== "1.0.0-rc.5" && 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-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
244
237
|
return binding;
|
|
245
238
|
} catch (e) {
|
|
246
239
|
loadErrors.push(e);
|
|
@@ -254,7 +247,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
254
247
|
try {
|
|
255
248
|
const binding = __require("@rollipop/rolldown-binding-freebsd-arm64");
|
|
256
249
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-freebsd-arm64/package.json").version;
|
|
257
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
250
|
+
if (bindingPackageVersion !== "1.0.0-rc.5" && 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-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
258
251
|
return binding;
|
|
259
252
|
} catch (e) {
|
|
260
253
|
loadErrors.push(e);
|
|
@@ -269,7 +262,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
269
262
|
try {
|
|
270
263
|
const binding = __require("@rollipop/rolldown-binding-linux-x64-musl");
|
|
271
264
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-x64-musl/package.json").version;
|
|
272
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
265
|
+
if (bindingPackageVersion !== "1.0.0-rc.5" && 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-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
273
266
|
return binding;
|
|
274
267
|
} catch (e) {
|
|
275
268
|
loadErrors.push(e);
|
|
@@ -283,7 +276,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
283
276
|
try {
|
|
284
277
|
const binding = __require("@rollipop/rolldown-binding-linux-x64-gnu");
|
|
285
278
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-x64-gnu/package.json").version;
|
|
286
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
279
|
+
if (bindingPackageVersion !== "1.0.0-rc.5" && 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-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
287
280
|
return binding;
|
|
288
281
|
} catch (e) {
|
|
289
282
|
loadErrors.push(e);
|
|
@@ -298,7 +291,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
298
291
|
try {
|
|
299
292
|
const binding = __require("@rollipop/rolldown-binding-linux-arm64-musl");
|
|
300
293
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-arm64-musl/package.json").version;
|
|
301
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
294
|
+
if (bindingPackageVersion !== "1.0.0-rc.5" && 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-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
302
295
|
return binding;
|
|
303
296
|
} catch (e) {
|
|
304
297
|
loadErrors.push(e);
|
|
@@ -312,7 +305,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
312
305
|
try {
|
|
313
306
|
const binding = __require("@rollipop/rolldown-binding-linux-arm64-gnu");
|
|
314
307
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-arm64-gnu/package.json").version;
|
|
315
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
308
|
+
if (bindingPackageVersion !== "1.0.0-rc.5" && 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-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
316
309
|
return binding;
|
|
317
310
|
} catch (e) {
|
|
318
311
|
loadErrors.push(e);
|
|
@@ -327,7 +320,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
327
320
|
try {
|
|
328
321
|
const binding = __require("@rollipop/rolldown-binding-linux-arm-musleabihf");
|
|
329
322
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-arm-musleabihf/package.json").version;
|
|
330
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
323
|
+
if (bindingPackageVersion !== "1.0.0-rc.5" && 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-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
331
324
|
return binding;
|
|
332
325
|
} catch (e) {
|
|
333
326
|
loadErrors.push(e);
|
|
@@ -341,7 +334,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
341
334
|
try {
|
|
342
335
|
const binding = __require("@rollipop/rolldown-binding-linux-arm-gnueabihf");
|
|
343
336
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-arm-gnueabihf/package.json").version;
|
|
344
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
337
|
+
if (bindingPackageVersion !== "1.0.0-rc.5" && 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-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
345
338
|
return binding;
|
|
346
339
|
} catch (e) {
|
|
347
340
|
loadErrors.push(e);
|
|
@@ -356,7 +349,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
356
349
|
try {
|
|
357
350
|
const binding = __require("@rollipop/rolldown-binding-linux-loong64-musl");
|
|
358
351
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-loong64-musl/package.json").version;
|
|
359
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
352
|
+
if (bindingPackageVersion !== "1.0.0-rc.5" && 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-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
360
353
|
return binding;
|
|
361
354
|
} catch (e) {
|
|
362
355
|
loadErrors.push(e);
|
|
@@ -370,7 +363,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
370
363
|
try {
|
|
371
364
|
const binding = __require("@rollipop/rolldown-binding-linux-loong64-gnu");
|
|
372
365
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-loong64-gnu/package.json").version;
|
|
373
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
366
|
+
if (bindingPackageVersion !== "1.0.0-rc.5" && 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-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
374
367
|
return binding;
|
|
375
368
|
} catch (e) {
|
|
376
369
|
loadErrors.push(e);
|
|
@@ -385,7 +378,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
385
378
|
try {
|
|
386
379
|
const binding = __require("@rollipop/rolldown-binding-linux-riscv64-musl");
|
|
387
380
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-riscv64-musl/package.json").version;
|
|
388
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
381
|
+
if (bindingPackageVersion !== "1.0.0-rc.5" && 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-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
389
382
|
return binding;
|
|
390
383
|
} catch (e) {
|
|
391
384
|
loadErrors.push(e);
|
|
@@ -399,7 +392,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
399
392
|
try {
|
|
400
393
|
const binding = __require("@rollipop/rolldown-binding-linux-riscv64-gnu");
|
|
401
394
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-riscv64-gnu/package.json").version;
|
|
402
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
395
|
+
if (bindingPackageVersion !== "1.0.0-rc.5" && 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-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
403
396
|
return binding;
|
|
404
397
|
} catch (e) {
|
|
405
398
|
loadErrors.push(e);
|
|
@@ -414,7 +407,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
414
407
|
try {
|
|
415
408
|
const binding = __require("@rollipop/rolldown-binding-linux-ppc64-gnu");
|
|
416
409
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-ppc64-gnu/package.json").version;
|
|
417
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
410
|
+
if (bindingPackageVersion !== "1.0.0-rc.5" && 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-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
418
411
|
return binding;
|
|
419
412
|
} catch (e) {
|
|
420
413
|
loadErrors.push(e);
|
|
@@ -428,7 +421,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
428
421
|
try {
|
|
429
422
|
const binding = __require("@rollipop/rolldown-binding-linux-s390x-gnu");
|
|
430
423
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-s390x-gnu/package.json").version;
|
|
431
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
424
|
+
if (bindingPackageVersion !== "1.0.0-rc.5" && 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-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
432
425
|
return binding;
|
|
433
426
|
} catch (e) {
|
|
434
427
|
loadErrors.push(e);
|
|
@@ -443,7 +436,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
443
436
|
try {
|
|
444
437
|
const binding = __require("@rollipop/rolldown-binding-openharmony-arm64");
|
|
445
438
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-openharmony-arm64/package.json").version;
|
|
446
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
439
|
+
if (bindingPackageVersion !== "1.0.0-rc.5" && 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-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
447
440
|
return binding;
|
|
448
441
|
} catch (e) {
|
|
449
442
|
loadErrors.push(e);
|
|
@@ -457,7 +450,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
457
450
|
try {
|
|
458
451
|
const binding = __require("@rollipop/rolldown-binding-openharmony-x64");
|
|
459
452
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-openharmony-x64/package.json").version;
|
|
460
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
453
|
+
if (bindingPackageVersion !== "1.0.0-rc.5" && 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-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
461
454
|
return binding;
|
|
462
455
|
} catch (e) {
|
|
463
456
|
loadErrors.push(e);
|
|
@@ -471,7 +464,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
471
464
|
try {
|
|
472
465
|
const binding = __require("@rollipop/rolldown-binding-openharmony-arm");
|
|
473
466
|
const bindingPackageVersion = __require("@rollipop/rolldown-binding-openharmony-arm/package.json").version;
|
|
474
|
-
if (bindingPackageVersion !== "1.0.0-rc.
|
|
467
|
+
if (bindingPackageVersion !== "1.0.0-rc.5" && 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-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
475
468
|
return binding;
|
|
476
469
|
} catch (e) {
|
|
477
470
|
loadErrors.push(e);
|
|
@@ -576,7 +569,6 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
576
569
|
module.exports.BindingPropertyWriteSideEffects = nativeBinding.BindingPropertyWriteSideEffects;
|
|
577
570
|
module.exports.BindingRebuildStrategy = nativeBinding.BindingRebuildStrategy;
|
|
578
571
|
module.exports.collapseSourcemaps = nativeBinding.collapseSourcemaps;
|
|
579
|
-
module.exports.createTokioRuntime = nativeBinding.createTokioRuntime;
|
|
580
572
|
module.exports.enhancedTransform = nativeBinding.enhancedTransform;
|
|
581
573
|
module.exports.enhancedTransformSync = nativeBinding.enhancedTransformSync;
|
|
582
574
|
module.exports.FilterTokenKind = nativeBinding.FilterTokenKind;
|
|
@@ -586,6 +578,5 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
586
578
|
module.exports.shutdownAsyncRuntime = nativeBinding.shutdownAsyncRuntime;
|
|
587
579
|
module.exports.startAsyncRuntime = nativeBinding.startAsyncRuntime;
|
|
588
580
|
}));
|
|
589
|
-
|
|
590
581
|
//#endregion
|
|
591
|
-
export { __toESM as n, require_binding as t };
|
|
582
|
+
export { __toESM as n, require_binding as t };
|
|
@@ -1200,7 +1200,10 @@ declare class BindingDecodedMap {
|
|
|
1200
1200
|
}
|
|
1201
1201
|
declare class BindingMagicString {
|
|
1202
1202
|
constructor(source: string, options?: BindingMagicStringOptions | undefined | null);
|
|
1203
|
+
get original(): string;
|
|
1203
1204
|
get filename(): string | null;
|
|
1205
|
+
get offset(): number;
|
|
1206
|
+
set offset(offset: number);
|
|
1204
1207
|
replace(from: string, to: string): this;
|
|
1205
1208
|
replaceAll(from: string, to: string): this;
|
|
1206
1209
|
prepend(content: string): this;
|
|
@@ -1343,8 +1346,8 @@ declare class BindingSourceMap {
|
|
|
1343
1346
|
toUrl(): string;
|
|
1344
1347
|
}
|
|
1345
1348
|
/**
|
|
1346
|
-
* Minimal wrapper around
|
|
1347
|
-
* This is returned from watcher event data to allow
|
|
1349
|
+
* Minimal wrapper around a `BundleHandle` for watcher events.
|
|
1350
|
+
* This is returned from watcher event data to allow calling `result.close()`.
|
|
1348
1351
|
*/
|
|
1349
1352
|
declare class BindingWatcherBundler {
|
|
1350
1353
|
close(): Promise<void>;
|
|
@@ -1371,10 +1374,12 @@ declare class TsconfigCache {
|
|
|
1371
1374
|
/** Get the number of cached entries. */
|
|
1372
1375
|
size(): number;
|
|
1373
1376
|
}
|
|
1374
|
-
type BindingBuiltinPluginName = 'builtin:bundle-analyzer' | 'builtin:esm-external-require' | 'builtin:isolated-declaration' | 'builtin:replace' | 'builtin:vite-alias' | 'builtin:vite-build-import-analysis' | 'builtin:vite-dynamic-import-vars' | 'builtin:vite-import-glob' | 'builtin:vite-json' | 'builtin:vite-load-fallback' | 'builtin:vite-manifest' | 'builtin:vite-module-preload-polyfill' | 'builtin:vite-react-refresh-wrapper' | 'builtin:vite-reporter' | 'builtin:vite-resolve' | 'builtin:vite-transform' | 'builtin:vite-wasm-fallback' | 'builtin:vite-web-worker-post';
|
|
1377
|
+
type BindingBuiltinPluginName = 'builtin:bundle-analyzer' | 'builtin:esm-external-require' | 'builtin:isolated-declaration' | 'builtin:replace' | 'builtin:vite-alias' | 'builtin:vite-build-import-analysis' | 'builtin:vite-dynamic-import-vars' | 'builtin:vite-import-glob' | 'builtin:vite-json' | 'builtin:vite-load-fallback' | 'builtin:vite-manifest' | 'builtin:vite-module-preload-polyfill' | 'builtin:vite-react-refresh-wrapper' | 'builtin:vite-reporter' | 'builtin:vite-resolve' | 'builtin:vite-transform' | 'builtin:vite-wasm-fallback' | 'builtin:vite-web-worker-post' | 'builtin:rollipop-react-refresh-wrapper' | 'builtin:rollipop-worklets';
|
|
1375
1378
|
interface BindingBundleAnalyzerPluginConfig {
|
|
1376
|
-
/** Output filename for the analysis data (default: "analyze-data.json") */
|
|
1379
|
+
/** Output filename for the bundle analysis data (default: "analyze-data.json") */
|
|
1377
1380
|
fileName?: string;
|
|
1381
|
+
/** Output format: "json" (default) or "md" for LLM-friendly markdown */
|
|
1382
|
+
format?: 'json' | 'md';
|
|
1378
1383
|
}
|
|
1379
1384
|
interface BindingBundleState {
|
|
1380
1385
|
lastFullBuildFailed: boolean;
|
|
@@ -1586,6 +1591,7 @@ interface BindingLogLocation {
|
|
|
1586
1591
|
}
|
|
1587
1592
|
interface BindingMagicStringOptions {
|
|
1588
1593
|
filename?: string;
|
|
1594
|
+
offset?: number;
|
|
1589
1595
|
}
|
|
1590
1596
|
interface BindingModulePreloadOptions {
|
|
1591
1597
|
polyfill: boolean;
|
|
@@ -1636,6 +1642,17 @@ interface BindingReplacePluginConfig {
|
|
|
1636
1642
|
objectGuards?: boolean;
|
|
1637
1643
|
sourcemap?: boolean;
|
|
1638
1644
|
}
|
|
1645
|
+
interface BindingRollipopReactRefreshWrapperPluginConfig {
|
|
1646
|
+
cwd: string;
|
|
1647
|
+
include?: Array<BindingStringOrRegex>;
|
|
1648
|
+
exclude?: Array<BindingStringOrRegex>;
|
|
1649
|
+
jsxImportSource?: string;
|
|
1650
|
+
}
|
|
1651
|
+
interface BindingRollipopWorkletsPluginConfig {
|
|
1652
|
+
root: string;
|
|
1653
|
+
pluginVersion: string;
|
|
1654
|
+
isRelease: boolean;
|
|
1655
|
+
}
|
|
1639
1656
|
interface BindingSourceMapOptions {
|
|
1640
1657
|
/** The filename for the generated file (goes into `map.file`) */
|
|
1641
1658
|
file?: string;
|
|
@@ -1808,7 +1825,6 @@ interface BindingViteTransformPluginConfig {
|
|
|
1808
1825
|
transformOptions?: TransformOptions;
|
|
1809
1826
|
yarnPnp?: boolean;
|
|
1810
1827
|
}
|
|
1811
|
-
declare function createTokioRuntime(blockingThreads?: number | undefined | null): void;
|
|
1812
1828
|
interface ExternalMemoryStatus {
|
|
1813
1829
|
freed: boolean;
|
|
1814
1830
|
reason?: string;
|
|
@@ -1846,4 +1862,4 @@ interface ViteImportGlobMeta {
|
|
|
1846
1862
|
isSubImportsPattern?: boolean;
|
|
1847
1863
|
}
|
|
1848
1864
|
//#endregion
|
|
1849
|
-
export {
|
|
1865
|
+
export { BindingWatcherBundler as A, PreRenderedChunk as B, BindingViteJsonPluginConfig as C, BindingViteReporterPluginConfig as D, BindingViteReactRefreshWrapperPluginConfig as E, MinifyOptions as F, TsconfigCache as G, ResolverFactory as H, MinifyResult as I, moduleRunnerTransform as J, isolatedDeclaration as K, NapiResolveOptions as L, IsolatedDeclarationsOptions as M, IsolatedDeclarationsResult as N, BindingViteResolvePluginConfig as O, JsxOptions as P, ParseResult as R, BindingViteImportGlobPluginConfig as S, BindingViteModulePreloadPolyfillPluginConfig as T, SourceMap as U, ResolveResult as V, TransformOptions as W, resolveTsconfig as Y, BindingTransformHookExtraArgs as _, BindingEnhancedTransformOptions as a, BindingViteBuildImportAnalysisPluginConfig as b, BindingHookResolveIdExtraArgs as c, BindingPluginContextResolveOptions as d, BindingRebuildStrategy as f, BindingRollipopWorkletsPluginConfig as g, BindingRollipopReactRefreshWrapperPluginConfig as h, BindingClientHmrUpdate as i, ExternalMemoryStatus as j, BindingViteTransformPluginConfig as k, BindingIsolatedDeclarationPluginConfig as l, BindingReplacePluginConfig as m, BindingBundleAnalyzerPluginConfig as n, BindingEnhancedTransformResult as o, BindingRenderedChunk as p, isolatedDeclarationSync as q, BindingBundleState as r, BindingEsmExternalRequirePluginConfig as s, BindingBuiltinPluginName as t, BindingMagicString as u, BindingTsconfigCompilerOptions as v, BindingViteManifestPluginConfig as w, BindingViteDynamicImportVarsPluginConfig as x, BindingTsconfigRawOptions as y, ParserOptions as z };
|