rolldown 1.0.0-beta.31-commit.832324a → 1.0.0-beta.32
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.cjs +3 -3
- package/dist/cli.d.cts +1 -1
- package/dist/cli.d.mts +1 -1
- package/dist/cli.mjs +5 -4
- package/dist/config.cjs +3 -3
- package/dist/config.d.cts +2 -2
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +3 -3
- package/dist/experimental-index.cjs +2 -2
- package/dist/experimental-index.d.cts +2 -2
- package/dist/experimental-index.d.mts +2 -2
- package/dist/experimental-index.mjs +2 -2
- package/dist/filter-index.d.cts +2 -2
- package/dist/filter-index.d.mts +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/parallel-plugin-worker.cjs +2 -2
- package/dist/parallel-plugin-worker.d.cts +1 -1
- package/dist/parallel-plugin-worker.d.mts +1 -1
- package/dist/parallel-plugin-worker.mjs +4 -3
- package/dist/parallel-plugin.d.cts +2 -2
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.cjs +1 -1
- package/dist/parse-ast-index.d.cts +1 -1
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/shared/{binding-BIqlUgrm.d.cts → binding-BEeJNtY4.d.mts} +1 -0
- package/dist/shared/{binding-COE5UL-B.d.mts → binding-CRMJJtol.d.cts} +1 -0
- package/dist/shared/{define-config-DfOVOsx6.d.mts → define-config-Cf8iQFTl.d.mts} +1 -1
- package/dist/shared/{define-config-DFC0Nu7H.d.cts → define-config-Dw9PP95x.d.cts} +1 -1
- package/dist/shared/{load-config-BsvtI-HD.mjs → load-config-BF8LOHEy.mjs} +1 -1
- package/dist/shared/{load-config-C2ByPkRr.cjs → load-config-Dl9pIpnr.cjs} +1 -1
- package/dist/shared/{parse-ast-index-B5ThufKy.mjs → parse-ast-index-Ch2Zs4Nn.mjs} +23 -23
- package/dist/shared/{parse-ast-index-DSyjeX7n.cjs → parse-ast-index-Cn-35Vbp.cjs} +23 -23
- package/dist/shared/{src-aI0ysjSj.cjs → src-CsEb-TS_.cjs} +66 -66
- package/dist/shared/{src-CJyr8NNX.mjs → src-p50l1OMU.mjs} +66 -66
- package/package.json +18 -18
|
@@ -82,7 +82,7 @@ function requireNative() {
|
|
|
82
82
|
try {
|
|
83
83
|
const binding = require("@rolldown/binding-android-arm64");
|
|
84
84
|
const bindingPackageVersion = require("@rolldown/binding-android-arm64/package.json").version;
|
|
85
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
85
|
+
if (bindingPackageVersion !== "1.0.0-beta.32" && 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.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
86
86
|
return binding;
|
|
87
87
|
} catch (e) {
|
|
88
88
|
loadErrors.push(e);
|
|
@@ -96,7 +96,7 @@ function requireNative() {
|
|
|
96
96
|
try {
|
|
97
97
|
const binding = require("@rolldown/binding-android-arm-eabi");
|
|
98
98
|
const bindingPackageVersion = require("@rolldown/binding-android-arm-eabi/package.json").version;
|
|
99
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
99
|
+
if (bindingPackageVersion !== "1.0.0-beta.32" && 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.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
100
100
|
return binding;
|
|
101
101
|
} catch (e) {
|
|
102
102
|
loadErrors.push(e);
|
|
@@ -111,7 +111,7 @@ function requireNative() {
|
|
|
111
111
|
try {
|
|
112
112
|
const binding = require("@rolldown/binding-win32-x64-msvc");
|
|
113
113
|
const bindingPackageVersion = require("@rolldown/binding-win32-x64-msvc/package.json").version;
|
|
114
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
114
|
+
if (bindingPackageVersion !== "1.0.0-beta.32" && 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.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
115
115
|
return binding;
|
|
116
116
|
} catch (e) {
|
|
117
117
|
loadErrors.push(e);
|
|
@@ -125,7 +125,7 @@ function requireNative() {
|
|
|
125
125
|
try {
|
|
126
126
|
const binding = require("@rolldown/binding-win32-ia32-msvc");
|
|
127
127
|
const bindingPackageVersion = require("@rolldown/binding-win32-ia32-msvc/package.json").version;
|
|
128
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
128
|
+
if (bindingPackageVersion !== "1.0.0-beta.32" && 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.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
129
129
|
return binding;
|
|
130
130
|
} catch (e) {
|
|
131
131
|
loadErrors.push(e);
|
|
@@ -139,7 +139,7 @@ function requireNative() {
|
|
|
139
139
|
try {
|
|
140
140
|
const binding = require("@rolldown/binding-win32-arm64-msvc");
|
|
141
141
|
const bindingPackageVersion = require("@rolldown/binding-win32-arm64-msvc/package.json").version;
|
|
142
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
142
|
+
if (bindingPackageVersion !== "1.0.0-beta.32" && 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.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
143
143
|
return binding;
|
|
144
144
|
} catch (e) {
|
|
145
145
|
loadErrors.push(e);
|
|
@@ -154,7 +154,7 @@ function requireNative() {
|
|
|
154
154
|
try {
|
|
155
155
|
const binding = require("@rolldown/binding-darwin-universal");
|
|
156
156
|
const bindingPackageVersion = require("@rolldown/binding-darwin-universal/package.json").version;
|
|
157
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
157
|
+
if (bindingPackageVersion !== "1.0.0-beta.32" && 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.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
158
158
|
return binding;
|
|
159
159
|
} catch (e) {
|
|
160
160
|
loadErrors.push(e);
|
|
@@ -168,7 +168,7 @@ function requireNative() {
|
|
|
168
168
|
try {
|
|
169
169
|
const binding = require("@rolldown/binding-darwin-x64");
|
|
170
170
|
const bindingPackageVersion = require("@rolldown/binding-darwin-x64/package.json").version;
|
|
171
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
171
|
+
if (bindingPackageVersion !== "1.0.0-beta.32" && 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.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
172
172
|
return binding;
|
|
173
173
|
} catch (e) {
|
|
174
174
|
loadErrors.push(e);
|
|
@@ -182,7 +182,7 @@ function requireNative() {
|
|
|
182
182
|
try {
|
|
183
183
|
const binding = require("@rolldown/binding-darwin-arm64");
|
|
184
184
|
const bindingPackageVersion = require("@rolldown/binding-darwin-arm64/package.json").version;
|
|
185
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
185
|
+
if (bindingPackageVersion !== "1.0.0-beta.32" && 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.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
186
186
|
return binding;
|
|
187
187
|
} catch (e) {
|
|
188
188
|
loadErrors.push(e);
|
|
@@ -197,7 +197,7 @@ function requireNative() {
|
|
|
197
197
|
try {
|
|
198
198
|
const binding = require("@rolldown/binding-freebsd-x64");
|
|
199
199
|
const bindingPackageVersion = require("@rolldown/binding-freebsd-x64/package.json").version;
|
|
200
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
200
|
+
if (bindingPackageVersion !== "1.0.0-beta.32" && 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.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
201
201
|
return binding;
|
|
202
202
|
} catch (e) {
|
|
203
203
|
loadErrors.push(e);
|
|
@@ -211,7 +211,7 @@ function requireNative() {
|
|
|
211
211
|
try {
|
|
212
212
|
const binding = require("@rolldown/binding-freebsd-arm64");
|
|
213
213
|
const bindingPackageVersion = require("@rolldown/binding-freebsd-arm64/package.json").version;
|
|
214
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
214
|
+
if (bindingPackageVersion !== "1.0.0-beta.32" && 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.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
215
215
|
return binding;
|
|
216
216
|
} catch (e) {
|
|
217
217
|
loadErrors.push(e);
|
|
@@ -226,7 +226,7 @@ function requireNative() {
|
|
|
226
226
|
try {
|
|
227
227
|
const binding = require("@rolldown/binding-linux-x64-musl");
|
|
228
228
|
const bindingPackageVersion = require("@rolldown/binding-linux-x64-musl/package.json").version;
|
|
229
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
229
|
+
if (bindingPackageVersion !== "1.0.0-beta.32" && 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.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
230
230
|
return binding;
|
|
231
231
|
} catch (e) {
|
|
232
232
|
loadErrors.push(e);
|
|
@@ -240,7 +240,7 @@ function requireNative() {
|
|
|
240
240
|
try {
|
|
241
241
|
const binding = require("@rolldown/binding-linux-x64-gnu");
|
|
242
242
|
const bindingPackageVersion = require("@rolldown/binding-linux-x64-gnu/package.json").version;
|
|
243
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
243
|
+
if (bindingPackageVersion !== "1.0.0-beta.32" && 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.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
244
244
|
return binding;
|
|
245
245
|
} catch (e) {
|
|
246
246
|
loadErrors.push(e);
|
|
@@ -255,7 +255,7 @@ function requireNative() {
|
|
|
255
255
|
try {
|
|
256
256
|
const binding = require("@rolldown/binding-linux-arm64-musl");
|
|
257
257
|
const bindingPackageVersion = require("@rolldown/binding-linux-arm64-musl/package.json").version;
|
|
258
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
258
|
+
if (bindingPackageVersion !== "1.0.0-beta.32" && 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.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
259
259
|
return binding;
|
|
260
260
|
} catch (e) {
|
|
261
261
|
loadErrors.push(e);
|
|
@@ -269,7 +269,7 @@ function requireNative() {
|
|
|
269
269
|
try {
|
|
270
270
|
const binding = require("@rolldown/binding-linux-arm64-gnu");
|
|
271
271
|
const bindingPackageVersion = require("@rolldown/binding-linux-arm64-gnu/package.json").version;
|
|
272
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
272
|
+
if (bindingPackageVersion !== "1.0.0-beta.32" && 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.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
273
273
|
return binding;
|
|
274
274
|
} catch (e) {
|
|
275
275
|
loadErrors.push(e);
|
|
@@ -284,7 +284,7 @@ function requireNative() {
|
|
|
284
284
|
try {
|
|
285
285
|
const binding = require("@rolldown/binding-linux-arm-musleabihf");
|
|
286
286
|
const bindingPackageVersion = require("@rolldown/binding-linux-arm-musleabihf/package.json").version;
|
|
287
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
287
|
+
if (bindingPackageVersion !== "1.0.0-beta.32" && 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.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
288
288
|
return binding;
|
|
289
289
|
} catch (e) {
|
|
290
290
|
loadErrors.push(e);
|
|
@@ -298,7 +298,7 @@ function requireNative() {
|
|
|
298
298
|
try {
|
|
299
299
|
const binding = require("@rolldown/binding-linux-arm-gnueabihf");
|
|
300
300
|
const bindingPackageVersion = require("@rolldown/binding-linux-arm-gnueabihf/package.json").version;
|
|
301
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
301
|
+
if (bindingPackageVersion !== "1.0.0-beta.32" && 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.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
302
302
|
return binding;
|
|
303
303
|
} catch (e) {
|
|
304
304
|
loadErrors.push(e);
|
|
@@ -313,7 +313,7 @@ function requireNative() {
|
|
|
313
313
|
try {
|
|
314
314
|
const binding = require("@rolldown/binding-linux-riscv64-musl");
|
|
315
315
|
const bindingPackageVersion = require("@rolldown/binding-linux-riscv64-musl/package.json").version;
|
|
316
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
316
|
+
if (bindingPackageVersion !== "1.0.0-beta.32" && 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.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
317
317
|
return binding;
|
|
318
318
|
} catch (e) {
|
|
319
319
|
loadErrors.push(e);
|
|
@@ -327,7 +327,7 @@ function requireNative() {
|
|
|
327
327
|
try {
|
|
328
328
|
const binding = require("@rolldown/binding-linux-riscv64-gnu");
|
|
329
329
|
const bindingPackageVersion = require("@rolldown/binding-linux-riscv64-gnu/package.json").version;
|
|
330
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
330
|
+
if (bindingPackageVersion !== "1.0.0-beta.32" && 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.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
331
331
|
return binding;
|
|
332
332
|
} catch (e) {
|
|
333
333
|
loadErrors.push(e);
|
|
@@ -342,7 +342,7 @@ function requireNative() {
|
|
|
342
342
|
try {
|
|
343
343
|
const binding = require("@rolldown/binding-linux-ppc64-gnu");
|
|
344
344
|
const bindingPackageVersion = require("@rolldown/binding-linux-ppc64-gnu/package.json").version;
|
|
345
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
345
|
+
if (bindingPackageVersion !== "1.0.0-beta.32" && 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.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
346
346
|
return binding;
|
|
347
347
|
} catch (e) {
|
|
348
348
|
loadErrors.push(e);
|
|
@@ -356,7 +356,7 @@ function requireNative() {
|
|
|
356
356
|
try {
|
|
357
357
|
const binding = require("@rolldown/binding-linux-s390x-gnu");
|
|
358
358
|
const bindingPackageVersion = require("@rolldown/binding-linux-s390x-gnu/package.json").version;
|
|
359
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
359
|
+
if (bindingPackageVersion !== "1.0.0-beta.32" && 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.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
360
360
|
return binding;
|
|
361
361
|
} catch (e) {
|
|
362
362
|
loadErrors.push(e);
|
|
@@ -371,7 +371,7 @@ function requireNative() {
|
|
|
371
371
|
try {
|
|
372
372
|
const binding = require("@rolldown/binding-openharmony-arm64");
|
|
373
373
|
const bindingPackageVersion = require("@rolldown/binding-openharmony-arm64/package.json").version;
|
|
374
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
374
|
+
if (bindingPackageVersion !== "1.0.0-beta.32" && 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.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
375
375
|
return binding;
|
|
376
376
|
} catch (e) {
|
|
377
377
|
loadErrors.push(e);
|
|
@@ -385,7 +385,7 @@ function requireNative() {
|
|
|
385
385
|
try {
|
|
386
386
|
const binding = require("@rolldown/binding-openharmony-x64");
|
|
387
387
|
const bindingPackageVersion = require("@rolldown/binding-openharmony-x64/package.json").version;
|
|
388
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
388
|
+
if (bindingPackageVersion !== "1.0.0-beta.32" && 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.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
389
389
|
return binding;
|
|
390
390
|
} catch (e) {
|
|
391
391
|
loadErrors.push(e);
|
|
@@ -399,7 +399,7 @@ function requireNative() {
|
|
|
399
399
|
try {
|
|
400
400
|
const binding = require("@rolldown/binding-openharmony-arm");
|
|
401
401
|
const bindingPackageVersion = require("@rolldown/binding-openharmony-arm/package.json").version;
|
|
402
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
402
|
+
if (bindingPackageVersion !== "1.0.0-beta.32" && 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.32 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
403
403
|
return binding;
|
|
404
404
|
} catch (e) {
|
|
405
405
|
loadErrors.push(e);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_parse_ast_index = require('./parse-ast-index-
|
|
2
|
+
const require_parse_ast_index = require('./parse-ast-index-Cn-35Vbp.cjs');
|
|
3
3
|
const require_misc = require('./misc-DksvspN4.cjs');
|
|
4
4
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
5
5
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
@@ -10,7 +10,7 @@ const node_os = require_chunk.__toESM(require("node:os"));
|
|
|
10
10
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
11
11
|
|
|
12
12
|
//#region package.json
|
|
13
|
-
var version = "1.0.0-beta.
|
|
13
|
+
var version = "1.0.0-beta.32";
|
|
14
14
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
15
15
|
|
|
16
16
|
//#endregion
|
|
@@ -32,9 +32,9 @@ function makeBuiltinPluginCallable(plugin) {
|
|
|
32
32
|
for (const key in callablePlugin) wrappedPlugin[key] = async function(...args$1) {
|
|
33
33
|
try {
|
|
34
34
|
return await callablePlugin[key](...args$1);
|
|
35
|
-
} catch (e) {
|
|
36
|
-
if (e instanceof Error && !e.stack?.includes("at ")) Error.captureStackTrace(e, wrappedPlugin[key]);
|
|
37
|
-
return require_parse_ast_index.error(require_parse_ast_index.logPluginError(e, plugin.name, {
|
|
35
|
+
} catch (e$1) {
|
|
36
|
+
if (e$1 instanceof Error && !e$1.stack?.includes("at ")) Error.captureStackTrace(e$1, wrappedPlugin[key]);
|
|
37
|
+
return require_parse_ast_index.error(require_parse_ast_index.logPluginError(e$1, plugin.name, {
|
|
38
38
|
hook: key,
|
|
39
39
|
id: key === "transform" ? args$1[2] : void 0
|
|
40
40
|
}));
|
|
@@ -353,8 +353,8 @@ var MinimalPluginContextImpl = class {
|
|
|
353
353
|
watchMode
|
|
354
354
|
};
|
|
355
355
|
}
|
|
356
|
-
error(e) {
|
|
357
|
-
return require_parse_ast_index.error(require_parse_ast_index.logPluginError(normalizeLog(e), this.pluginName, { hook: this.hookName }));
|
|
356
|
+
error(e$1) {
|
|
357
|
+
return require_parse_ast_index.error(require_parse_ast_index.logPluginError(normalizeLog(e$1), this.pluginName, { hook: this.hookName }));
|
|
358
358
|
}
|
|
359
359
|
};
|
|
360
360
|
|
|
@@ -2211,7 +2211,7 @@ function validateOption(key, options) {
|
|
|
2211
2211
|
const issuePaths = issue.path.map((path$2) => path$2.key);
|
|
2212
2212
|
let issueMsg = issue.message;
|
|
2213
2213
|
if (issue.type === "union") {
|
|
2214
|
-
const subIssue = issue.issues?.find((i
|
|
2214
|
+
const subIssue = issue.issues?.find((i) => !(i.type !== issue.received && i.input === issue.input));
|
|
2215
2215
|
if (subIssue) {
|
|
2216
2216
|
if (subIssue.path) issuePaths.push(subIssue.path.map((path$2) => path$2.key));
|
|
2217
2217
|
issueMsg = subIssue.message;
|
|
@@ -2254,19 +2254,19 @@ function bindingifySourcemap$1(map) {
|
|
|
2254
2254
|
//#endregion
|
|
2255
2255
|
//#region src/utils/error.ts
|
|
2256
2256
|
function normalizeErrors(rawErrors) {
|
|
2257
|
-
const errors = rawErrors.map((e) => e instanceof Error ? e : Object.assign(/* @__PURE__ */ new Error(), {
|
|
2258
|
-
kind: e.kind,
|
|
2259
|
-
message: e.message,
|
|
2257
|
+
const errors = rawErrors.map((e$1) => e$1 instanceof Error ? e$1 : Object.assign(/* @__PURE__ */ new Error(), {
|
|
2258
|
+
kind: e$1.kind,
|
|
2259
|
+
message: e$1.message,
|
|
2260
2260
|
stack: void 0
|
|
2261
2261
|
}));
|
|
2262
2262
|
let summary = `Build failed with ${errors.length} error${errors.length < 2 ? "" : "s"}:\n`;
|
|
2263
|
-
for (let i
|
|
2263
|
+
for (let i = 0; i < errors.length; i++) {
|
|
2264
2264
|
summary += "\n";
|
|
2265
|
-
if (i
|
|
2265
|
+
if (i >= 5) {
|
|
2266
2266
|
summary += "...";
|
|
2267
2267
|
break;
|
|
2268
2268
|
}
|
|
2269
|
-
summary += getErrorMessage(errors[i
|
|
2269
|
+
summary += getErrorMessage(errors[i]);
|
|
2270
2270
|
}
|
|
2271
2271
|
const wrapper = new Error(summary);
|
|
2272
2272
|
Object.defineProperty(wrapper, "errors", {
|
|
@@ -2281,20 +2281,20 @@ function normalizeErrors(rawErrors) {
|
|
|
2281
2281
|
});
|
|
2282
2282
|
return wrapper;
|
|
2283
2283
|
}
|
|
2284
|
-
function getErrorMessage(e) {
|
|
2285
|
-
if (Object.hasOwn(e, "kind")) return e.message;
|
|
2284
|
+
function getErrorMessage(e$1) {
|
|
2285
|
+
if (Object.hasOwn(e$1, "kind")) return e$1.message;
|
|
2286
2286
|
let s = "";
|
|
2287
|
-
if (e.plugin) s += `[plugin ${e.plugin}]`;
|
|
2288
|
-
const id = e.id ?? e.loc?.file;
|
|
2287
|
+
if (e$1.plugin) s += `[plugin ${e$1.plugin}]`;
|
|
2288
|
+
const id = e$1.id ?? e$1.loc?.file;
|
|
2289
2289
|
if (id) {
|
|
2290
2290
|
s += " " + id;
|
|
2291
|
-
if (e.loc) s += `:${e.loc.line}:${e.loc.column}`;
|
|
2291
|
+
if (e$1.loc) s += `:${e$1.loc.line}:${e$1.loc.column}`;
|
|
2292
2292
|
}
|
|
2293
2293
|
if (s) s += "\n";
|
|
2294
|
-
const message = `${e.name ?? "Error"}: ${e.message}`;
|
|
2294
|
+
const message = `${e$1.name ?? "Error"}: ${e$1.message}`;
|
|
2295
2295
|
s += message;
|
|
2296
|
-
if (e.frame) s = joinNewLine(s, e.frame);
|
|
2297
|
-
if (e.stack) s = joinNewLine(s, e.stack.replace(message, ""));
|
|
2296
|
+
if (e$1.frame) s = joinNewLine(s, e$1.frame);
|
|
2297
|
+
if (e$1.stack) s = joinNewLine(s, e$1.stack.replace(message, ""));
|
|
2298
2298
|
return s;
|
|
2299
2299
|
}
|
|
2300
2300
|
function joinNewLine(s1, s2) {
|
|
@@ -2338,33 +2338,33 @@ function normalizeTransformHookSourcemap(id, originalCode, rawMap) {
|
|
|
2338
2338
|
}
|
|
2339
2339
|
|
|
2340
2340
|
//#endregion
|
|
2341
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2342
|
-
function
|
|
2343
|
-
let
|
|
2344
|
-
return
|
|
2345
|
-
lazy:
|
|
2346
|
-
lazyArgs:
|
|
2341
|
+
//#region ../../node_modules/.pnpm/remeda@2.30.0/node_modules/remeda/dist/lazyDataLastImpl-BDhrIOwR.js
|
|
2342
|
+
function e(e$1, t$2, n$1) {
|
|
2343
|
+
let r = (n$2) => e$1(n$2, ...t$2);
|
|
2344
|
+
return n$1 === void 0 ? r : Object.assign(r, {
|
|
2345
|
+
lazy: n$1,
|
|
2346
|
+
lazyArgs: t$2
|
|
2347
2347
|
});
|
|
2348
2348
|
}
|
|
2349
2349
|
|
|
2350
2350
|
//#endregion
|
|
2351
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2352
|
-
function
|
|
2353
|
-
let
|
|
2354
|
-
if (
|
|
2355
|
-
if (
|
|
2356
|
-
throw
|
|
2351
|
+
//#region ../../node_modules/.pnpm/remeda@2.30.0/node_modules/remeda/dist/purry-DH9cw9sy.js
|
|
2352
|
+
function t(t$2, n$1, r) {
|
|
2353
|
+
let i = t$2.length - n$1.length;
|
|
2354
|
+
if (i === 0) return t$2(...n$1);
|
|
2355
|
+
if (i === 1) return e(t$2, n$1, r);
|
|
2356
|
+
throw Error(`Wrong number of arguments`);
|
|
2357
2357
|
}
|
|
2358
2358
|
|
|
2359
2359
|
//#endregion
|
|
2360
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2361
|
-
function
|
|
2362
|
-
return
|
|
2363
|
-
}
|
|
2364
|
-
|
|
2365
|
-
let
|
|
2366
|
-
for (let [
|
|
2367
|
-
return
|
|
2360
|
+
//#region ../../node_modules/.pnpm/remeda@2.30.0/node_modules/remeda/dist/partition-BJYkp-a7.js
|
|
2361
|
+
function t$1(...t$2) {
|
|
2362
|
+
return t(n, t$2);
|
|
2363
|
+
}
|
|
2364
|
+
const n = (e$1, t$2) => {
|
|
2365
|
+
let n$1 = [[], []];
|
|
2366
|
+
for (let [r, i] of e$1.entries()) t$2(i, r, e$1) ? n$1[0].push(i) : n$1[1].push(i);
|
|
2367
|
+
return n$1;
|
|
2368
2368
|
};
|
|
2369
2369
|
|
|
2370
2370
|
//#endregion
|
|
@@ -2389,8 +2389,8 @@ function transformFilterMatcherToFilterExprs(filterOption) {
|
|
|
2389
2389
|
let idExcludes = [];
|
|
2390
2390
|
let codeIncludes = [];
|
|
2391
2391
|
let codeExcludes = [];
|
|
2392
|
-
if (id) [idIncludes, idExcludes] =
|
|
2393
|
-
if (code) [codeIncludes, codeExcludes] =
|
|
2392
|
+
if (id) [idIncludes, idExcludes] = t$1(generalHookFilterMatcherToFilterExprs(id, "id") ?? [], (m) => m.kind === "include");
|
|
2393
|
+
if (code) [codeIncludes, codeExcludes] = t$1(generalHookFilterMatcherToFilterExprs(code, "code") ?? [], (m) => m.kind === "include");
|
|
2394
2394
|
ret.push(...idExcludes);
|
|
2395
2395
|
ret.push(...codeExcludes);
|
|
2396
2396
|
let andExprList = [];
|
|
@@ -2418,7 +2418,7 @@ function bindingifyFilterExprImpl(expr, list) {
|
|
|
2418
2418
|
switch (expr.kind) {
|
|
2419
2419
|
case "and": {
|
|
2420
2420
|
let args$1 = expr.args;
|
|
2421
|
-
for (let i
|
|
2421
|
+
for (let i = args$1.length - 1; i >= 0; i--) bindingifyFilterExprImpl(args$1[i], list);
|
|
2422
2422
|
list.push({
|
|
2423
2423
|
kind: "And",
|
|
2424
2424
|
payload: args$1.length
|
|
@@ -2427,7 +2427,7 @@ function bindingifyFilterExprImpl(expr, list) {
|
|
|
2427
2427
|
}
|
|
2428
2428
|
case "or": {
|
|
2429
2429
|
let args$1 = expr.args;
|
|
2430
|
-
for (let i
|
|
2430
|
+
for (let i = args$1.length - 1; i >= 0; i--) bindingifyFilterExprImpl(args$1[i], list);
|
|
2431
2431
|
list.push({
|
|
2432
2432
|
kind: "Or",
|
|
2433
2433
|
payload: args$1.length
|
|
@@ -2577,10 +2577,10 @@ var PluginContextImpl = class extends MinimalPluginContextImpl {
|
|
|
2577
2577
|
data.loadModulePromiseMap.set(id, promise$1);
|
|
2578
2578
|
try {
|
|
2579
2579
|
await context.load(id, options.moduleSideEffects ?? void 0);
|
|
2580
|
-
} catch (e) {
|
|
2580
|
+
} catch (e$1) {
|
|
2581
2581
|
data.loadModulePromiseMap.delete(id);
|
|
2582
2582
|
data.loadModulePromiseResolveFnMap.delete(id);
|
|
2583
|
-
throw e;
|
|
2583
|
+
throw e$1;
|
|
2584
2584
|
}
|
|
2585
2585
|
return promise$1;
|
|
2586
2586
|
}
|
|
@@ -2667,12 +2667,12 @@ var TransformPluginContextImpl = class extends PluginContextImpl {
|
|
|
2667
2667
|
this.warn = getLogHandler$1(this.warn);
|
|
2668
2668
|
this.info = getLogHandler$1(this.info);
|
|
2669
2669
|
}
|
|
2670
|
-
error(e, pos) {
|
|
2671
|
-
if (typeof e === "string") e = { message: e };
|
|
2672
|
-
if (pos) require_parse_ast_index.augmentCodeLocation(e, pos, this.moduleSource, this.moduleId);
|
|
2673
|
-
e.id = this.moduleId;
|
|
2674
|
-
e.hook = "transform";
|
|
2675
|
-
return require_parse_ast_index.error(require_parse_ast_index.logPluginError(normalizeLog(e), this.pluginName));
|
|
2670
|
+
error(e$1, pos) {
|
|
2671
|
+
if (typeof e$1 === "string") e$1 = { message: e$1 };
|
|
2672
|
+
if (pos) require_parse_ast_index.augmentCodeLocation(e$1, pos, this.moduleSource, this.moduleId);
|
|
2673
|
+
e$1.id = this.moduleId;
|
|
2674
|
+
e$1.hook = "transform";
|
|
2675
|
+
return require_parse_ast_index.error(require_parse_ast_index.logPluginError(normalizeLog(e$1), this.pluginName));
|
|
2676
2676
|
}
|
|
2677
2677
|
getCombinedSourcemap() {
|
|
2678
2678
|
return JSON.parse(this.inner.getCombinedSourcemap());
|
|
@@ -2898,9 +2898,9 @@ function transformRenderedChunk(chunk) {
|
|
|
2898
2898
|
}
|
|
2899
2899
|
function transformChunkModules(modules) {
|
|
2900
2900
|
const result = {};
|
|
2901
|
-
for (let i
|
|
2902
|
-
let key = modules.keys[i
|
|
2903
|
-
const mod = modules.values[i
|
|
2901
|
+
for (let i = 0; i < modules.values.length; i++) {
|
|
2902
|
+
let key = modules.keys[i];
|
|
2903
|
+
const mod = modules.values[i];
|
|
2904
2904
|
result[key] = transformToRenderedModule(mod);
|
|
2905
2905
|
}
|
|
2906
2906
|
return result;
|
|
@@ -3409,8 +3409,8 @@ function wrapHandlers(plugin) {
|
|
|
3409
3409
|
if (handler) plugin[hookName] = async (...args$1) => {
|
|
3410
3410
|
try {
|
|
3411
3411
|
return await handler(...args$1);
|
|
3412
|
-
} catch (e) {
|
|
3413
|
-
return require_parse_ast_index.error(require_parse_ast_index.logPluginError(e, plugin.name, {
|
|
3412
|
+
} catch (e$1) {
|
|
3413
|
+
return require_parse_ast_index.error(require_parse_ast_index.logPluginError(e$1, plugin.name, {
|
|
3414
3414
|
hook: hookName,
|
|
3415
3415
|
id: hookName === "transform" ? args$1[2] : void 0
|
|
3416
3416
|
}));
|
|
@@ -4071,7 +4071,7 @@ async function initializeParallelPlugins(plugins) {
|
|
|
4071
4071
|
};
|
|
4072
4072
|
}
|
|
4073
4073
|
function initializeWorkers(registryId, count, pluginInfos) {
|
|
4074
|
-
return Promise.all(Array.from({ length: count }, (_, i
|
|
4074
|
+
return Promise.all(Array.from({ length: count }, (_, i) => initializeWorker(registryId, pluginInfos, i)));
|
|
4075
4075
|
}
|
|
4076
4076
|
async function initializeWorker(registryId, pluginInfos, threadNumber) {
|
|
4077
4077
|
const urlString = (void 0)("#parallel-plugin-worker");
|
|
@@ -4091,9 +4091,9 @@ async function initializeWorker(registryId, pluginInfos, threadNumber) {
|
|
|
4091
4091
|
});
|
|
4092
4092
|
});
|
|
4093
4093
|
return worker;
|
|
4094
|
-
} catch (e) {
|
|
4094
|
+
} catch (e$1) {
|
|
4095
4095
|
worker?.terminate();
|
|
4096
|
-
throw e;
|
|
4096
|
+
throw e$1;
|
|
4097
4097
|
}
|
|
4098
4098
|
}
|
|
4099
4099
|
const availableParallelism = () => {
|
|
@@ -4135,9 +4135,9 @@ async function createBundlerOptions(inputOptions, outputOptions, watchMode, isCl
|
|
|
4135
4135
|
onLog,
|
|
4136
4136
|
stopWorkers: parallelPluginInitResult?.stopWorkers
|
|
4137
4137
|
};
|
|
4138
|
-
} catch (e) {
|
|
4138
|
+
} catch (e$1) {
|
|
4139
4139
|
await parallelPluginInitResult?.stopWorkers();
|
|
4140
|
-
throw e;
|
|
4140
|
+
throw e$1;
|
|
4141
4141
|
}
|
|
4142
4142
|
}
|
|
4143
4143
|
|
|
@@ -4156,9 +4156,9 @@ async function createBundlerImpl(bundler, inputOptions, outputOptions, isClose)
|
|
|
4156
4156
|
asyncRuntimeShutdown = true;
|
|
4157
4157
|
}
|
|
4158
4158
|
};
|
|
4159
|
-
} catch (e) {
|
|
4159
|
+
} catch (e$1) {
|
|
4160
4160
|
await option.stopWorkers?.();
|
|
4161
|
-
throw e;
|
|
4161
|
+
throw e$1;
|
|
4162
4162
|
}
|
|
4163
4163
|
}
|
|
4164
4164
|
|