rolldown 1.0.0-beta.36 → 1.0.0-beta.37
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.mjs +88 -1050
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +3 -3
- package/dist/experimental-index.d.mts +38 -3
- package/dist/experimental-index.mjs +28 -7
- package/dist/filter-index.d.mts +2 -2
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +2 -2
- package/dist/parallel-plugin-worker.mjs +2 -2
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/shared/{define-config-wxvILtDx.d.mts → define-config-CV3aiNwN.d.mts} +7 -7
- package/dist/shared/{load-config-Jqw6FAJp.mjs → load-config-BOVuTpJm.mjs} +1 -1
- package/dist/shared/logger-CiCY7ucm.mjs +988 -0
- package/dist/shared/{parse-ast-index-CkDFQ-07.mjs → parse-ast-index-B5HcAOhq.mjs} +31 -31
- package/dist/shared/{src-WjgJWoNk.mjs → src-BtNlw_84.mjs} +22 -30
- package/package.json +17 -17
- /package/dist/shared/{binding-wK0CRIMb.d.mts → binding-Cjs27cfu.d.mts} +0 -0
- /package/dist/shared/{prompt-DuG2i9ud.mjs → prompt-D2FxOcB5.mjs} +0 -0
|
@@ -13,11 +13,13 @@ var __esm = (fn, res) => function() {
|
|
|
13
13
|
var __commonJS = (cb, mod) => function() {
|
|
14
14
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
15
15
|
};
|
|
16
|
-
var __export = (
|
|
16
|
+
var __export = (all) => {
|
|
17
|
+
let target = {};
|
|
17
18
|
for (var name in all) __defProp(target, name, {
|
|
18
19
|
get: all[name],
|
|
19
20
|
enumerable: true
|
|
20
21
|
});
|
|
22
|
+
return target;
|
|
21
23
|
};
|
|
22
24
|
var __copyProps = (to, from, except, desc) => {
|
|
23
25
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
@@ -795,8 +797,7 @@ var init_tslib_es6 = __esm({ "../../node_modules/.pnpm/tslib@2.8.1/node_modules/
|
|
|
795
797
|
|
|
796
798
|
//#endregion
|
|
797
799
|
//#region ../../node_modules/.pnpm/@emnapi+core@1.4.5/node_modules/@emnapi/core/dist/emnapi-core.esm-bundler.js
|
|
798
|
-
var emnapi_core_esm_bundler_exports = {
|
|
799
|
-
__export(emnapi_core_esm_bundler_exports, {
|
|
800
|
+
var emnapi_core_esm_bundler_exports = __export({
|
|
800
801
|
MessageHandler: () => MessageHandler$1,
|
|
801
802
|
ThreadManager: () => ThreadManager,
|
|
802
803
|
ThreadMessageHandler: () => ThreadMessageHandler,
|
|
@@ -6310,8 +6311,7 @@ var init_emnapi_core_esm_bundler = __esm({ "../../node_modules/.pnpm/@emnapi+cor
|
|
|
6310
6311
|
|
|
6311
6312
|
//#endregion
|
|
6312
6313
|
//#region ../../node_modules/.pnpm/@emnapi+runtime@1.4.5/node_modules/@emnapi/runtime/dist/emnapi.esm-bundler.js
|
|
6313
|
-
var emnapi_esm_bundler_exports = {
|
|
6314
|
-
__export(emnapi_esm_bundler_exports, {
|
|
6314
|
+
var emnapi_esm_bundler_exports = __export({
|
|
6315
6315
|
ConstHandle: () => ConstHandle,
|
|
6316
6316
|
Context: () => Context,
|
|
6317
6317
|
Deferred: () => Deferred,
|
|
@@ -7574,8 +7574,7 @@ var init_emnapi_esm_bundler = __esm({ "../../node_modules/.pnpm/@emnapi+runtime@
|
|
|
7574
7574
|
|
|
7575
7575
|
//#endregion
|
|
7576
7576
|
//#region ../../node_modules/.pnpm/@tybys+wasm-util@0.10.0/node_modules/@tybys/wasm-util/dist/wasm-util.esm-bundler.js
|
|
7577
|
-
var wasm_util_esm_bundler_exports = {
|
|
7578
|
-
__export(wasm_util_esm_bundler_exports, {
|
|
7577
|
+
var wasm_util_esm_bundler_exports = __export({
|
|
7579
7578
|
Asyncify: () => Asyncify,
|
|
7580
7579
|
Memory: () => Memory,
|
|
7581
7580
|
WASI: () => WASI$2,
|
|
@@ -10132,6 +10131,7 @@ var require_rolldown_binding_wasi = /* @__PURE__ */ __commonJS({ "src/rolldown-b
|
|
|
10132
10131
|
module.exports.BindingWatcherChangeData = __napiModule.exports.BindingWatcherChangeData;
|
|
10133
10132
|
module.exports.BindingWatcherEvent = __napiModule.exports.BindingWatcherEvent;
|
|
10134
10133
|
module.exports.ParallelJsPluginRegistry = __napiModule.exports.ParallelJsPluginRegistry;
|
|
10134
|
+
module.exports.ScheduledBuild = __napiModule.exports.ScheduledBuild;
|
|
10135
10135
|
module.exports.TraceSubscriberGuard = __napiModule.exports.TraceSubscriberGuard;
|
|
10136
10136
|
module.exports.BindingAttachDebugInfo = __napiModule.exports.BindingAttachDebugInfo;
|
|
10137
10137
|
module.exports.BindingBuiltinPluginName = __napiModule.exports.BindingBuiltinPluginName;
|
|
@@ -10231,7 +10231,7 @@ function requireNative() {
|
|
|
10231
10231
|
try {
|
|
10232
10232
|
const binding = __require("@rolldown/binding-android-arm64");
|
|
10233
10233
|
const bindingPackageVersion = __require("@rolldown/binding-android-arm64/package.json").version;
|
|
10234
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
10234
|
+
if (bindingPackageVersion !== "1.0.0-beta.37" && 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.37 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
10235
10235
|
return binding;
|
|
10236
10236
|
} catch (e) {
|
|
10237
10237
|
loadErrors.push(e);
|
|
@@ -10245,7 +10245,7 @@ function requireNative() {
|
|
|
10245
10245
|
try {
|
|
10246
10246
|
const binding = __require("@rolldown/binding-android-arm-eabi");
|
|
10247
10247
|
const bindingPackageVersion = __require("@rolldown/binding-android-arm-eabi/package.json").version;
|
|
10248
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
10248
|
+
if (bindingPackageVersion !== "1.0.0-beta.37" && 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.37 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
10249
10249
|
return binding;
|
|
10250
10250
|
} catch (e) {
|
|
10251
10251
|
loadErrors.push(e);
|
|
@@ -10260,7 +10260,7 @@ function requireNative() {
|
|
|
10260
10260
|
try {
|
|
10261
10261
|
const binding = __require("@rolldown/binding-win32-x64-msvc");
|
|
10262
10262
|
const bindingPackageVersion = __require("@rolldown/binding-win32-x64-msvc/package.json").version;
|
|
10263
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
10263
|
+
if (bindingPackageVersion !== "1.0.0-beta.37" && 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.37 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
10264
10264
|
return binding;
|
|
10265
10265
|
} catch (e) {
|
|
10266
10266
|
loadErrors.push(e);
|
|
@@ -10274,7 +10274,7 @@ function requireNative() {
|
|
|
10274
10274
|
try {
|
|
10275
10275
|
const binding = __require("@rolldown/binding-win32-ia32-msvc");
|
|
10276
10276
|
const bindingPackageVersion = __require("@rolldown/binding-win32-ia32-msvc/package.json").version;
|
|
10277
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
10277
|
+
if (bindingPackageVersion !== "1.0.0-beta.37" && 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.37 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
10278
10278
|
return binding;
|
|
10279
10279
|
} catch (e) {
|
|
10280
10280
|
loadErrors.push(e);
|
|
@@ -10288,7 +10288,7 @@ function requireNative() {
|
|
|
10288
10288
|
try {
|
|
10289
10289
|
const binding = __require("@rolldown/binding-win32-arm64-msvc");
|
|
10290
10290
|
const bindingPackageVersion = __require("@rolldown/binding-win32-arm64-msvc/package.json").version;
|
|
10291
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
10291
|
+
if (bindingPackageVersion !== "1.0.0-beta.37" && 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.37 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
10292
10292
|
return binding;
|
|
10293
10293
|
} catch (e) {
|
|
10294
10294
|
loadErrors.push(e);
|
|
@@ -10303,7 +10303,7 @@ function requireNative() {
|
|
|
10303
10303
|
try {
|
|
10304
10304
|
const binding = __require("@rolldown/binding-darwin-universal");
|
|
10305
10305
|
const bindingPackageVersion = __require("@rolldown/binding-darwin-universal/package.json").version;
|
|
10306
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
10306
|
+
if (bindingPackageVersion !== "1.0.0-beta.37" && 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.37 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
10307
10307
|
return binding;
|
|
10308
10308
|
} catch (e) {
|
|
10309
10309
|
loadErrors.push(e);
|
|
@@ -10317,7 +10317,7 @@ function requireNative() {
|
|
|
10317
10317
|
try {
|
|
10318
10318
|
const binding = __require("@rolldown/binding-darwin-x64");
|
|
10319
10319
|
const bindingPackageVersion = __require("@rolldown/binding-darwin-x64/package.json").version;
|
|
10320
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
10320
|
+
if (bindingPackageVersion !== "1.0.0-beta.37" && 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.37 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
10321
10321
|
return binding;
|
|
10322
10322
|
} catch (e) {
|
|
10323
10323
|
loadErrors.push(e);
|
|
@@ -10331,7 +10331,7 @@ function requireNative() {
|
|
|
10331
10331
|
try {
|
|
10332
10332
|
const binding = __require("@rolldown/binding-darwin-arm64");
|
|
10333
10333
|
const bindingPackageVersion = __require("@rolldown/binding-darwin-arm64/package.json").version;
|
|
10334
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
10334
|
+
if (bindingPackageVersion !== "1.0.0-beta.37" && 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.37 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
10335
10335
|
return binding;
|
|
10336
10336
|
} catch (e) {
|
|
10337
10337
|
loadErrors.push(e);
|
|
@@ -10346,7 +10346,7 @@ function requireNative() {
|
|
|
10346
10346
|
try {
|
|
10347
10347
|
const binding = __require("@rolldown/binding-freebsd-x64");
|
|
10348
10348
|
const bindingPackageVersion = __require("@rolldown/binding-freebsd-x64/package.json").version;
|
|
10349
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
10349
|
+
if (bindingPackageVersion !== "1.0.0-beta.37" && 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.37 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
10350
10350
|
return binding;
|
|
10351
10351
|
} catch (e) {
|
|
10352
10352
|
loadErrors.push(e);
|
|
@@ -10360,7 +10360,7 @@ function requireNative() {
|
|
|
10360
10360
|
try {
|
|
10361
10361
|
const binding = __require("@rolldown/binding-freebsd-arm64");
|
|
10362
10362
|
const bindingPackageVersion = __require("@rolldown/binding-freebsd-arm64/package.json").version;
|
|
10363
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
10363
|
+
if (bindingPackageVersion !== "1.0.0-beta.37" && 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.37 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
10364
10364
|
return binding;
|
|
10365
10365
|
} catch (e) {
|
|
10366
10366
|
loadErrors.push(e);
|
|
@@ -10375,7 +10375,7 @@ function requireNative() {
|
|
|
10375
10375
|
try {
|
|
10376
10376
|
const binding = __require("@rolldown/binding-linux-x64-musl");
|
|
10377
10377
|
const bindingPackageVersion = __require("@rolldown/binding-linux-x64-musl/package.json").version;
|
|
10378
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
10378
|
+
if (bindingPackageVersion !== "1.0.0-beta.37" && 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.37 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
10379
10379
|
return binding;
|
|
10380
10380
|
} catch (e) {
|
|
10381
10381
|
loadErrors.push(e);
|
|
@@ -10389,7 +10389,7 @@ function requireNative() {
|
|
|
10389
10389
|
try {
|
|
10390
10390
|
const binding = __require("@rolldown/binding-linux-x64-gnu");
|
|
10391
10391
|
const bindingPackageVersion = __require("@rolldown/binding-linux-x64-gnu/package.json").version;
|
|
10392
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
10392
|
+
if (bindingPackageVersion !== "1.0.0-beta.37" && 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.37 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
10393
10393
|
return binding;
|
|
10394
10394
|
} catch (e) {
|
|
10395
10395
|
loadErrors.push(e);
|
|
@@ -10404,7 +10404,7 @@ function requireNative() {
|
|
|
10404
10404
|
try {
|
|
10405
10405
|
const binding = __require("@rolldown/binding-linux-arm64-musl");
|
|
10406
10406
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-musl/package.json").version;
|
|
10407
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
10407
|
+
if (bindingPackageVersion !== "1.0.0-beta.37" && 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.37 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
10408
10408
|
return binding;
|
|
10409
10409
|
} catch (e) {
|
|
10410
10410
|
loadErrors.push(e);
|
|
@@ -10418,7 +10418,7 @@ function requireNative() {
|
|
|
10418
10418
|
try {
|
|
10419
10419
|
const binding = __require("@rolldown/binding-linux-arm64-gnu");
|
|
10420
10420
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-gnu/package.json").version;
|
|
10421
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
10421
|
+
if (bindingPackageVersion !== "1.0.0-beta.37" && 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.37 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
10422
10422
|
return binding;
|
|
10423
10423
|
} catch (e) {
|
|
10424
10424
|
loadErrors.push(e);
|
|
@@ -10433,7 +10433,7 @@ function requireNative() {
|
|
|
10433
10433
|
try {
|
|
10434
10434
|
const binding = __require("@rolldown/binding-linux-arm-musleabihf");
|
|
10435
10435
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm-musleabihf/package.json").version;
|
|
10436
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
10436
|
+
if (bindingPackageVersion !== "1.0.0-beta.37" && 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.37 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
10437
10437
|
return binding;
|
|
10438
10438
|
} catch (e) {
|
|
10439
10439
|
loadErrors.push(e);
|
|
@@ -10447,7 +10447,7 @@ function requireNative() {
|
|
|
10447
10447
|
try {
|
|
10448
10448
|
const binding = __require("@rolldown/binding-linux-arm-gnueabihf");
|
|
10449
10449
|
const bindingPackageVersion = __require("@rolldown/binding-linux-arm-gnueabihf/package.json").version;
|
|
10450
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
10450
|
+
if (bindingPackageVersion !== "1.0.0-beta.37" && 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.37 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
10451
10451
|
return binding;
|
|
10452
10452
|
} catch (e) {
|
|
10453
10453
|
loadErrors.push(e);
|
|
@@ -10462,7 +10462,7 @@ function requireNative() {
|
|
|
10462
10462
|
try {
|
|
10463
10463
|
const binding = __require("@rolldown/binding-linux-riscv64-musl");
|
|
10464
10464
|
const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-musl/package.json").version;
|
|
10465
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
10465
|
+
if (bindingPackageVersion !== "1.0.0-beta.37" && 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.37 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
10466
10466
|
return binding;
|
|
10467
10467
|
} catch (e) {
|
|
10468
10468
|
loadErrors.push(e);
|
|
@@ -10476,7 +10476,7 @@ function requireNative() {
|
|
|
10476
10476
|
try {
|
|
10477
10477
|
const binding = __require("@rolldown/binding-linux-riscv64-gnu");
|
|
10478
10478
|
const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-gnu/package.json").version;
|
|
10479
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
10479
|
+
if (bindingPackageVersion !== "1.0.0-beta.37" && 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.37 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
10480
10480
|
return binding;
|
|
10481
10481
|
} catch (e) {
|
|
10482
10482
|
loadErrors.push(e);
|
|
@@ -10491,7 +10491,7 @@ function requireNative() {
|
|
|
10491
10491
|
try {
|
|
10492
10492
|
const binding = __require("@rolldown/binding-linux-ppc64-gnu");
|
|
10493
10493
|
const bindingPackageVersion = __require("@rolldown/binding-linux-ppc64-gnu/package.json").version;
|
|
10494
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
10494
|
+
if (bindingPackageVersion !== "1.0.0-beta.37" && 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.37 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
10495
10495
|
return binding;
|
|
10496
10496
|
} catch (e) {
|
|
10497
10497
|
loadErrors.push(e);
|
|
@@ -10505,7 +10505,7 @@ function requireNative() {
|
|
|
10505
10505
|
try {
|
|
10506
10506
|
const binding = __require("@rolldown/binding-linux-s390x-gnu");
|
|
10507
10507
|
const bindingPackageVersion = __require("@rolldown/binding-linux-s390x-gnu/package.json").version;
|
|
10508
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
10508
|
+
if (bindingPackageVersion !== "1.0.0-beta.37" && 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.37 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
10509
10509
|
return binding;
|
|
10510
10510
|
} catch (e) {
|
|
10511
10511
|
loadErrors.push(e);
|
|
@@ -10520,7 +10520,7 @@ function requireNative() {
|
|
|
10520
10520
|
try {
|
|
10521
10521
|
const binding = __require("@rolldown/binding-openharmony-arm64");
|
|
10522
10522
|
const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm64/package.json").version;
|
|
10523
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
10523
|
+
if (bindingPackageVersion !== "1.0.0-beta.37" && 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.37 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
10524
10524
|
return binding;
|
|
10525
10525
|
} catch (e) {
|
|
10526
10526
|
loadErrors.push(e);
|
|
@@ -10534,7 +10534,7 @@ function requireNative() {
|
|
|
10534
10534
|
try {
|
|
10535
10535
|
const binding = __require("@rolldown/binding-openharmony-x64");
|
|
10536
10536
|
const bindingPackageVersion = __require("@rolldown/binding-openharmony-x64/package.json").version;
|
|
10537
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
10537
|
+
if (bindingPackageVersion !== "1.0.0-beta.37" && 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.37 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
10538
10538
|
return binding;
|
|
10539
10539
|
} catch (e) {
|
|
10540
10540
|
loadErrors.push(e);
|
|
@@ -10548,7 +10548,7 @@ function requireNative() {
|
|
|
10548
10548
|
try {
|
|
10549
10549
|
const binding = __require("@rolldown/binding-openharmony-arm");
|
|
10550
10550
|
const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm/package.json").version;
|
|
10551
|
-
if (bindingPackageVersion !== "1.0.0-beta.
|
|
10551
|
+
if (bindingPackageVersion !== "1.0.0-beta.37" && 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.37 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
10552
10552
|
return binding;
|
|
10553
10553
|
} catch (e) {
|
|
10554
10554
|
loadErrors.push(e);
|
|
@@ -10578,7 +10578,7 @@ if (!nativeBinding) {
|
|
|
10578
10578
|
if (loadErrors.length > 0) throw new Error("Cannot find native binding. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.", { cause: loadErrors });
|
|
10579
10579
|
throw new Error(`Failed to load native binding`);
|
|
10580
10580
|
}
|
|
10581
|
-
const { minify, Severity, ParseResult, ExportExportNameKind, ExportImportNameKind, ExportLocalNameKind, ImportNameKind, parseAsync, parseSync, rawTransferSupported, ResolverFactory, EnforceExtension, ModuleType, sync, HelperMode, isolatedDeclaration, moduleRunnerTransform, transform, BindingBundleEndEventData, BindingBundleErrorEventData, BindingBundler, BindingBundlerImpl, BindingCallableBuiltinPlugin, BindingChunkingContext, BindingDevEngine, BindingHmrOutput, BindingModuleInfo, BindingNormalizedOptions, BindingOutputAsset, BindingOutputChunk, BindingOutputs, BindingPluginContext, BindingRenderedChunk, BindingRenderedChunkMeta, BindingRenderedModule, BindingTransformPluginContext, BindingWatcher, BindingWatcherChangeData, BindingWatcherEvent, ParallelJsPluginRegistry, TraceSubscriberGuard, BindingAttachDebugInfo, BindingBuiltinPluginName, BindingChunkModuleOrderBy, BindingJsx, BindingLogLevel, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects, FilterTokenKind, initTraceSubscriber, registerPlugins, shutdownAsyncRuntime, startAsyncRuntime, JsWatcher } = nativeBinding;
|
|
10581
|
+
const { minify, Severity, ParseResult, ExportExportNameKind, ExportImportNameKind, ExportLocalNameKind, ImportNameKind, parseAsync, parseSync, rawTransferSupported, ResolverFactory, EnforceExtension, ModuleType, sync, HelperMode, isolatedDeclaration, moduleRunnerTransform, transform, BindingBundleEndEventData, BindingBundleErrorEventData, BindingBundler, BindingBundlerImpl, BindingCallableBuiltinPlugin, BindingChunkingContext, BindingDevEngine, BindingHmrOutput, BindingModuleInfo, BindingNormalizedOptions, BindingOutputAsset, BindingOutputChunk, BindingOutputs, BindingPluginContext, BindingRenderedChunk, BindingRenderedChunkMeta, BindingRenderedModule, BindingTransformPluginContext, BindingWatcher, BindingWatcherChangeData, BindingWatcherEvent, ParallelJsPluginRegistry, ScheduledBuild, TraceSubscriberGuard, BindingAttachDebugInfo, BindingBuiltinPluginName, BindingChunkModuleOrderBy, BindingJsx, BindingLogLevel, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects, FilterTokenKind, initTraceSubscriber, registerPlugins, shutdownAsyncRuntime, startAsyncRuntime, JsWatcher } = nativeBinding;
|
|
10582
10582
|
|
|
10583
10583
|
//#endregion
|
|
10584
10584
|
//#region src/utils/code-frame.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BindingAttachDebugInfo, BindingBundler, BindingCallableBuiltinPlugin, BindingChunkModuleOrderBy, BindingJsx, BindingLogLevel, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects, BindingWatcher, ParallelJsPluginRegistry, augmentCodeLocation, error, logCycleLoading, logDuplicateJsxConfig, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst, shutdownAsyncRuntime, startAsyncRuntime } from "./parse-ast-index-
|
|
1
|
+
import { BindingAttachDebugInfo, BindingBundler, BindingCallableBuiltinPlugin, BindingChunkModuleOrderBy, BindingJsx, BindingLogLevel, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects, BindingWatcher, ParallelJsPluginRegistry, augmentCodeLocation, error, logCycleLoading, logDuplicateJsxConfig, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst, shutdownAsyncRuntime, startAsyncRuntime } from "./parse-ast-index-B5HcAOhq.mjs";
|
|
2
2
|
import { arraify, noop, unimplemented, unreachable, unsupported } from "./misc-CQeo-AFx.mjs";
|
|
3
3
|
import { Worker } from "node:worker_threads";
|
|
4
4
|
import path from "node:path";
|
|
@@ -9,25 +9,17 @@ import fsp from "node:fs/promises";
|
|
|
9
9
|
import os from "node:os";
|
|
10
10
|
|
|
11
11
|
//#region package.json
|
|
12
|
-
var version = "1.0.0-beta.
|
|
12
|
+
var version = "1.0.0-beta.37";
|
|
13
13
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
14
14
|
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region src/builtin-plugin/utils.ts
|
|
17
|
-
const BuiltinClassSymbol = Symbol.for("__RolldownBuiltinPlugin__");
|
|
18
17
|
var BuiltinPlugin = class {
|
|
19
18
|
constructor(name, _options) {
|
|
20
19
|
this.name = name;
|
|
21
20
|
this._options = _options;
|
|
22
|
-
this[BuiltinClassSymbol] = true;
|
|
23
21
|
}
|
|
24
22
|
};
|
|
25
|
-
function isBuiltinPlugin(obj) {
|
|
26
|
-
return obj && obj[BuiltinClassSymbol] === true;
|
|
27
|
-
}
|
|
28
|
-
function createBuiltinPlugin(name, options) {
|
|
29
|
-
return new BuiltinPlugin(name, options);
|
|
30
|
-
}
|
|
31
23
|
function makeBuiltinPluginCallable(plugin) {
|
|
32
24
|
let callablePlugin = new BindingCallableBuiltinPlugin(bindingifyBuiltInPlugin(plugin));
|
|
33
25
|
const wrappedPlugin = plugin;
|
|
@@ -187,59 +179,59 @@ function isReadonlyArray(input) {
|
|
|
187
179
|
//#endregion
|
|
188
180
|
//#region src/builtin-plugin/constructors.ts
|
|
189
181
|
function modulePreloadPolyfillPlugin(config) {
|
|
190
|
-
return
|
|
182
|
+
return new BuiltinPlugin("builtin:module-preload-polyfill", config);
|
|
191
183
|
}
|
|
192
184
|
function dynamicImportVarsPlugin(config) {
|
|
193
185
|
if (config) {
|
|
194
186
|
config.include = normalizedStringOrRegex(config.include);
|
|
195
187
|
config.exclude = normalizedStringOrRegex(config.exclude);
|
|
196
188
|
}
|
|
197
|
-
return
|
|
189
|
+
return new BuiltinPlugin("builtin:dynamic-import-vars", config);
|
|
198
190
|
}
|
|
199
191
|
function importGlobPlugin(config) {
|
|
200
|
-
return
|
|
192
|
+
return new BuiltinPlugin("builtin:import-glob", config);
|
|
201
193
|
}
|
|
202
194
|
function reporterPlugin(config) {
|
|
203
|
-
return
|
|
195
|
+
return new BuiltinPlugin("builtin:reporter", config);
|
|
204
196
|
}
|
|
205
197
|
function manifestPlugin(config) {
|
|
206
|
-
return
|
|
198
|
+
return new BuiltinPlugin("builtin:manifest", config);
|
|
207
199
|
}
|
|
208
200
|
function wasmHelperPlugin(config) {
|
|
209
|
-
return
|
|
201
|
+
return new BuiltinPlugin("builtin:wasm-helper", config);
|
|
210
202
|
}
|
|
211
203
|
function wasmFallbackPlugin() {
|
|
212
|
-
const builtinPlugin =
|
|
204
|
+
const builtinPlugin = new BuiltinPlugin("builtin:wasm-fallback");
|
|
213
205
|
return makeBuiltinPluginCallable(builtinPlugin);
|
|
214
206
|
}
|
|
215
207
|
function loadFallbackPlugin() {
|
|
216
|
-
return
|
|
208
|
+
return new BuiltinPlugin("builtin:load-fallback");
|
|
217
209
|
}
|
|
218
210
|
function jsonPlugin(config) {
|
|
219
|
-
const builtinPlugin =
|
|
211
|
+
const builtinPlugin = new BuiltinPlugin("builtin:json", config);
|
|
220
212
|
return makeBuiltinPluginCallable(builtinPlugin);
|
|
221
213
|
}
|
|
222
214
|
function buildImportAnalysisPlugin(config) {
|
|
223
|
-
return
|
|
215
|
+
return new BuiltinPlugin("builtin:build-import-analysis", config);
|
|
224
216
|
}
|
|
225
217
|
function viteResolvePlugin(config) {
|
|
226
|
-
const builtinPlugin =
|
|
218
|
+
const builtinPlugin = new BuiltinPlugin("builtin:vite-resolve", config);
|
|
227
219
|
return makeBuiltinPluginCallable(builtinPlugin);
|
|
228
220
|
}
|
|
229
221
|
function isolatedDeclarationPlugin(config) {
|
|
230
|
-
return
|
|
222
|
+
return new BuiltinPlugin("builtin:isolated-declaration", config);
|
|
231
223
|
}
|
|
232
224
|
function assetPlugin(config) {
|
|
233
|
-
return
|
|
225
|
+
return new BuiltinPlugin("builtin:asset", config);
|
|
234
226
|
}
|
|
235
227
|
function webWorkerPostPlugin() {
|
|
236
|
-
return
|
|
228
|
+
return new BuiltinPlugin("builtin:web-worker-post");
|
|
237
229
|
}
|
|
238
230
|
function oxcRuntimePlugin(config) {
|
|
239
|
-
return
|
|
231
|
+
return new BuiltinPlugin("builtin:oxc-runtime", config);
|
|
240
232
|
}
|
|
241
233
|
function esmExternalRequirePlugin(config) {
|
|
242
|
-
return
|
|
234
|
+
return new BuiltinPlugin("builtin:esm-external-require", config);
|
|
243
235
|
}
|
|
244
236
|
|
|
245
237
|
//#endregion
|
|
@@ -333,7 +325,7 @@ function checkOutputPluginOption(plugins, onLog) {
|
|
|
333
325
|
function normalizePlugins(plugins, anonymousPrefix) {
|
|
334
326
|
for (const [index, plugin] of plugins.entries()) {
|
|
335
327
|
if ("_parallel" in plugin) continue;
|
|
336
|
-
if (
|
|
328
|
+
if (plugin instanceof BuiltinPlugin) continue;
|
|
337
329
|
if (!plugin.name) plugin.name = `${anonymousPrefix}${index + 1}`;
|
|
338
330
|
}
|
|
339
331
|
return plugins;
|
|
@@ -402,7 +394,7 @@ function getObjectPlugins(plugins) {
|
|
|
402
394
|
return plugins.filter((plugin) => {
|
|
403
395
|
if (!plugin) return;
|
|
404
396
|
if ("_parallel" in plugin) return;
|
|
405
|
-
if (
|
|
397
|
+
if (plugin instanceof BuiltinPlugin) return;
|
|
406
398
|
return plugin;
|
|
407
399
|
});
|
|
408
400
|
}
|
|
@@ -3867,7 +3859,7 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
|
|
|
3867
3859
|
const pluginContextData = new PluginContextData(onLog, outputOptions, normalizedOutputPlugins);
|
|
3868
3860
|
const plugins = rawPlugins.map((plugin) => {
|
|
3869
3861
|
if ("_parallel" in plugin) return;
|
|
3870
|
-
if (
|
|
3862
|
+
if (plugin instanceof BuiltinPlugin) return bindingifyBuiltInPlugin(plugin);
|
|
3871
3863
|
return bindingifyPlugin(plugin, inputOptions, outputOptions, pluginContextData, normalizedOutputPlugins, onLog, logLevel, watchMode);
|
|
3872
3864
|
});
|
|
3873
3865
|
const { jsx, transform } = bindingifyJsx(onLog, inputOptions.jsx, inputOptions.transform);
|
|
@@ -4486,4 +4478,4 @@ function defineConfig(config) {
|
|
|
4486
4478
|
const VERSION = version;
|
|
4487
4479
|
|
|
4488
4480
|
//#endregion
|
|
4489
|
-
export { PluginContextData, PluginDriver, VERSION, assetPlugin, bindingifyPlugin, build, buildImportAnalysisPlugin,
|
|
4481
|
+
export { BuiltinPlugin, PluginContextData, PluginDriver, VERSION, assetPlugin, bindingifyPlugin, build, buildImportAnalysisPlugin, createBundlerImpl, createBundlerOptions, defineConfig, description$1 as description, dynamicImportVarsPlugin, esmExternalRequirePlugin, getInputCliKeys, getJsonSchema, getOutputCliKeys, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, rolldown, validateCliOptions, version, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch, webWorkerPostPlugin };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.37",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://rolldown.rs/",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"@oxc-project/runtime": "=0.87.0",
|
|
79
79
|
"@oxc-project/types": "=0.87.0",
|
|
80
80
|
"ansis": "^4.0.0",
|
|
81
|
-
"@rolldown/pluginutils": "1.0.0-beta.
|
|
81
|
+
"@rolldown/pluginutils": "1.0.0-beta.37"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
84
|
"@napi-rs/cli": "^3.1.2",
|
|
@@ -102,26 +102,26 @@
|
|
|
102
102
|
"typedoc": "^0.28.0",
|
|
103
103
|
"typescript": "^5.7.3",
|
|
104
104
|
"valibot": "1.1.0",
|
|
105
|
-
"rolldown": "1.0.0-beta.
|
|
105
|
+
"rolldown": "1.0.0-beta.37"
|
|
106
106
|
},
|
|
107
107
|
"engines": {
|
|
108
108
|
"node": "^20.19.0 || >=22.12.0"
|
|
109
109
|
},
|
|
110
110
|
"optionalDependencies": {
|
|
111
|
-
"@rolldown/binding-darwin-x64": "1.0.0-beta.
|
|
112
|
-
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.
|
|
113
|
-
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.
|
|
114
|
-
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.
|
|
115
|
-
"@rolldown/binding-freebsd-x64": "1.0.0-beta.
|
|
116
|
-
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.
|
|
117
|
-
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.
|
|
118
|
-
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.
|
|
119
|
-
"@rolldown/binding-darwin-arm64": "1.0.0-beta.
|
|
120
|
-
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.
|
|
121
|
-
"@rolldown/binding-openharmony-arm64": "1.0.0-beta.
|
|
122
|
-
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.
|
|
123
|
-
"@rolldown/binding-android-arm64": "1.0.0-beta.
|
|
124
|
-
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.
|
|
111
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.37",
|
|
112
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.37",
|
|
113
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.37",
|
|
114
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.37",
|
|
115
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.37",
|
|
116
|
+
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.37",
|
|
117
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.37",
|
|
118
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.37",
|
|
119
|
+
"@rolldown/binding-darwin-arm64": "1.0.0-beta.37",
|
|
120
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.37",
|
|
121
|
+
"@rolldown/binding-openharmony-arm64": "1.0.0-beta.37",
|
|
122
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.37",
|
|
123
|
+
"@rolldown/binding-android-arm64": "1.0.0-beta.37",
|
|
124
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.37"
|
|
125
125
|
},
|
|
126
126
|
"scripts": {
|
|
127
127
|
"# Scrips for binding #": "_",
|
|
File without changes
|
|
File without changes
|