rolldown 1.0.0-beta.4-commit.2b0f20f → 1.0.0-beta.4-commit.308f68b
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/cjs/cli.cjs +2 -2
- package/dist/cjs/experimental-index.cjs +2 -2
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/parallel-plugin-worker.cjs +2 -2
- package/dist/cjs/parse-ast-index.cjs +1 -1
- package/dist/esm/cli.mjs +2 -2
- package/dist/esm/experimental-index.mjs +2 -2
- package/dist/esm/index.mjs +2 -2
- package/dist/esm/parallel-plugin-worker.mjs +2 -2
- package/dist/esm/parse-ast-index.mjs +1 -1
- package/dist/shared/{parse-ast-index-DIxeQDpE.mjs → parse-ast-index-CyX8MVZE.mjs} +21 -21
- package/dist/shared/{parse-ast-index-Dh_sWnMa.cjs → parse-ast-index-D7XtMFo4.cjs} +21 -21
- package/dist/shared/{src-DKUMMSNY.mjs → src-DB6mZNTU.mjs} +14 -12
- package/dist/shared/{src-CqqgWgwO.cjs → src-y8hk77fd.cjs} +14 -12
- package/dist/types/binding.d.ts +1 -0
- package/dist/types/options/generated/checks-options.d.ts +45 -0
- package/package.json +14 -14
package/dist/cjs/cli.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('../shared/chunk-qZFfknuJ.cjs');
|
|
3
|
-
const require_src = require('../shared/src-
|
|
4
|
-
const require_parse_ast_index = require('../shared/parse-ast-index-
|
|
3
|
+
const require_src = require('../shared/src-y8hk77fd.cjs');
|
|
4
|
+
const require_parse_ast_index = require('../shared/parse-ast-index-D7XtMFo4.cjs');
|
|
5
5
|
const node_process = require_chunk.__toESM(require("node:process"));
|
|
6
6
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
7
7
|
const node_fs = require_chunk.__toESM(require("node:fs"));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('../shared/chunk-qZFfknuJ.cjs');
|
|
3
|
-
const require_src = require('../shared/src-
|
|
4
|
-
const require_parse_ast_index = require('../shared/parse-ast-index-
|
|
3
|
+
const require_src = require('../shared/src-y8hk77fd.cjs');
|
|
4
|
+
const require_parse_ast_index = require('../shared/parse-ast-index-D7XtMFo4.cjs');
|
|
5
5
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
6
6
|
|
|
7
7
|
//#region src/plugin/parallel-plugin.ts
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_src = require('../shared/src-
|
|
2
|
-
require('../shared/parse-ast-index-
|
|
1
|
+
const require_src = require('../shared/src-y8hk77fd.cjs');
|
|
2
|
+
require('../shared/parse-ast-index-D7XtMFo4.cjs');
|
|
3
3
|
|
|
4
4
|
exports.VERSION = require_src.VERSION
|
|
5
5
|
exports.build = require_src.build
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('../shared/chunk-qZFfknuJ.cjs');
|
|
3
|
-
const require_src = require('../shared/src-
|
|
4
|
-
const require_parse_ast_index = require('../shared/parse-ast-index-
|
|
3
|
+
const require_src = require('../shared/src-y8hk77fd.cjs');
|
|
4
|
+
const require_parse_ast_index = require('../shared/parse-ast-index-D7XtMFo4.cjs');
|
|
5
5
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
6
6
|
|
|
7
7
|
//#region src/parallel-plugin-worker.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_parse_ast_index = require('../shared/parse-ast-index-
|
|
1
|
+
const require_parse_ast_index = require('../shared/parse-ast-index-D7XtMFo4.cjs');
|
|
2
2
|
|
|
3
3
|
exports.parseAst = require_parse_ast_index.parseAst
|
|
4
4
|
exports.parseAstAsync = require_parse_ast_index.parseAstAsync
|
package/dist/esm/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { colors } from "../shared/parse-ast-index-
|
|
2
|
-
import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "../shared/src-
|
|
1
|
+
import { colors } from "../shared/parse-ast-index-CyX8MVZE.mjs";
|
|
2
|
+
import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "../shared/src-DB6mZNTU.mjs";
|
|
3
3
|
import process$1, { cwd } from "node:process";
|
|
4
4
|
import path, { sep } from "node:path";
|
|
5
5
|
import fs from "node:fs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { import_binding } from "../shared/parse-ast-index-
|
|
2
|
-
import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "../shared/src-
|
|
1
|
+
import { import_binding } from "../shared/parse-ast-index-CyX8MVZE.mjs";
|
|
2
|
+
import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "../shared/src-DB6mZNTU.mjs";
|
|
3
3
|
import { pathToFileURL } from "node:url";
|
|
4
4
|
|
|
5
5
|
//#region src/plugin/parallel-plugin.ts
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../shared/parse-ast-index-
|
|
2
|
-
import { VERSION, build, defineConfig, rolldown, watch } from "../shared/src-
|
|
1
|
+
import "../shared/parse-ast-index-CyX8MVZE.mjs";
|
|
2
|
+
import { VERSION, build, defineConfig, rolldown, watch } from "../shared/src-DB6mZNTU.mjs";
|
|
3
3
|
|
|
4
4
|
export { VERSION, build, defineConfig, rolldown, watch };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { import_binding } from "../shared/parse-ast-index-
|
|
2
|
-
import { PluginContextData, bindingifyPlugin } from "../shared/src-
|
|
1
|
+
import { import_binding } from "../shared/parse-ast-index-CyX8MVZE.mjs";
|
|
2
|
+
import { PluginContextData, bindingifyPlugin } from "../shared/src-DB6mZNTU.mjs";
|
|
3
3
|
import { parentPort, workerData } from "node:worker_threads";
|
|
4
4
|
|
|
5
5
|
//#region src/parallel-plugin-worker.ts
|
|
@@ -326,7 +326,7 @@ var require_binding = __commonJS({ "src/binding.js"(exports, module) {
|
|
|
326
326
|
}
|
|
327
327
|
else if (process.platform === "android") if (process.arch === "arm64") {
|
|
328
328
|
try {
|
|
329
|
-
return __require("
|
|
329
|
+
return __require("../rolldown-binding.android-arm64.node");
|
|
330
330
|
} catch (e) {
|
|
331
331
|
loadErrors.push(e);
|
|
332
332
|
}
|
|
@@ -337,7 +337,7 @@ var require_binding = __commonJS({ "src/binding.js"(exports, module) {
|
|
|
337
337
|
}
|
|
338
338
|
} else if (process.arch === "arm") {
|
|
339
339
|
try {
|
|
340
|
-
return __require("
|
|
340
|
+
return __require("../rolldown-binding.android-arm-eabi.node");
|
|
341
341
|
} catch (e) {
|
|
342
342
|
loadErrors.push(e);
|
|
343
343
|
}
|
|
@@ -349,7 +349,7 @@ var require_binding = __commonJS({ "src/binding.js"(exports, module) {
|
|
|
349
349
|
} else loadErrors.push(new Error(`Unsupported architecture on Android ${process.arch}`));
|
|
350
350
|
else if (process.platform === "win32") if (process.arch === "x64") {
|
|
351
351
|
try {
|
|
352
|
-
return __require("
|
|
352
|
+
return __require("../rolldown-binding.win32-x64-msvc.node");
|
|
353
353
|
} catch (e) {
|
|
354
354
|
loadErrors.push(e);
|
|
355
355
|
}
|
|
@@ -360,7 +360,7 @@ var require_binding = __commonJS({ "src/binding.js"(exports, module) {
|
|
|
360
360
|
}
|
|
361
361
|
} else if (process.arch === "ia32") {
|
|
362
362
|
try {
|
|
363
|
-
return __require("
|
|
363
|
+
return __require("../rolldown-binding.win32-ia32-msvc.node");
|
|
364
364
|
} catch (e) {
|
|
365
365
|
loadErrors.push(e);
|
|
366
366
|
}
|
|
@@ -371,7 +371,7 @@ var require_binding = __commonJS({ "src/binding.js"(exports, module) {
|
|
|
371
371
|
}
|
|
372
372
|
} else if (process.arch === "arm64") {
|
|
373
373
|
try {
|
|
374
|
-
return __require("
|
|
374
|
+
return __require("../rolldown-binding.win32-arm64-msvc.node");
|
|
375
375
|
} catch (e) {
|
|
376
376
|
loadErrors.push(e);
|
|
377
377
|
}
|
|
@@ -383,7 +383,7 @@ var require_binding = __commonJS({ "src/binding.js"(exports, module) {
|
|
|
383
383
|
} else loadErrors.push(new Error(`Unsupported architecture on Windows: ${process.arch}`));
|
|
384
384
|
else if (process.platform === "darwin") {
|
|
385
385
|
try {
|
|
386
|
-
return __require("
|
|
386
|
+
return __require("../rolldown-binding.darwin-universal.node");
|
|
387
387
|
} catch (e) {
|
|
388
388
|
loadErrors.push(e);
|
|
389
389
|
}
|
|
@@ -394,7 +394,7 @@ var require_binding = __commonJS({ "src/binding.js"(exports, module) {
|
|
|
394
394
|
}
|
|
395
395
|
if (process.arch === "x64") {
|
|
396
396
|
try {
|
|
397
|
-
return __require("
|
|
397
|
+
return __require("../rolldown-binding.darwin-x64.node");
|
|
398
398
|
} catch (e) {
|
|
399
399
|
loadErrors.push(e);
|
|
400
400
|
}
|
|
@@ -405,7 +405,7 @@ var require_binding = __commonJS({ "src/binding.js"(exports, module) {
|
|
|
405
405
|
}
|
|
406
406
|
} else if (process.arch === "arm64") {
|
|
407
407
|
try {
|
|
408
|
-
return __require("
|
|
408
|
+
return __require("../rolldown-binding.darwin-arm64.node");
|
|
409
409
|
} catch (e) {
|
|
410
410
|
loadErrors.push(e);
|
|
411
411
|
}
|
|
@@ -417,7 +417,7 @@ var require_binding = __commonJS({ "src/binding.js"(exports, module) {
|
|
|
417
417
|
} else loadErrors.push(new Error(`Unsupported architecture on macOS: ${process.arch}`));
|
|
418
418
|
} else if (process.platform === "freebsd") if (process.arch === "x64") {
|
|
419
419
|
try {
|
|
420
|
-
return __require("
|
|
420
|
+
return __require("../rolldown-binding.freebsd-x64.node");
|
|
421
421
|
} catch (e) {
|
|
422
422
|
loadErrors.push(e);
|
|
423
423
|
}
|
|
@@ -428,7 +428,7 @@ var require_binding = __commonJS({ "src/binding.js"(exports, module) {
|
|
|
428
428
|
}
|
|
429
429
|
} else if (process.arch === "arm64") {
|
|
430
430
|
try {
|
|
431
|
-
return __require("
|
|
431
|
+
return __require("../rolldown-binding.freebsd-arm64.node");
|
|
432
432
|
} catch (e) {
|
|
433
433
|
loadErrors.push(e);
|
|
434
434
|
}
|
|
@@ -440,7 +440,7 @@ var require_binding = __commonJS({ "src/binding.js"(exports, module) {
|
|
|
440
440
|
} else loadErrors.push(new Error(`Unsupported architecture on FreeBSD: ${process.arch}`));
|
|
441
441
|
else if (process.platform === "linux") if (process.arch === "x64") if (isMusl()) {
|
|
442
442
|
try {
|
|
443
|
-
return __require("
|
|
443
|
+
return __require("../rolldown-binding.linux-x64-musl.node");
|
|
444
444
|
} catch (e) {
|
|
445
445
|
loadErrors.push(e);
|
|
446
446
|
}
|
|
@@ -451,7 +451,7 @@ var require_binding = __commonJS({ "src/binding.js"(exports, module) {
|
|
|
451
451
|
}
|
|
452
452
|
} else {
|
|
453
453
|
try {
|
|
454
|
-
return __require("
|
|
454
|
+
return __require("../rolldown-binding.linux-x64-gnu.node");
|
|
455
455
|
} catch (e) {
|
|
456
456
|
loadErrors.push(e);
|
|
457
457
|
}
|
|
@@ -463,7 +463,7 @@ var require_binding = __commonJS({ "src/binding.js"(exports, module) {
|
|
|
463
463
|
}
|
|
464
464
|
else if (process.arch === "arm64") if (isMusl()) {
|
|
465
465
|
try {
|
|
466
|
-
return __require("
|
|
466
|
+
return __require("../rolldown-binding.linux-arm64-musl.node");
|
|
467
467
|
} catch (e) {
|
|
468
468
|
loadErrors.push(e);
|
|
469
469
|
}
|
|
@@ -474,7 +474,7 @@ var require_binding = __commonJS({ "src/binding.js"(exports, module) {
|
|
|
474
474
|
}
|
|
475
475
|
} else {
|
|
476
476
|
try {
|
|
477
|
-
return __require("
|
|
477
|
+
return __require("../rolldown-binding.linux-arm64-gnu.node");
|
|
478
478
|
} catch (e) {
|
|
479
479
|
loadErrors.push(e);
|
|
480
480
|
}
|
|
@@ -486,7 +486,7 @@ var require_binding = __commonJS({ "src/binding.js"(exports, module) {
|
|
|
486
486
|
}
|
|
487
487
|
else if (process.arch === "arm") if (isMusl()) {
|
|
488
488
|
try {
|
|
489
|
-
return __require("
|
|
489
|
+
return __require("../rolldown-binding.linux-arm-musleabihf.node");
|
|
490
490
|
} catch (e) {
|
|
491
491
|
loadErrors.push(e);
|
|
492
492
|
}
|
|
@@ -497,7 +497,7 @@ var require_binding = __commonJS({ "src/binding.js"(exports, module) {
|
|
|
497
497
|
}
|
|
498
498
|
} else {
|
|
499
499
|
try {
|
|
500
|
-
return __require("
|
|
500
|
+
return __require("../rolldown-binding.linux-arm-gnueabihf.node");
|
|
501
501
|
} catch (e) {
|
|
502
502
|
loadErrors.push(e);
|
|
503
503
|
}
|
|
@@ -509,7 +509,7 @@ var require_binding = __commonJS({ "src/binding.js"(exports, module) {
|
|
|
509
509
|
}
|
|
510
510
|
else if (process.arch === "riscv64") if (isMusl()) {
|
|
511
511
|
try {
|
|
512
|
-
return __require("
|
|
512
|
+
return __require("../rolldown-binding.linux-riscv64-musl.node");
|
|
513
513
|
} catch (e) {
|
|
514
514
|
loadErrors.push(e);
|
|
515
515
|
}
|
|
@@ -520,7 +520,7 @@ var require_binding = __commonJS({ "src/binding.js"(exports, module) {
|
|
|
520
520
|
}
|
|
521
521
|
} else {
|
|
522
522
|
try {
|
|
523
|
-
return __require("
|
|
523
|
+
return __require("../rolldown-binding.linux-riscv64-gnu.node");
|
|
524
524
|
} catch (e) {
|
|
525
525
|
loadErrors.push(e);
|
|
526
526
|
}
|
|
@@ -532,7 +532,7 @@ var require_binding = __commonJS({ "src/binding.js"(exports, module) {
|
|
|
532
532
|
}
|
|
533
533
|
else if (process.arch === "ppc64") {
|
|
534
534
|
try {
|
|
535
|
-
return __require("
|
|
535
|
+
return __require("../rolldown-binding.linux-ppc64-gnu.node");
|
|
536
536
|
} catch (e) {
|
|
537
537
|
loadErrors.push(e);
|
|
538
538
|
}
|
|
@@ -543,7 +543,7 @@ var require_binding = __commonJS({ "src/binding.js"(exports, module) {
|
|
|
543
543
|
}
|
|
544
544
|
} else if (process.arch === "s390x") {
|
|
545
545
|
try {
|
|
546
|
-
return __require("
|
|
546
|
+
return __require("../rolldown-binding.linux-s390x-gnu.node");
|
|
547
547
|
} catch (e) {
|
|
548
548
|
loadErrors.push(e);
|
|
549
549
|
}
|
|
@@ -558,7 +558,7 @@ var require_binding = __commonJS({ "src/binding.js"(exports, module) {
|
|
|
558
558
|
nativeBinding = requireNative();
|
|
559
559
|
if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) {
|
|
560
560
|
try {
|
|
561
|
-
nativeBinding = __require("
|
|
561
|
+
nativeBinding = __require("../rolldown-binding.wasi.cjs");
|
|
562
562
|
} catch (err) {
|
|
563
563
|
if (process.env.NAPI_RS_FORCE_WASI) loadErrors.push(err);
|
|
564
564
|
}
|
|
@@ -300,7 +300,7 @@ var require_binding = require_chunk.__commonJS({ "src/binding.js"(exports, modul
|
|
|
300
300
|
}
|
|
301
301
|
else if (process.platform === "android") if (process.arch === "arm64") {
|
|
302
302
|
try {
|
|
303
|
-
return require("
|
|
303
|
+
return require("../rolldown-binding.android-arm64.node");
|
|
304
304
|
} catch (e) {
|
|
305
305
|
loadErrors.push(e);
|
|
306
306
|
}
|
|
@@ -311,7 +311,7 @@ var require_binding = require_chunk.__commonJS({ "src/binding.js"(exports, modul
|
|
|
311
311
|
}
|
|
312
312
|
} else if (process.arch === "arm") {
|
|
313
313
|
try {
|
|
314
|
-
return require("
|
|
314
|
+
return require("../rolldown-binding.android-arm-eabi.node");
|
|
315
315
|
} catch (e) {
|
|
316
316
|
loadErrors.push(e);
|
|
317
317
|
}
|
|
@@ -323,7 +323,7 @@ var require_binding = require_chunk.__commonJS({ "src/binding.js"(exports, modul
|
|
|
323
323
|
} else loadErrors.push(new Error(`Unsupported architecture on Android ${process.arch}`));
|
|
324
324
|
else if (process.platform === "win32") if (process.arch === "x64") {
|
|
325
325
|
try {
|
|
326
|
-
return require("
|
|
326
|
+
return require("../rolldown-binding.win32-x64-msvc.node");
|
|
327
327
|
} catch (e) {
|
|
328
328
|
loadErrors.push(e);
|
|
329
329
|
}
|
|
@@ -334,7 +334,7 @@ var require_binding = require_chunk.__commonJS({ "src/binding.js"(exports, modul
|
|
|
334
334
|
}
|
|
335
335
|
} else if (process.arch === "ia32") {
|
|
336
336
|
try {
|
|
337
|
-
return require("
|
|
337
|
+
return require("../rolldown-binding.win32-ia32-msvc.node");
|
|
338
338
|
} catch (e) {
|
|
339
339
|
loadErrors.push(e);
|
|
340
340
|
}
|
|
@@ -345,7 +345,7 @@ var require_binding = require_chunk.__commonJS({ "src/binding.js"(exports, modul
|
|
|
345
345
|
}
|
|
346
346
|
} else if (process.arch === "arm64") {
|
|
347
347
|
try {
|
|
348
|
-
return require("
|
|
348
|
+
return require("../rolldown-binding.win32-arm64-msvc.node");
|
|
349
349
|
} catch (e) {
|
|
350
350
|
loadErrors.push(e);
|
|
351
351
|
}
|
|
@@ -357,7 +357,7 @@ var require_binding = require_chunk.__commonJS({ "src/binding.js"(exports, modul
|
|
|
357
357
|
} else loadErrors.push(new Error(`Unsupported architecture on Windows: ${process.arch}`));
|
|
358
358
|
else if (process.platform === "darwin") {
|
|
359
359
|
try {
|
|
360
|
-
return require("
|
|
360
|
+
return require("../rolldown-binding.darwin-universal.node");
|
|
361
361
|
} catch (e) {
|
|
362
362
|
loadErrors.push(e);
|
|
363
363
|
}
|
|
@@ -368,7 +368,7 @@ var require_binding = require_chunk.__commonJS({ "src/binding.js"(exports, modul
|
|
|
368
368
|
}
|
|
369
369
|
if (process.arch === "x64") {
|
|
370
370
|
try {
|
|
371
|
-
return require("
|
|
371
|
+
return require("../rolldown-binding.darwin-x64.node");
|
|
372
372
|
} catch (e) {
|
|
373
373
|
loadErrors.push(e);
|
|
374
374
|
}
|
|
@@ -379,7 +379,7 @@ var require_binding = require_chunk.__commonJS({ "src/binding.js"(exports, modul
|
|
|
379
379
|
}
|
|
380
380
|
} else if (process.arch === "arm64") {
|
|
381
381
|
try {
|
|
382
|
-
return require("
|
|
382
|
+
return require("../rolldown-binding.darwin-arm64.node");
|
|
383
383
|
} catch (e) {
|
|
384
384
|
loadErrors.push(e);
|
|
385
385
|
}
|
|
@@ -391,7 +391,7 @@ var require_binding = require_chunk.__commonJS({ "src/binding.js"(exports, modul
|
|
|
391
391
|
} else loadErrors.push(new Error(`Unsupported architecture on macOS: ${process.arch}`));
|
|
392
392
|
} else if (process.platform === "freebsd") if (process.arch === "x64") {
|
|
393
393
|
try {
|
|
394
|
-
return require("
|
|
394
|
+
return require("../rolldown-binding.freebsd-x64.node");
|
|
395
395
|
} catch (e) {
|
|
396
396
|
loadErrors.push(e);
|
|
397
397
|
}
|
|
@@ -402,7 +402,7 @@ var require_binding = require_chunk.__commonJS({ "src/binding.js"(exports, modul
|
|
|
402
402
|
}
|
|
403
403
|
} else if (process.arch === "arm64") {
|
|
404
404
|
try {
|
|
405
|
-
return require("
|
|
405
|
+
return require("../rolldown-binding.freebsd-arm64.node");
|
|
406
406
|
} catch (e) {
|
|
407
407
|
loadErrors.push(e);
|
|
408
408
|
}
|
|
@@ -414,7 +414,7 @@ var require_binding = require_chunk.__commonJS({ "src/binding.js"(exports, modul
|
|
|
414
414
|
} else loadErrors.push(new Error(`Unsupported architecture on FreeBSD: ${process.arch}`));
|
|
415
415
|
else if (process.platform === "linux") if (process.arch === "x64") if (isMusl()) {
|
|
416
416
|
try {
|
|
417
|
-
return require("
|
|
417
|
+
return require("../rolldown-binding.linux-x64-musl.node");
|
|
418
418
|
} catch (e) {
|
|
419
419
|
loadErrors.push(e);
|
|
420
420
|
}
|
|
@@ -425,7 +425,7 @@ var require_binding = require_chunk.__commonJS({ "src/binding.js"(exports, modul
|
|
|
425
425
|
}
|
|
426
426
|
} else {
|
|
427
427
|
try {
|
|
428
|
-
return require("
|
|
428
|
+
return require("../rolldown-binding.linux-x64-gnu.node");
|
|
429
429
|
} catch (e) {
|
|
430
430
|
loadErrors.push(e);
|
|
431
431
|
}
|
|
@@ -437,7 +437,7 @@ var require_binding = require_chunk.__commonJS({ "src/binding.js"(exports, modul
|
|
|
437
437
|
}
|
|
438
438
|
else if (process.arch === "arm64") if (isMusl()) {
|
|
439
439
|
try {
|
|
440
|
-
return require("
|
|
440
|
+
return require("../rolldown-binding.linux-arm64-musl.node");
|
|
441
441
|
} catch (e) {
|
|
442
442
|
loadErrors.push(e);
|
|
443
443
|
}
|
|
@@ -448,7 +448,7 @@ var require_binding = require_chunk.__commonJS({ "src/binding.js"(exports, modul
|
|
|
448
448
|
}
|
|
449
449
|
} else {
|
|
450
450
|
try {
|
|
451
|
-
return require("
|
|
451
|
+
return require("../rolldown-binding.linux-arm64-gnu.node");
|
|
452
452
|
} catch (e) {
|
|
453
453
|
loadErrors.push(e);
|
|
454
454
|
}
|
|
@@ -460,7 +460,7 @@ var require_binding = require_chunk.__commonJS({ "src/binding.js"(exports, modul
|
|
|
460
460
|
}
|
|
461
461
|
else if (process.arch === "arm") if (isMusl()) {
|
|
462
462
|
try {
|
|
463
|
-
return require("
|
|
463
|
+
return require("../rolldown-binding.linux-arm-musleabihf.node");
|
|
464
464
|
} catch (e) {
|
|
465
465
|
loadErrors.push(e);
|
|
466
466
|
}
|
|
@@ -471,7 +471,7 @@ var require_binding = require_chunk.__commonJS({ "src/binding.js"(exports, modul
|
|
|
471
471
|
}
|
|
472
472
|
} else {
|
|
473
473
|
try {
|
|
474
|
-
return require("
|
|
474
|
+
return require("../rolldown-binding.linux-arm-gnueabihf.node");
|
|
475
475
|
} catch (e) {
|
|
476
476
|
loadErrors.push(e);
|
|
477
477
|
}
|
|
@@ -483,7 +483,7 @@ var require_binding = require_chunk.__commonJS({ "src/binding.js"(exports, modul
|
|
|
483
483
|
}
|
|
484
484
|
else if (process.arch === "riscv64") if (isMusl()) {
|
|
485
485
|
try {
|
|
486
|
-
return require("
|
|
486
|
+
return require("../rolldown-binding.linux-riscv64-musl.node");
|
|
487
487
|
} catch (e) {
|
|
488
488
|
loadErrors.push(e);
|
|
489
489
|
}
|
|
@@ -494,7 +494,7 @@ var require_binding = require_chunk.__commonJS({ "src/binding.js"(exports, modul
|
|
|
494
494
|
}
|
|
495
495
|
} else {
|
|
496
496
|
try {
|
|
497
|
-
return require("
|
|
497
|
+
return require("../rolldown-binding.linux-riscv64-gnu.node");
|
|
498
498
|
} catch (e) {
|
|
499
499
|
loadErrors.push(e);
|
|
500
500
|
}
|
|
@@ -506,7 +506,7 @@ var require_binding = require_chunk.__commonJS({ "src/binding.js"(exports, modul
|
|
|
506
506
|
}
|
|
507
507
|
else if (process.arch === "ppc64") {
|
|
508
508
|
try {
|
|
509
|
-
return require("
|
|
509
|
+
return require("../rolldown-binding.linux-ppc64-gnu.node");
|
|
510
510
|
} catch (e) {
|
|
511
511
|
loadErrors.push(e);
|
|
512
512
|
}
|
|
@@ -517,7 +517,7 @@ var require_binding = require_chunk.__commonJS({ "src/binding.js"(exports, modul
|
|
|
517
517
|
}
|
|
518
518
|
} else if (process.arch === "s390x") {
|
|
519
519
|
try {
|
|
520
|
-
return require("
|
|
520
|
+
return require("../rolldown-binding.linux-s390x-gnu.node");
|
|
521
521
|
} catch (e) {
|
|
522
522
|
loadErrors.push(e);
|
|
523
523
|
}
|
|
@@ -532,7 +532,7 @@ var require_binding = require_chunk.__commonJS({ "src/binding.js"(exports, modul
|
|
|
532
532
|
nativeBinding = requireNative();
|
|
533
533
|
if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) {
|
|
534
534
|
try {
|
|
535
|
-
nativeBinding = require("
|
|
535
|
+
nativeBinding = require("../rolldown-binding.wasi.cjs");
|
|
536
536
|
} catch (err) {
|
|
537
537
|
if (process.env.NAPI_RS_FORCE_WASI) loadErrors.push(err);
|
|
538
538
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { augmentCodeLocation, colors, error, import_binding, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMinifyWarning, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-
|
|
1
|
+
import { augmentCodeLocation, colors, error, import_binding, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMinifyWarning, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-CyX8MVZE.mjs";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import * as v from "valibot";
|
|
4
4
|
import { toJsonSchema } from "@valibot/to-json-schema";
|
|
@@ -503,16 +503,17 @@ const WatchOptionsSchema = v.strictObject({
|
|
|
503
503
|
buildDelay: v.pipe(v.optional(v.number()), v.description("Throttle watch rebuilds"))
|
|
504
504
|
});
|
|
505
505
|
const ChecksOptionsSchema = v.strictObject({
|
|
506
|
-
circularDependency: v.pipe(v.optional(v.boolean())),
|
|
507
|
-
eval: v.pipe(v.optional(v.boolean())),
|
|
508
|
-
missingGlobalName: v.pipe(v.optional(v.boolean())),
|
|
509
|
-
missingNameOptionForIifeExport: v.pipe(v.optional(v.boolean())),
|
|
510
|
-
mixedExport: v.pipe(v.optional(v.boolean())),
|
|
511
|
-
unresolvedEntry: v.pipe(v.optional(v.boolean())),
|
|
512
|
-
unresolvedImport: v.pipe(v.optional(v.boolean())),
|
|
513
|
-
filenameConflict: v.pipe(v.optional(v.boolean())),
|
|
514
|
-
commonJsVariableInEsm: v.pipe(v.optional(v.boolean())),
|
|
515
|
-
importIsUndefined: v.pipe(v.optional(v.boolean()))
|
|
506
|
+
circularDependency: v.pipe(v.optional(v.boolean()), v.description("Whether to emit warning when detecting circular dependency")),
|
|
507
|
+
eval: v.pipe(v.optional(v.boolean()), v.description("Whether to emit warning when detecting eval")),
|
|
508
|
+
missingGlobalName: v.pipe(v.optional(v.boolean()), v.description("Whether to emit warning when detecting missing global name")),
|
|
509
|
+
missingNameOptionForIifeExport: v.pipe(v.optional(v.boolean()), v.description("Whether to emit warning when detecting missing name option for iife export")),
|
|
510
|
+
mixedExport: v.pipe(v.optional(v.boolean()), v.description("Whether to emit warning when detecting mixed export")),
|
|
511
|
+
unresolvedEntry: v.pipe(v.optional(v.boolean()), v.description("Whether to emit warning when detecting unresolved entry")),
|
|
512
|
+
unresolvedImport: v.pipe(v.optional(v.boolean()), v.description("Whether to emit warning when detecting unresolved import")),
|
|
513
|
+
filenameConflict: v.pipe(v.optional(v.boolean()), v.description("Whether to emit warning when detecting filename conflict")),
|
|
514
|
+
commonJsVariableInEsm: v.pipe(v.optional(v.boolean()), v.description("Whether to emit warning when detecting common js variable in esm")),
|
|
515
|
+
importIsUndefined: v.pipe(v.optional(v.boolean()), v.description("Whether to emit warning when detecting import is undefined")),
|
|
516
|
+
configurationFieldConflict: v.pipe(v.optional(v.boolean()), v.description("Whether to emit warning when detecting configuration field conflict"))
|
|
516
517
|
});
|
|
517
518
|
const MinifyOptionsSchema = v.strictObject({
|
|
518
519
|
mangle: v.boolean(),
|
|
@@ -833,6 +834,7 @@ function normalizeErrors(rawErrors) {
|
|
|
833
834
|
return wrapper;
|
|
834
835
|
}
|
|
835
836
|
function getErrorMessage(e) {
|
|
837
|
+
if (Object.hasOwn(e, "kind")) return e.message;
|
|
836
838
|
let s = "";
|
|
837
839
|
if (e.plugin) s += `[plugin ${e.plugin}]`;
|
|
838
840
|
const id = e.id ?? e.loc?.file;
|
|
@@ -2846,7 +2848,7 @@ const watch = (input) => {
|
|
|
2846
2848
|
|
|
2847
2849
|
//#endregion
|
|
2848
2850
|
//#region package.json
|
|
2849
|
-
var version = "1.0.0-beta.4-commit.
|
|
2851
|
+
var version = "1.0.0-beta.4-commit.308f68b";
|
|
2850
2852
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
2851
2853
|
|
|
2852
2854
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('./chunk-qZFfknuJ.cjs');
|
|
3
|
-
const require_parse_ast_index = require('./parse-ast-index-
|
|
3
|
+
const require_parse_ast_index = require('./parse-ast-index-D7XtMFo4.cjs');
|
|
4
4
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
5
5
|
const valibot = require_chunk.__toESM(require("valibot"));
|
|
6
6
|
const __valibot_to_json_schema = require_chunk.__toESM(require("@valibot/to-json-schema"));
|
|
@@ -505,16 +505,17 @@ const WatchOptionsSchema = valibot.strictObject({
|
|
|
505
505
|
buildDelay: valibot.pipe(valibot.optional(valibot.number()), valibot.description("Throttle watch rebuilds"))
|
|
506
506
|
});
|
|
507
507
|
const ChecksOptionsSchema = valibot.strictObject({
|
|
508
|
-
circularDependency: valibot.pipe(valibot.optional(valibot.boolean())),
|
|
509
|
-
eval: valibot.pipe(valibot.optional(valibot.boolean())),
|
|
510
|
-
missingGlobalName: valibot.pipe(valibot.optional(valibot.boolean())),
|
|
511
|
-
missingNameOptionForIifeExport: valibot.pipe(valibot.optional(valibot.boolean())),
|
|
512
|
-
mixedExport: valibot.pipe(valibot.optional(valibot.boolean())),
|
|
513
|
-
unresolvedEntry: valibot.pipe(valibot.optional(valibot.boolean())),
|
|
514
|
-
unresolvedImport: valibot.pipe(valibot.optional(valibot.boolean())),
|
|
515
|
-
filenameConflict: valibot.pipe(valibot.optional(valibot.boolean())),
|
|
516
|
-
commonJsVariableInEsm: valibot.pipe(valibot.optional(valibot.boolean())),
|
|
517
|
-
importIsUndefined: valibot.pipe(valibot.optional(valibot.boolean()))
|
|
508
|
+
circularDependency: valibot.pipe(valibot.optional(valibot.boolean()), valibot.description("Whether to emit warning when detecting circular dependency")),
|
|
509
|
+
eval: valibot.pipe(valibot.optional(valibot.boolean()), valibot.description("Whether to emit warning when detecting eval")),
|
|
510
|
+
missingGlobalName: valibot.pipe(valibot.optional(valibot.boolean()), valibot.description("Whether to emit warning when detecting missing global name")),
|
|
511
|
+
missingNameOptionForIifeExport: valibot.pipe(valibot.optional(valibot.boolean()), valibot.description("Whether to emit warning when detecting missing name option for iife export")),
|
|
512
|
+
mixedExport: valibot.pipe(valibot.optional(valibot.boolean()), valibot.description("Whether to emit warning when detecting mixed export")),
|
|
513
|
+
unresolvedEntry: valibot.pipe(valibot.optional(valibot.boolean()), valibot.description("Whether to emit warning when detecting unresolved entry")),
|
|
514
|
+
unresolvedImport: valibot.pipe(valibot.optional(valibot.boolean()), valibot.description("Whether to emit warning when detecting unresolved import")),
|
|
515
|
+
filenameConflict: valibot.pipe(valibot.optional(valibot.boolean()), valibot.description("Whether to emit warning when detecting filename conflict")),
|
|
516
|
+
commonJsVariableInEsm: valibot.pipe(valibot.optional(valibot.boolean()), valibot.description("Whether to emit warning when detecting common js variable in esm")),
|
|
517
|
+
importIsUndefined: valibot.pipe(valibot.optional(valibot.boolean()), valibot.description("Whether to emit warning when detecting import is undefined")),
|
|
518
|
+
configurationFieldConflict: valibot.pipe(valibot.optional(valibot.boolean()), valibot.description("Whether to emit warning when detecting configuration field conflict"))
|
|
518
519
|
});
|
|
519
520
|
const MinifyOptionsSchema = valibot.strictObject({
|
|
520
521
|
mangle: valibot.boolean(),
|
|
@@ -835,6 +836,7 @@ function normalizeErrors(rawErrors) {
|
|
|
835
836
|
return wrapper;
|
|
836
837
|
}
|
|
837
838
|
function getErrorMessage(e) {
|
|
839
|
+
if (Object.hasOwn(e, "kind")) return e.message;
|
|
838
840
|
let s = "";
|
|
839
841
|
if (e.plugin) s += `[plugin ${e.plugin}]`;
|
|
840
842
|
const id = e.id ?? e.loc?.file;
|
|
@@ -2848,7 +2850,7 @@ const watch = (input) => {
|
|
|
2848
2850
|
|
|
2849
2851
|
//#endregion
|
|
2850
2852
|
//#region package.json
|
|
2851
|
-
var version = "1.0.0-beta.4-commit.
|
|
2853
|
+
var version = "1.0.0-beta.4-commit.308f68b";
|
|
2852
2854
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
2853
2855
|
|
|
2854
2856
|
//#endregion
|
package/dist/types/binding.d.ts
CHANGED
|
@@ -1,12 +1,57 @@
|
|
|
1
1
|
export interface ChecksOptions {
|
|
2
|
+
/**
|
|
3
|
+
* Whether to emit warning when detecting circular dependency
|
|
4
|
+
* @default false
|
|
5
|
+
* */
|
|
2
6
|
circularDependency?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Whether to emit warning when detecting eval
|
|
9
|
+
* @default true
|
|
10
|
+
* */
|
|
3
11
|
eval?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Whether to emit warning when detecting missing global name
|
|
14
|
+
* @default true
|
|
15
|
+
* */
|
|
4
16
|
missingGlobalName?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Whether to emit warning when detecting missing name option for iife export
|
|
19
|
+
* @default true
|
|
20
|
+
* */
|
|
5
21
|
missingNameOptionForIifeExport?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Whether to emit warning when detecting mixed export
|
|
24
|
+
* @default true
|
|
25
|
+
* */
|
|
6
26
|
mixedExport?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Whether to emit warning when detecting unresolved entry
|
|
29
|
+
* @default true
|
|
30
|
+
* */
|
|
7
31
|
unresolvedEntry?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Whether to emit warning when detecting unresolved import
|
|
34
|
+
* @default true
|
|
35
|
+
* */
|
|
8
36
|
unresolvedImport?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Whether to emit warning when detecting filename conflict
|
|
39
|
+
* @default true
|
|
40
|
+
* */
|
|
9
41
|
filenameConflict?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Whether to emit warning when detecting common js variable in esm
|
|
44
|
+
* @default true
|
|
45
|
+
* */
|
|
10
46
|
commonJsVariableInEsm?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Whether to emit warning when detecting import is undefined
|
|
49
|
+
* @default true
|
|
50
|
+
* */
|
|
11
51
|
importIsUndefined?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Whether to emit warning when detecting configuration field conflict
|
|
54
|
+
* @default true
|
|
55
|
+
* */
|
|
56
|
+
configurationFieldConflict?: boolean;
|
|
12
57
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown",
|
|
3
|
-
"version": "1.0.0-beta.4-commit.
|
|
3
|
+
"version": "1.0.0-beta.4-commit.308f68b",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"homepage": "https://rolldown.rs/",
|
|
6
6
|
"repository": {
|
|
@@ -122,21 +122,21 @@
|
|
|
122
122
|
"unbuild": "^3.0.0",
|
|
123
123
|
"why-is-node-running": "^3.0.0",
|
|
124
124
|
"@rolldown/testing": "0.0.1",
|
|
125
|
-
"rolldown": "1.0.0-beta.4-commit.
|
|
125
|
+
"rolldown": "1.0.0-beta.4-commit.308f68b"
|
|
126
126
|
},
|
|
127
127
|
"optionalDependencies": {
|
|
128
|
-
"@rolldown/binding-darwin-arm64": "1.0.0-beta.4-commit.
|
|
129
|
-
"@rolldown/binding-
|
|
130
|
-
"@rolldown/binding-
|
|
131
|
-
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.4-commit.
|
|
132
|
-
"@rolldown/binding-linux-arm64-
|
|
133
|
-
"@rolldown/binding-linux-arm64-
|
|
134
|
-
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.4-commit.
|
|
135
|
-
"@rolldown/binding-
|
|
136
|
-
"@rolldown/binding-
|
|
137
|
-
"@rolldown/binding-
|
|
138
|
-
"@rolldown/binding-win32-
|
|
139
|
-
"@rolldown/binding-win32-
|
|
128
|
+
"@rolldown/binding-darwin-arm64": "1.0.0-beta.4-commit.308f68b",
|
|
129
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.4-commit.308f68b",
|
|
130
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.4-commit.308f68b",
|
|
131
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.4-commit.308f68b",
|
|
132
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.4-commit.308f68b",
|
|
133
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.4-commit.308f68b",
|
|
134
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.4-commit.308f68b",
|
|
135
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.4-commit.308f68b",
|
|
136
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.4-commit.308f68b",
|
|
137
|
+
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.4-commit.308f68b",
|
|
138
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.4-commit.308f68b",
|
|
139
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.4-commit.308f68b"
|
|
140
140
|
},
|
|
141
141
|
"scripts": {
|
|
142
142
|
"# Scrips for binding #": "_",
|