rolldown 1.0.0-beta.8-commit.bf53a10 → 1.0.0-beta.8-commit.53a64a8
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 +11 -38
- package/dist/cli.mjs +6 -20
- package/dist/config.cjs +4 -5
- 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 +4 -5
- 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.cjs +2 -3
- package/dist/filter-index.d.cts +2 -2
- package/dist/filter-index.d.mts +2 -2
- package/dist/index.cjs +3 -3
- 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 +5 -16
- package/dist/parallel-plugin-worker.mjs +3 -14
- package/dist/parallel-plugin.cjs +0 -1
- 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.d-CRSjP27Q.d.cts → binding.d-CaUjr8EK.d.cts} +27 -17
- package/dist/shared/{binding.d-s8l5GGkF.d.mts → binding.d-ClGg1neJ.d.mts} +27 -17
- package/dist/shared/{chunk-qZFfknuJ.cjs → chunk-DDkG_k5U.cjs} +0 -1
- package/dist/shared/{define-config.d-8hGgwSYo.d.mts → define-config.d-CBG80ToE.d.mts} +8 -3
- package/dist/shared/{define-config.d-CsnRsGRz.d.cts → define-config.d-ZHP_KKLU.d.cts} +8 -3
- package/dist/shared/{load-config-Qv2RNEU6.mjs → load-config-Cwr2_DiJ.mjs} +1 -1
- package/dist/shared/{load-config-_uQ9OwL6.cjs → load-config-DDegSkkm.cjs} +2 -3
- package/dist/shared/{misc-BWx4LNta.cjs → misc-BKp5iIef.cjs} +0 -1
- package/dist/shared/{parse-ast-index-BFFqcofG.cjs → parse-ast-index-CtQjLtqj.cjs} +2 -2
- package/dist/shared/{parse-ast-index-CMF-2Ku4.mjs → parse-ast-index-_P4eJuv5.mjs} +2 -2
- package/dist/shared/{prompt-jvA1XQOy.cjs → prompt-CxjDC0Gn.cjs} +1 -2
- package/dist/shared/{src-OOWMOd_H.mjs → src-C3GKppgv.mjs} +21 -34
- package/dist/shared/{src-B-PS8RBB.cjs → src-CXlRt_uA.cjs} +21 -35
- package/package.json +18 -18
package/dist/cli.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_chunk = require('./shared/chunk-
|
|
2
|
-
const require_src = require('./shared/src-
|
|
3
|
-
require('./shared/parse-ast-index-
|
|
4
|
-
const require_misc = require('./shared/misc-
|
|
5
|
-
const require_load_config = require('./shared/load-config-
|
|
1
|
+
const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
|
|
2
|
+
const require_src = require('./shared/src-CXlRt_uA.cjs');
|
|
3
|
+
require('./shared/parse-ast-index-CtQjLtqj.cjs');
|
|
4
|
+
const require_misc = require('./shared/misc-BKp5iIef.cjs');
|
|
5
|
+
const require_load_config = require('./shared/load-config-DDegSkkm.cjs');
|
|
6
6
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
7
7
|
const ansis = require_chunk.__toESM(require("ansis"));
|
|
8
8
|
const node_process = require_chunk.__toESM(require("node:process"));
|
|
@@ -956,22 +956,9 @@ function createConsola(options$1 = {}) {
|
|
|
956
956
|
defaults: { level },
|
|
957
957
|
stdout: process.stdout,
|
|
958
958
|
stderr: process.stderr,
|
|
959
|
-
prompt: (...args) => Promise.resolve().then(
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
// Combining diacritical marks
|
|
963
|
-
// Combining diacritical marks extended
|
|
964
|
-
// Combining diacritical marks supplement
|
|
965
|
-
// Combining diacritical marks for symbols
|
|
966
|
-
// Combining half marks
|
|
967
|
-
// Linux console (kernel)
|
|
968
|
-
// Windows Terminal
|
|
969
|
-
// Terminus (<0.2.27)
|
|
970
|
-
// ConEmu and cmder
|
|
971
|
-
function() {
|
|
972
|
-
return require("./shared/prompt-jvA1XQOy.cjs");
|
|
973
|
-
}
|
|
974
|
-
).then((m) => m.prompt(...args)),
|
|
959
|
+
prompt: (...args) => Promise.resolve().then(function() {
|
|
960
|
+
return require("./shared/prompt-CxjDC0Gn.cjs");
|
|
961
|
+
}).then((m) => m.prompt(...args)),
|
|
975
962
|
reporters: options$1.reporters || [options$1.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
|
|
976
963
|
...options$1
|
|
977
964
|
});
|
|
@@ -1261,21 +1248,7 @@ function parseCliArguments() {
|
|
|
1261
1248
|
*/
|
|
1262
1249
|
const signals = [];
|
|
1263
1250
|
signals.push("SIGHUP", "SIGINT", "SIGTERM");
|
|
1264
|
-
if (process.platform !== "win32") signals.push(
|
|
1265
|
-
"SIGALRM",
|
|
1266
|
-
"SIGABRT",
|
|
1267
|
-
"SIGVTALRM",
|
|
1268
|
-
"SIGXCPU",
|
|
1269
|
-
"SIGXFSZ",
|
|
1270
|
-
"SIGUSR2",
|
|
1271
|
-
"SIGTRAP",
|
|
1272
|
-
"SIGSYS",
|
|
1273
|
-
"SIGQUIT",
|
|
1274
|
-
"SIGIOT"
|
|
1275
|
-
// should detect profiler and enable/disable accordingly.
|
|
1276
|
-
// see #21
|
|
1277
|
-
// 'SIGPROF'
|
|
1278
|
-
);
|
|
1251
|
+
if (process.platform !== "win32") signals.push("SIGALRM", "SIGABRT", "SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
|
|
1279
1252
|
if (process.platform === "linux") signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
|
|
1280
1253
|
|
|
1281
1254
|
//#endregion
|
|
@@ -1447,8 +1420,8 @@ const process$2 = globalThis.process;
|
|
|
1447
1420
|
const { onExit, load, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
|
|
1448
1421
|
|
|
1449
1422
|
//#endregion
|
|
1450
|
-
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.
|
|
1451
|
-
var require_usingCtx = require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.
|
|
1423
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.70.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
|
|
1424
|
+
var require_usingCtx = require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.70.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
|
|
1452
1425
|
function _usingCtx() {
|
|
1453
1426
|
var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
|
|
1454
1427
|
var n$2 = Error();
|
package/dist/cli.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __commonJS, __esm, __toESM } from "./shared/chunk--iN_1bjD.mjs";
|
|
2
|
-
import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
2
|
+
import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-C3GKppgv.mjs";
|
|
3
|
+
import "./shared/parse-ast-index-_P4eJuv5.mjs";
|
|
4
4
|
import { arraify, init_misc } from "./shared/misc-DGAe2XOW.mjs";
|
|
5
|
-
import { init_load_config, loadConfig } from "./shared/load-config-
|
|
5
|
+
import { init_load_config, loadConfig } from "./shared/load-config-Cwr2_DiJ.mjs";
|
|
6
6
|
import path, { sep } from "node:path";
|
|
7
7
|
import colors from "ansis";
|
|
8
8
|
import process$1 from "node:process";
|
|
@@ -1257,21 +1257,7 @@ var signals;
|
|
|
1257
1257
|
var init_signals = __esm({ "../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js"() {
|
|
1258
1258
|
signals = [];
|
|
1259
1259
|
signals.push("SIGHUP", "SIGINT", "SIGTERM");
|
|
1260
|
-
if (process.platform !== "win32") signals.push(
|
|
1261
|
-
"SIGALRM",
|
|
1262
|
-
"SIGABRT",
|
|
1263
|
-
"SIGVTALRM",
|
|
1264
|
-
"SIGXCPU",
|
|
1265
|
-
"SIGXFSZ",
|
|
1266
|
-
"SIGUSR2",
|
|
1267
|
-
"SIGTRAP",
|
|
1268
|
-
"SIGSYS",
|
|
1269
|
-
"SIGQUIT",
|
|
1270
|
-
"SIGIOT"
|
|
1271
|
-
// should detect profiler and enable/disable accordingly.
|
|
1272
|
-
// see #21
|
|
1273
|
-
// 'SIGPROF'
|
|
1274
|
-
);
|
|
1260
|
+
if (process.platform !== "win32") signals.push("SIGALRM", "SIGABRT", "SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
|
|
1275
1261
|
if (process.platform === "linux") signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
|
|
1276
1262
|
} });
|
|
1277
1263
|
|
|
@@ -1448,8 +1434,8 @@ var init_mjs = __esm({ "../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/
|
|
|
1448
1434
|
} });
|
|
1449
1435
|
|
|
1450
1436
|
//#endregion
|
|
1451
|
-
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.
|
|
1452
|
-
var require_usingCtx = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.
|
|
1437
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.70.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
|
|
1438
|
+
var require_usingCtx = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.70.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
|
|
1453
1439
|
function _usingCtx() {
|
|
1454
1440
|
var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
|
|
1455
1441
|
var n$2 = Error();
|
package/dist/config.cjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
require('./shared/
|
|
4
|
-
require('./shared/
|
|
5
|
-
const require_load_config = require('./shared/load-config-_uQ9OwL6.cjs');
|
|
1
|
+
const require_src = require('./shared/src-CXlRt_uA.cjs');
|
|
2
|
+
require('./shared/parse-ast-index-CtQjLtqj.cjs');
|
|
3
|
+
require('./shared/misc-BKp5iIef.cjs');
|
|
4
|
+
const require_load_config = require('./shared/load-config-DDegSkkm.cjs');
|
|
6
5
|
|
|
7
6
|
//#region src/config.ts
|
|
8
7
|
const VERSION = require_src.version;
|
package/dist/config.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding.d-
|
|
2
|
-
import { ConfigExport, defineConfig } from "./shared/define-config.d-
|
|
1
|
+
import "./shared/binding.d-CaUjr8EK.cjs";
|
|
2
|
+
import { ConfigExport, defineConfig } from "./shared/define-config.d-ZHP_KKLU.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/load-config.d.ts
|
|
5
5
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
package/dist/config.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding.d-
|
|
2
|
-
import { ConfigExport, defineConfig$1 as defineConfig } from "./shared/define-config.d-
|
|
1
|
+
import "./shared/binding.d-ClGg1neJ.mjs";
|
|
2
|
+
import { ConfigExport, defineConfig$1 as defineConfig } from "./shared/define-config.d-CBG80ToE.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/load-config.d.ts
|
|
5
5
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
package/dist/config.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineConfig, init_define_config, version } from "./shared/src-
|
|
2
|
-
import "./shared/parse-ast-index-
|
|
1
|
+
import { defineConfig, init_define_config, version } from "./shared/src-C3GKppgv.mjs";
|
|
2
|
+
import "./shared/parse-ast-index-_P4eJuv5.mjs";
|
|
3
3
|
import "./shared/misc-DGAe2XOW.mjs";
|
|
4
|
-
import { init_load_config, loadConfig } from "./shared/load-config-
|
|
4
|
+
import { init_load_config, loadConfig } from "./shared/load-config-Cwr2_DiJ.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/config.ts
|
|
7
7
|
init_define_config();
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
require('./shared/misc-BWx4LNta.cjs');
|
|
1
|
+
const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
|
|
2
|
+
const require_src = require('./shared/src-CXlRt_uA.cjs');
|
|
3
|
+
const require_parse_ast_index = require('./shared/parse-ast-index-CtQjLtqj.cjs');
|
|
4
|
+
require('./shared/misc-BKp5iIef.cjs');
|
|
6
5
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
7
6
|
|
|
8
7
|
//#region src/api/experimental.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult$1 as TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding.d-
|
|
2
|
-
import { BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/define-config.d-
|
|
1
|
+
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult$1 as TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding.d-CaUjr8EK.cjs";
|
|
2
|
+
import { BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/define-config.d-ZHP_KKLU.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult$1 as TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding.d-
|
|
2
|
-
import { BuiltinPlugin$1 as BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin$1 as assetPlugin, buildImportAnalysisPlugin$1 as buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin$1 as dynamicImportVarsPlugin, importGlobPlugin$1 as importGlobPlugin, isolatedDeclarationPlugin$1 as isolatedDeclarationPlugin, jsonPlugin$1 as jsonPlugin, loadFallbackPlugin$1 as loadFallbackPlugin, manifestPlugin$1 as manifestPlugin, moduleFederationPlugin$1 as moduleFederationPlugin, modulePreloadPolyfillPlugin$1 as modulePreloadPolyfillPlugin, reportPlugin$1 as reportPlugin, viteResolvePlugin$1 as viteResolvePlugin, wasmFallbackPlugin$1 as wasmFallbackPlugin, wasmHelperPlugin$1 as wasmHelperPlugin } from "./shared/define-config.d-
|
|
1
|
+
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult$1 as TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding.d-ClGg1neJ.mjs";
|
|
2
|
+
import { BuiltinPlugin$1 as BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin$1 as assetPlugin, buildImportAnalysisPlugin$1 as buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin$1 as dynamicImportVarsPlugin, importGlobPlugin$1 as importGlobPlugin, isolatedDeclarationPlugin$1 as isolatedDeclarationPlugin, jsonPlugin$1 as jsonPlugin, loadFallbackPlugin$1 as loadFallbackPlugin, manifestPlugin$1 as manifestPlugin, moduleFederationPlugin$1 as moduleFederationPlugin, modulePreloadPolyfillPlugin$1 as modulePreloadPolyfillPlugin, reportPlugin$1 as reportPlugin, viteResolvePlugin$1 as viteResolvePlugin, wasmFallbackPlugin$1 as wasmFallbackPlugin, wasmHelperPlugin$1 as wasmHelperPlugin } from "./shared/define-config.d-CBG80ToE.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __toESM } from "./shared/chunk--iN_1bjD.mjs";
|
|
2
|
-
import { BuiltinPlugin, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, init_compose_js_plugins, init_constructors, init_create_bundler, init_normalize_string_or_regex, init_transform_to_rollup_output, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/src-
|
|
3
|
-
import { require_binding } from "./shared/parse-ast-index-
|
|
2
|
+
import { BuiltinPlugin, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, init_compose_js_plugins, init_constructors, init_create_bundler, init_normalize_string_or_regex, init_transform_to_rollup_output, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/src-C3GKppgv.mjs";
|
|
3
|
+
import { require_binding } from "./shared/parse-ast-index-_P4eJuv5.mjs";
|
|
4
4
|
import "./shared/misc-DGAe2XOW.mjs";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
6
6
|
|
package/dist/filter-index.cjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
const require_misc = require('./shared/misc-BWx4LNta.cjs');
|
|
1
|
+
const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
|
|
2
|
+
const require_misc = require('./shared/misc-BKp5iIef.cjs');
|
|
4
3
|
const __rolldown_pluginutils = require_chunk.__toESM(require("@rolldown/pluginutils"));
|
|
5
4
|
|
|
6
5
|
//#region src/plugin/with-filter.ts
|
package/dist/filter-index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding.d-
|
|
2
|
-
import { withFilter } from "./shared/define-config.d-
|
|
1
|
+
import "./shared/binding.d-CaUjr8EK.cjs";
|
|
2
|
+
import { withFilter } from "./shared/define-config.d-ZHP_KKLU.cjs";
|
|
3
3
|
import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
|
|
4
4
|
|
|
5
5
|
export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding.d-
|
|
2
|
-
import { withFilter } from "./shared/define-config.d-
|
|
1
|
+
import "./shared/binding.d-ClGg1neJ.mjs";
|
|
2
|
+
import { withFilter } from "./shared/define-config.d-CBG80ToE.mjs";
|
|
3
3
|
import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
|
|
4
4
|
|
|
5
5
|
export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_src = require('./shared/src-
|
|
2
|
-
require('./shared/parse-ast-index-
|
|
3
|
-
require('./shared/misc-
|
|
1
|
+
const require_src = require('./shared/src-CXlRt_uA.cjs');
|
|
2
|
+
require('./shared/parse-ast-index-CtQjLtqj.cjs');
|
|
3
|
+
require('./shared/misc-BKp5iIef.cjs');
|
|
4
4
|
|
|
5
5
|
exports.VERSION = require_src.VERSION;
|
|
6
6
|
exports.build = require_src.build;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PreRenderedChunk } from "./shared/binding.d-
|
|
2
|
-
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config.d-
|
|
1
|
+
import { PreRenderedChunk } from "./shared/binding.d-CaUjr8EK.cjs";
|
|
2
|
+
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config.d-ZHP_KKLU.cjs";
|
|
3
3
|
|
|
4
4
|
export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PreRenderedChunk } from "./shared/binding.d-
|
|
2
|
-
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION$1 as VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build$1 as build, defineConfig$1 as defineConfig, rolldown$1 as rolldown, watch$1 as watch } from "./shared/define-config.d-
|
|
1
|
+
import { PreRenderedChunk } from "./shared/binding.d-ClGg1neJ.mjs";
|
|
2
|
+
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION$1 as VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build$1 as build, defineConfig$1 as defineConfig, rolldown$1 as rolldown, watch$1 as watch } from "./shared/define-config.d-CBG80ToE.mjs";
|
|
3
3
|
|
|
4
4
|
export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-
|
|
2
|
-
import "./shared/parse-ast-index-
|
|
1
|
+
import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-C3GKppgv.mjs";
|
|
2
|
+
import "./shared/parse-ast-index-_P4eJuv5.mjs";
|
|
3
3
|
import "./shared/misc-DGAe2XOW.mjs";
|
|
4
4
|
|
|
5
5
|
init_src();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_chunk = require('./shared/chunk-
|
|
2
|
-
const require_src = require('./shared/src-
|
|
3
|
-
const require_parse_ast_index = require('./shared/parse-ast-index-
|
|
4
|
-
require('./shared/misc-
|
|
1
|
+
const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
|
|
2
|
+
const require_src = require('./shared/src-CXlRt_uA.cjs');
|
|
3
|
+
const require_parse_ast_index = require('./shared/parse-ast-index-CtQjLtqj.cjs');
|
|
4
|
+
require('./shared/misc-BKp5iIef.cjs');
|
|
5
5
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
6
6
|
|
|
7
7
|
//#region src/parallel-plugin-worker.ts
|
|
@@ -15,18 +15,7 @@ const { registryId, pluginInfos, threadNumber } = node_worker_threads.workerData
|
|
|
15
15
|
const plugin = await definePluginImpl(pluginInfo.options, { threadNumber });
|
|
16
16
|
return {
|
|
17
17
|
index: pluginInfo.index,
|
|
18
|
-
plugin: require_src.bindingifyPlugin(
|
|
19
|
-
plugin,
|
|
20
|
-
{},
|
|
21
|
-
{},
|
|
22
|
-
// TODO need to find a way to share pluginContextData
|
|
23
|
-
new require_src.PluginContextData(),
|
|
24
|
-
[],
|
|
25
|
-
() => {},
|
|
26
|
-
"info",
|
|
27
|
-
// TODO: support this.meta.watchMode
|
|
28
|
-
false
|
|
29
|
-
)
|
|
18
|
+
plugin: require_src.bindingifyPlugin(plugin, {}, {}, new require_src.PluginContextData(), [], () => {}, "info", false)
|
|
30
19
|
};
|
|
31
20
|
}));
|
|
32
21
|
(0, import_binding.registerPlugins)(registryId, plugins);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __commonJS, __toESM } from "./shared/chunk--iN_1bjD.mjs";
|
|
2
|
-
import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-
|
|
3
|
-
import { require_binding } from "./shared/parse-ast-index-
|
|
2
|
+
import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-C3GKppgv.mjs";
|
|
3
|
+
import { require_binding } from "./shared/parse-ast-index-_P4eJuv5.mjs";
|
|
4
4
|
import "./shared/misc-DGAe2XOW.mjs";
|
|
5
5
|
import { parentPort, workerData } from "node:worker_threads";
|
|
6
6
|
|
|
@@ -18,18 +18,7 @@ var require_parallel_plugin_worker = __commonJS({ "src/parallel-plugin-worker.ts
|
|
|
18
18
|
const plugin = await definePluginImpl(pluginInfo.options, { threadNumber });
|
|
19
19
|
return {
|
|
20
20
|
index: pluginInfo.index,
|
|
21
|
-
plugin: bindingifyPlugin(
|
|
22
|
-
plugin,
|
|
23
|
-
{},
|
|
24
|
-
{},
|
|
25
|
-
// TODO need to find a way to share pluginContextData
|
|
26
|
-
new PluginContextData(),
|
|
27
|
-
[],
|
|
28
|
-
() => {},
|
|
29
|
-
"info",
|
|
30
|
-
// TODO: support this.meta.watchMode
|
|
31
|
-
false
|
|
32
|
-
)
|
|
21
|
+
plugin: bindingifyPlugin(plugin, {}, {}, new PluginContextData(), [], () => {}, "info", false)
|
|
33
22
|
};
|
|
34
23
|
}));
|
|
35
24
|
(0, import_binding.registerPlugins)(registryId, plugins);
|
package/dist/parallel-plugin.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding.d-
|
|
2
|
-
import { MaybePromise, Plugin } from "./shared/define-config.d-
|
|
1
|
+
import "./shared/binding.d-CaUjr8EK.cjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config.d-ZHP_KKLU.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding.d-
|
|
2
|
-
import { MaybePromise, Plugin } from "./shared/define-config.d-
|
|
1
|
+
import "./shared/binding.d-ClGg1neJ.mjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config.d-CBG80ToE.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
package/dist/parse-ast-index.cjs
CHANGED
|
@@ -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-CtQjLtqj.cjs');
|
|
2
2
|
|
|
3
3
|
exports.parseAst = require_parse_ast_index.parseAst;
|
|
4
4
|
exports.parseAstAsync = require_parse_ast_index.parseAstAsync;
|
package/dist/parse-ast-index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_parse_ast_index, parseAst, parseAstAsync } from "./shared/parse-ast-index-
|
|
1
|
+
import { init_parse_ast_index, parseAst, parseAstAsync } from "./shared/parse-ast-index-_P4eJuv5.mjs";
|
|
2
2
|
|
|
3
3
|
init_parse_ast_index();
|
|
4
4
|
export { parseAst, parseAstAsync };
|
|
@@ -179,7 +179,10 @@ interface BindingAdvancedChunksOptions {
|
|
|
179
179
|
maxModuleSize?: number
|
|
180
180
|
}
|
|
181
181
|
interface BindingAssetPluginConfig {
|
|
182
|
-
|
|
182
|
+
isServer?: boolean
|
|
183
|
+
urlBase?: string
|
|
184
|
+
publicDir?: string
|
|
185
|
+
assetsInclude?: Array<BindingStringOrRegex>
|
|
183
186
|
}
|
|
184
187
|
interface BindingAssetSource {
|
|
185
188
|
inner: string | Uint8Array
|
|
@@ -195,23 +198,25 @@ interface BindingBuiltinPlugin {
|
|
|
195
198
|
__name: BindingBuiltinPluginName
|
|
196
199
|
options?: unknown
|
|
197
200
|
}
|
|
198
|
-
type BindingBuiltinPluginName = 'builtin:
|
|
199
|
-
'builtin:
|
|
201
|
+
type BindingBuiltinPluginName = 'builtin:alias'|
|
|
202
|
+
'builtin:asset'|
|
|
203
|
+
'builtin:asset-import-meta-url'|
|
|
204
|
+
'builtin:build-import-analysis'|
|
|
200
205
|
'builtin:dynamic-import-vars'|
|
|
201
|
-
'builtin:
|
|
202
|
-
'builtin:
|
|
203
|
-
'builtin:load-fallback'|
|
|
204
|
-
'builtin:transform'|
|
|
205
|
-
'builtin:wasm-fallback'|
|
|
206
|
-
'builtin:alias'|
|
|
206
|
+
'builtin:import-glob'|
|
|
207
|
+
'builtin:isolated-declaration'|
|
|
207
208
|
'builtin:json'|
|
|
208
|
-
'builtin:
|
|
209
|
-
'builtin:
|
|
210
|
-
'builtin:vite-resolve'|
|
|
209
|
+
'builtin:load-fallback'|
|
|
210
|
+
'builtin:manifest'|
|
|
211
211
|
'builtin:module-federation'|
|
|
212
|
-
'builtin:
|
|
212
|
+
'builtin:module-preload-polyfill'|
|
|
213
213
|
'builtin:report'|
|
|
214
|
-
'builtin:
|
|
214
|
+
'builtin:replace'|
|
|
215
|
+
'builtin:transform'|
|
|
216
|
+
'builtin:vite-resolve'|
|
|
217
|
+
'builtin:wasm-fallback'|
|
|
218
|
+
'builtin:wasm-helper'|
|
|
219
|
+
'builtin:web-worker-post';
|
|
215
220
|
interface BindingBundlerOptions {
|
|
216
221
|
inputOptions: BindingInputOptions
|
|
217
222
|
outputOptions: BindingOutputOptions
|
|
@@ -280,7 +285,10 @@ interface BindingHmrBoundaryOutput {
|
|
|
280
285
|
acceptedVia: string
|
|
281
286
|
}
|
|
282
287
|
interface BindingHmrOutput {
|
|
283
|
-
|
|
288
|
+
code: string
|
|
289
|
+
filename: string
|
|
290
|
+
sourcemap?: string
|
|
291
|
+
sourcemapFilename?: string
|
|
284
292
|
hmrBoundaries: Array<BindingHmrBoundaryOutput>
|
|
285
293
|
fullReload: boolean
|
|
286
294
|
firstInvalidatedBy?: string
|
|
@@ -1241,9 +1249,10 @@ interface OxcError {
|
|
|
1241
1249
|
codeframe?: string
|
|
1242
1250
|
}
|
|
1243
1251
|
interface ParserOptions {
|
|
1244
|
-
sourceType?: 'script' | 'module' | 'unambiguous' | undefined
|
|
1245
1252
|
/** Treat the source text as `js`, `jsx`, `ts`, or `tsx`. */
|
|
1246
1253
|
lang?: 'js' | 'jsx' | 'ts' | 'tsx'
|
|
1254
|
+
/** Treat the source text as `script` or `module` code. */
|
|
1255
|
+
sourceType?: 'script' | 'module' | 'unambiguous' | undefined
|
|
1247
1256
|
/**
|
|
1248
1257
|
* Return an AST which includes TypeScript-related properties, or excludes them.
|
|
1249
1258
|
*
|
|
@@ -1450,9 +1459,10 @@ declare function transform(filename: string, sourceText: string, options?: Trans
|
|
|
1450
1459
|
* @see {@link transform}
|
|
1451
1460
|
*/
|
|
1452
1461
|
interface TransformOptions {
|
|
1453
|
-
sourceType?: 'script' | 'module' | 'unambiguous' | undefined
|
|
1454
1462
|
/** Treat the source text as `js`, `jsx`, `ts`, or `tsx`. */
|
|
1455
1463
|
lang?: 'js' | 'jsx' | 'ts' | 'tsx'
|
|
1464
|
+
/** Treat the source text as `script` or `module` code. */
|
|
1465
|
+
sourceType?: 'script' | 'module' | 'unambiguous' | undefined
|
|
1456
1466
|
/**
|
|
1457
1467
|
* The current working directory. Used to resolve relative paths in other
|
|
1458
1468
|
* options.
|
|
@@ -179,7 +179,10 @@ interface BindingAdvancedChunksOptions {
|
|
|
179
179
|
maxModuleSize?: number
|
|
180
180
|
}
|
|
181
181
|
interface BindingAssetPluginConfig {
|
|
182
|
-
|
|
182
|
+
isServer?: boolean
|
|
183
|
+
urlBase?: string
|
|
184
|
+
publicDir?: string
|
|
185
|
+
assetsInclude?: Array<BindingStringOrRegex>
|
|
183
186
|
}
|
|
184
187
|
interface BindingAssetSource {
|
|
185
188
|
inner: string | Uint8Array
|
|
@@ -195,23 +198,25 @@ interface BindingBuiltinPlugin {
|
|
|
195
198
|
__name: BindingBuiltinPluginName
|
|
196
199
|
options?: unknown
|
|
197
200
|
}
|
|
198
|
-
type BindingBuiltinPluginName = 'builtin:
|
|
199
|
-
'builtin:
|
|
201
|
+
type BindingBuiltinPluginName = 'builtin:alias'|
|
|
202
|
+
'builtin:asset'|
|
|
203
|
+
'builtin:asset-import-meta-url'|
|
|
204
|
+
'builtin:build-import-analysis'|
|
|
200
205
|
'builtin:dynamic-import-vars'|
|
|
201
|
-
'builtin:
|
|
202
|
-
'builtin:
|
|
203
|
-
'builtin:load-fallback'|
|
|
204
|
-
'builtin:transform'|
|
|
205
|
-
'builtin:wasm-fallback'|
|
|
206
|
-
'builtin:alias'|
|
|
206
|
+
'builtin:import-glob'|
|
|
207
|
+
'builtin:isolated-declaration'|
|
|
207
208
|
'builtin:json'|
|
|
208
|
-
'builtin:
|
|
209
|
-
'builtin:
|
|
210
|
-
'builtin:vite-resolve'|
|
|
209
|
+
'builtin:load-fallback'|
|
|
210
|
+
'builtin:manifest'|
|
|
211
211
|
'builtin:module-federation'|
|
|
212
|
-
'builtin:
|
|
212
|
+
'builtin:module-preload-polyfill'|
|
|
213
213
|
'builtin:report'|
|
|
214
|
-
'builtin:
|
|
214
|
+
'builtin:replace'|
|
|
215
|
+
'builtin:transform'|
|
|
216
|
+
'builtin:vite-resolve'|
|
|
217
|
+
'builtin:wasm-fallback'|
|
|
218
|
+
'builtin:wasm-helper'|
|
|
219
|
+
'builtin:web-worker-post';
|
|
215
220
|
interface BindingBundlerOptions {
|
|
216
221
|
inputOptions: BindingInputOptions
|
|
217
222
|
outputOptions: BindingOutputOptions
|
|
@@ -280,7 +285,10 @@ interface BindingHmrBoundaryOutput {
|
|
|
280
285
|
acceptedVia: string
|
|
281
286
|
}
|
|
282
287
|
interface BindingHmrOutput {
|
|
283
|
-
|
|
288
|
+
code: string
|
|
289
|
+
filename: string
|
|
290
|
+
sourcemap?: string
|
|
291
|
+
sourcemapFilename?: string
|
|
284
292
|
hmrBoundaries: Array<BindingHmrBoundaryOutput>
|
|
285
293
|
fullReload: boolean
|
|
286
294
|
firstInvalidatedBy?: string
|
|
@@ -1241,9 +1249,10 @@ interface OxcError {
|
|
|
1241
1249
|
codeframe?: string
|
|
1242
1250
|
}
|
|
1243
1251
|
interface ParserOptions {
|
|
1244
|
-
sourceType?: 'script' | 'module' | 'unambiguous' | undefined
|
|
1245
1252
|
/** Treat the source text as `js`, `jsx`, `ts`, or `tsx`. */
|
|
1246
1253
|
lang?: 'js' | 'jsx' | 'ts' | 'tsx'
|
|
1254
|
+
/** Treat the source text as `script` or `module` code. */
|
|
1255
|
+
sourceType?: 'script' | 'module' | 'unambiguous' | undefined
|
|
1247
1256
|
/**
|
|
1248
1257
|
* Return an AST which includes TypeScript-related properties, or excludes them.
|
|
1249
1258
|
*
|
|
@@ -1450,9 +1459,10 @@ declare function transform(filename: string, sourceText: string, options?: Trans
|
|
|
1450
1459
|
* @see {@link transform}
|
|
1451
1460
|
*/
|
|
1452
1461
|
interface TransformOptions {
|
|
1453
|
-
sourceType?: 'script' | 'module' | 'unambiguous' | undefined
|
|
1454
1462
|
/** Treat the source text as `js`, `jsx`, `ts`, or `tsx`. */
|
|
1455
1463
|
lang?: 'js' | 'jsx' | 'ts' | 'tsx'
|
|
1464
|
+
/** Treat the source text as `script` or `module` code. */
|
|
1465
|
+
sourceType?: 'script' | 'module' | 'unambiguous' | undefined
|
|
1456
1466
|
/**
|
|
1457
1467
|
* The current working directory. Used to resolve relative paths in other
|
|
1458
1468
|
* options.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-
|
|
1
|
+
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-ClGg1neJ.mjs";
|
|
2
2
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
3
3
|
import { Program } from "@oxc-project/types";
|
|
4
4
|
|
|
@@ -78,6 +78,7 @@ interface RenderedModule {
|
|
|
78
78
|
renderedExports: string[];
|
|
79
79
|
}
|
|
80
80
|
interface RenderedChunk extends Omit<BindingRenderedChunk, "modules"> {
|
|
81
|
+
type: "chunk";
|
|
81
82
|
modules: {
|
|
82
83
|
[id: string]: RenderedModule
|
|
83
84
|
};
|
|
@@ -819,9 +820,13 @@ interface Plugin<A = any> extends OutputPlugin, Partial<PluginHooks> {
|
|
|
819
820
|
api?: A;
|
|
820
821
|
}
|
|
821
822
|
type RolldownPlugin<A = any> = Plugin<A> | BuiltinPlugin | ParallelPlugin;
|
|
822
|
-
type RolldownPluginOption<A = any> = MaybePromise<NullValue<RolldownPlugin<A>> |
|
|
823
|
+
type RolldownPluginOption<A = any> = MaybePromise<NullValue<RolldownPlugin<A>> | {
|
|
824
|
+
name: string
|
|
825
|
+
} | false | RolldownPluginOption[]>;
|
|
823
826
|
type RolldownOutputPlugin = OutputPlugin | BuiltinPlugin;
|
|
824
|
-
type RolldownOutputPluginOption = MaybePromise<NullValue<RolldownOutputPlugin> |
|
|
827
|
+
type RolldownOutputPluginOption = MaybePromise<NullValue<RolldownOutputPlugin> | {
|
|
828
|
+
name: string
|
|
829
|
+
} | false | RolldownOutputPluginOption[]>;
|
|
825
830
|
|
|
826
831
|
//#endregion
|
|
827
832
|
//#region src/options/generated/checks-options.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-
|
|
1
|
+
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-CaUjr8EK.cjs";
|
|
2
2
|
import { Program } from "@oxc-project/types";
|
|
3
3
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
4
4
|
|
|
@@ -78,6 +78,7 @@ interface RenderedModule {
|
|
|
78
78
|
renderedExports: string[];
|
|
79
79
|
}
|
|
80
80
|
interface RenderedChunk extends Omit<BindingRenderedChunk, "modules"> {
|
|
81
|
+
type: "chunk";
|
|
81
82
|
modules: {
|
|
82
83
|
[id: string]: RenderedModule
|
|
83
84
|
};
|
|
@@ -819,9 +820,13 @@ interface Plugin<A = any> extends OutputPlugin, Partial<PluginHooks> {
|
|
|
819
820
|
api?: A;
|
|
820
821
|
}
|
|
821
822
|
type RolldownPlugin<A = any> = Plugin<A> | BuiltinPlugin | ParallelPlugin;
|
|
822
|
-
type RolldownPluginOption<A = any> = MaybePromise<NullValue<RolldownPlugin<A>> |
|
|
823
|
+
type RolldownPluginOption<A = any> = MaybePromise<NullValue<RolldownPlugin<A>> | {
|
|
824
|
+
name: string
|
|
825
|
+
} | false | RolldownPluginOption[]>;
|
|
823
826
|
type RolldownOutputPlugin = OutputPlugin | BuiltinPlugin;
|
|
824
|
-
type RolldownOutputPluginOption = MaybePromise<NullValue<RolldownOutputPlugin> |
|
|
827
|
+
type RolldownOutputPluginOption = MaybePromise<NullValue<RolldownOutputPlugin> | {
|
|
828
|
+
name: string
|
|
829
|
+
} | false | RolldownOutputPluginOption[]>;
|
|
825
830
|
|
|
826
831
|
//#endregion
|
|
827
832
|
//#region src/options/generated/checks-options.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __esm } from "./chunk--iN_1bjD.mjs";
|
|
2
|
-
import { init_rolldown, rolldown } from "./src-
|
|
2
|
+
import { init_rolldown, rolldown } from "./src-C3GKppgv.mjs";
|
|
3
3
|
import fs from "node:fs";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
const require_src = require('./src-B-PS8RBB.cjs');
|
|
1
|
+
const require_chunk = require('./chunk-DDkG_k5U.cjs');
|
|
2
|
+
const require_src = require('./src-CXlRt_uA.cjs');
|
|
4
3
|
const node_fs = require_chunk.__toESM(require("node:fs"));
|
|
5
4
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
6
5
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-
|
|
1
|
+
const require_chunk = require('./chunk-DDkG_k5U.cjs');
|
|
2
2
|
|
|
3
3
|
//#region src/webcontainer-fallback.js
|
|
4
4
|
var require_webcontainer_fallback = require_chunk.__commonJS({ "src/webcontainer-fallback.js"(exports, module) {
|
|
@@ -555,7 +555,7 @@ function augmentCodeLocation(properties, pos, source, id) {
|
|
|
555
555
|
}
|
|
556
556
|
|
|
557
557
|
//#endregion
|
|
558
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
558
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.70.0/node_modules/oxc-parser/wrap.mjs
|
|
559
559
|
function wrap$1(result) {
|
|
560
560
|
let program, module$1, comments, errors;
|
|
561
561
|
return {
|
|
@@ -564,7 +564,7 @@ var init_logs = __esm({ "src/log/logs.ts"() {
|
|
|
564
564
|
} });
|
|
565
565
|
|
|
566
566
|
//#endregion
|
|
567
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
567
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.70.0/node_modules/oxc-parser/wrap.mjs
|
|
568
568
|
function wrap$1(result) {
|
|
569
569
|
let program, module$1, comments, errors;
|
|
570
570
|
return {
|
|
@@ -599,7 +599,7 @@ function applyFix(program, fixPath) {
|
|
|
599
599
|
node.value = RegExp(node.regex.pattern, node.regex.flags);
|
|
600
600
|
} catch (_err) {}
|
|
601
601
|
}
|
|
602
|
-
var init_wrap = __esm({ "../../node_modules/.pnpm/oxc-parser@0.
|
|
602
|
+
var init_wrap = __esm({ "../../node_modules/.pnpm/oxc-parser@0.70.0/node_modules/oxc-parser/wrap.mjs"() {} });
|
|
603
603
|
|
|
604
604
|
//#endregion
|
|
605
605
|
//#region src/parse-ast-index.ts
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
const require_chunk = require('./chunk-qZFfknuJ.cjs');
|
|
1
|
+
const require_chunk = require('./chunk-DDkG_k5U.cjs');
|
|
3
2
|
const node_process = require_chunk.__toESM(require("node:process"));
|
|
4
3
|
const node_util = require_chunk.__toESM(require("node:util"));
|
|
5
4
|
const node_tty = require_chunk.__toESM(require("node:tty"));
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { __esm, __toESM } from "./chunk--iN_1bjD.mjs";
|
|
2
|
-
import { augmentCodeLocation, error, init_logs, init_parse_ast_index, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst, require_binding } from "./parse-ast-index-
|
|
2
|
+
import { augmentCodeLocation, error, init_logs, init_parse_ast_index, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst, require_binding } from "./parse-ast-index-_P4eJuv5.mjs";
|
|
3
3
|
import { arraify, init_misc, isNullish, noop, unimplemented, unreachable, unsupported } from "./misc-DGAe2XOW.mjs";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import colors from "ansis";
|
|
6
6
|
import * as filter from "@rolldown/pluginutils";
|
|
7
|
-
import
|
|
7
|
+
import os from "node:os";
|
|
8
8
|
import { Worker } from "node:worker_threads";
|
|
9
9
|
|
|
10
10
|
//#region package.json
|
|
11
|
-
var version = "1.0.0-beta.8-commit.
|
|
11
|
+
var version = "1.0.0-beta.8-commit.53a64a8";
|
|
12
12
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
@@ -1569,11 +1569,7 @@ function convertAction(jsonSchema, valibotAction, config) {
|
|
|
1569
1569
|
jsonSchema.const = valibotAction.requirement;
|
|
1570
1570
|
break;
|
|
1571
1571
|
}
|
|
1572
|
-
default: handleError(
|
|
1573
|
-
// @ts-expect-error
|
|
1574
|
-
`The "${valibotAction.type}" action cannot be converted to JSON Schema.`,
|
|
1575
|
-
config
|
|
1576
|
-
);
|
|
1572
|
+
default: handleError(`The "${valibotAction.type}" action cannot be converted to JSON Schema.`, config);
|
|
1577
1573
|
}
|
|
1578
1574
|
return jsonSchema;
|
|
1579
1575
|
}
|
|
@@ -1706,11 +1702,7 @@ function convertSchema(jsonSchema, valibotSchema, config, context) {
|
|
|
1706
1702
|
jsonSchema.$ref = `#/$defs/${referenceId2}`;
|
|
1707
1703
|
break;
|
|
1708
1704
|
}
|
|
1709
|
-
default: handleError(
|
|
1710
|
-
// @ts-expect-error
|
|
1711
|
-
`The "${valibotSchema.type}" schema cannot be converted to JSON Schema.`,
|
|
1712
|
-
config
|
|
1713
|
-
);
|
|
1705
|
+
default: handleError(`The "${valibotSchema.type}" schema cannot be converted to JSON Schema.`, config);
|
|
1714
1706
|
}
|
|
1715
1707
|
return jsonSchema;
|
|
1716
1708
|
}
|
|
@@ -1722,21 +1714,9 @@ function toJsonSchema(schema, config) {
|
|
|
1722
1714
|
};
|
|
1723
1715
|
if (config?.definitions) {
|
|
1724
1716
|
for (const key in config.definitions) context.referenceMap.set(config.definitions[key], key);
|
|
1725
|
-
for (const key in config.definitions) context.definitions[key] = convertSchema(
|
|
1726
|
-
{},
|
|
1727
|
-
// @ts-expect-error
|
|
1728
|
-
config.definitions[key],
|
|
1729
|
-
config,
|
|
1730
|
-
context
|
|
1731
|
-
);
|
|
1717
|
+
for (const key in config.definitions) context.definitions[key] = convertSchema({}, config.definitions[key], config, context);
|
|
1732
1718
|
}
|
|
1733
|
-
const jsonSchema = convertSchema(
|
|
1734
|
-
{ $schema: "http://json-schema.org/draft-07/schema#" },
|
|
1735
|
-
// @ts-expect-error
|
|
1736
|
-
schema,
|
|
1737
|
-
config,
|
|
1738
|
-
context
|
|
1739
|
-
);
|
|
1719
|
+
const jsonSchema = convertSchema({ $schema: "http://json-schema.org/draft-07/schema#" }, schema, config, context);
|
|
1740
1720
|
if (context.referenceMap.size) jsonSchema.$defs = context.definitions;
|
|
1741
1721
|
return jsonSchema;
|
|
1742
1722
|
}
|
|
@@ -4020,6 +4000,7 @@ var init_transform_rendered_module = __esm({ "src/utils/transform-rendered-modul
|
|
|
4020
4000
|
function transformRenderedChunk(chunk) {
|
|
4021
4001
|
let modules = null;
|
|
4022
4002
|
return {
|
|
4003
|
+
type: "chunk",
|
|
4023
4004
|
get name() {
|
|
4024
4005
|
return chunk.name;
|
|
4025
4006
|
},
|
|
@@ -5449,7 +5430,7 @@ async function initializeParallelPlugins(plugins) {
|
|
|
5449
5430
|
});
|
|
5450
5431
|
}
|
|
5451
5432
|
if (pluginInfos.length <= 0) return void 0;
|
|
5452
|
-
const count =
|
|
5433
|
+
const count = availableParallelism();
|
|
5453
5434
|
const parallelJsPluginRegistry = new import_binding$2.ParallelJsPluginRegistry(count);
|
|
5454
5435
|
const registryId = parallelJsPluginRegistry.id;
|
|
5455
5436
|
const workers = await initializeWorkers(registryId, count, pluginInfos);
|
|
@@ -5487,9 +5468,19 @@ async function initializeWorker(registryId, pluginInfos, threadNumber) {
|
|
|
5487
5468
|
throw e$5;
|
|
5488
5469
|
}
|
|
5489
5470
|
}
|
|
5490
|
-
var import_binding$2;
|
|
5471
|
+
var import_binding$2, availableParallelism;
|
|
5491
5472
|
var init_initialize_parallel_plugins = __esm({ "src/utils/initialize-parallel-plugins.ts"() {
|
|
5492
5473
|
import_binding$2 = __toESM(require_binding());
|
|
5474
|
+
availableParallelism = () => {
|
|
5475
|
+
let availableParallelism$1 = 1;
|
|
5476
|
+
try {
|
|
5477
|
+
availableParallelism$1 = os.availableParallelism();
|
|
5478
|
+
} catch {
|
|
5479
|
+
const cpus = os.cpus();
|
|
5480
|
+
if (Array.isArray(cpus) && cpus.length > 0) availableParallelism$1 = cpus.length;
|
|
5481
|
+
}
|
|
5482
|
+
return Math.min(availableParallelism$1, 8);
|
|
5483
|
+
};
|
|
5493
5484
|
} });
|
|
5494
5485
|
|
|
5495
5486
|
//#endregion
|
|
@@ -5655,11 +5646,7 @@ var init_watch_emitter = __esm({ "src/api/watch/watch-emitter.ts"() {
|
|
|
5655
5646
|
listeners = new Map();
|
|
5656
5647
|
timer;
|
|
5657
5648
|
constructor() {
|
|
5658
|
-
this.timer = setInterval(
|
|
5659
|
-
() => {},
|
|
5660
|
-
1e9
|
|
5661
|
-
/* Low power usage */
|
|
5662
|
-
);
|
|
5649
|
+
this.timer = setInterval(() => {}, 1e9);
|
|
5663
5650
|
}
|
|
5664
5651
|
on(event, listener) {
|
|
5665
5652
|
const listeners = this.listeners.get(event);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const require_misc = require('./misc-BWx4LNta.cjs');
|
|
1
|
+
const require_chunk = require('./chunk-DDkG_k5U.cjs');
|
|
2
|
+
const require_parse_ast_index = require('./parse-ast-index-CtQjLtqj.cjs');
|
|
3
|
+
const require_misc = require('./misc-BKp5iIef.cjs');
|
|
5
4
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
6
5
|
const ansis = require_chunk.__toESM(require("ansis"));
|
|
7
6
|
const __rolldown_pluginutils = require_chunk.__toESM(require("@rolldown/pluginutils"));
|
|
@@ -9,7 +8,7 @@ const node_os = require_chunk.__toESM(require("node:os"));
|
|
|
9
8
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
10
9
|
|
|
11
10
|
//#region package.json
|
|
12
|
-
var version = "1.0.0-beta.8-commit.
|
|
11
|
+
var version = "1.0.0-beta.8-commit.53a64a8";
|
|
13
12
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
14
13
|
|
|
15
14
|
//#endregion
|
|
@@ -1526,11 +1525,7 @@ function convertAction(jsonSchema, valibotAction, config) {
|
|
|
1526
1525
|
jsonSchema.const = valibotAction.requirement;
|
|
1527
1526
|
break;
|
|
1528
1527
|
}
|
|
1529
|
-
default: handleError(
|
|
1530
|
-
// @ts-expect-error
|
|
1531
|
-
`The "${valibotAction.type}" action cannot be converted to JSON Schema.`,
|
|
1532
|
-
config
|
|
1533
|
-
);
|
|
1528
|
+
default: handleError(`The "${valibotAction.type}" action cannot be converted to JSON Schema.`, config);
|
|
1534
1529
|
}
|
|
1535
1530
|
return jsonSchema;
|
|
1536
1531
|
}
|
|
@@ -1664,11 +1659,7 @@ function convertSchema(jsonSchema, valibotSchema, config, context) {
|
|
|
1664
1659
|
jsonSchema.$ref = `#/$defs/${referenceId2}`;
|
|
1665
1660
|
break;
|
|
1666
1661
|
}
|
|
1667
|
-
default: handleError(
|
|
1668
|
-
// @ts-expect-error
|
|
1669
|
-
`The "${valibotSchema.type}" schema cannot be converted to JSON Schema.`,
|
|
1670
|
-
config
|
|
1671
|
-
);
|
|
1662
|
+
default: handleError(`The "${valibotSchema.type}" schema cannot be converted to JSON Schema.`, config);
|
|
1672
1663
|
}
|
|
1673
1664
|
return jsonSchema;
|
|
1674
1665
|
}
|
|
@@ -1680,21 +1671,9 @@ function toJsonSchema(schema, config) {
|
|
|
1680
1671
|
};
|
|
1681
1672
|
if (config?.definitions) {
|
|
1682
1673
|
for (const key in config.definitions) context.referenceMap.set(config.definitions[key], key);
|
|
1683
|
-
for (const key in config.definitions) context.definitions[key] = convertSchema(
|
|
1684
|
-
{},
|
|
1685
|
-
// @ts-expect-error
|
|
1686
|
-
config.definitions[key],
|
|
1687
|
-
config,
|
|
1688
|
-
context
|
|
1689
|
-
);
|
|
1674
|
+
for (const key in config.definitions) context.definitions[key] = convertSchema({}, config.definitions[key], config, context);
|
|
1690
1675
|
}
|
|
1691
|
-
const jsonSchema = convertSchema(
|
|
1692
|
-
{ $schema: "http://json-schema.org/draft-07/schema#" },
|
|
1693
|
-
// @ts-expect-error
|
|
1694
|
-
schema,
|
|
1695
|
-
config,
|
|
1696
|
-
context
|
|
1697
|
-
);
|
|
1676
|
+
const jsonSchema = convertSchema({ $schema: "http://json-schema.org/draft-07/schema#" }, schema, config, context);
|
|
1698
1677
|
if (context.referenceMap.size) jsonSchema.$defs = context.definitions;
|
|
1699
1678
|
return jsonSchema;
|
|
1700
1679
|
}
|
|
@@ -2746,6 +2725,7 @@ function transformToRenderedModule(bindingRenderedModule) {
|
|
|
2746
2725
|
function transformRenderedChunk(chunk) {
|
|
2747
2726
|
let modules = null;
|
|
2748
2727
|
return {
|
|
2728
|
+
type: "chunk",
|
|
2749
2729
|
get name() {
|
|
2750
2730
|
return chunk.name;
|
|
2751
2731
|
},
|
|
@@ -4103,7 +4083,7 @@ async function initializeParallelPlugins(plugins) {
|
|
|
4103
4083
|
});
|
|
4104
4084
|
}
|
|
4105
4085
|
if (pluginInfos.length <= 0) return void 0;
|
|
4106
|
-
const count =
|
|
4086
|
+
const count = availableParallelism();
|
|
4107
4087
|
const parallelJsPluginRegistry = new import_binding$2.ParallelJsPluginRegistry(count);
|
|
4108
4088
|
const registryId = parallelJsPluginRegistry.id;
|
|
4109
4089
|
const workers = await initializeWorkers(registryId, count, pluginInfos);
|
|
@@ -4141,6 +4121,16 @@ async function initializeWorker(registryId, pluginInfos, threadNumber) {
|
|
|
4141
4121
|
throw e;
|
|
4142
4122
|
}
|
|
4143
4123
|
}
|
|
4124
|
+
const availableParallelism = () => {
|
|
4125
|
+
let availableParallelism$1 = 1;
|
|
4126
|
+
try {
|
|
4127
|
+
availableParallelism$1 = node_os.default.availableParallelism();
|
|
4128
|
+
} catch {
|
|
4129
|
+
const cpus = node_os.default.cpus();
|
|
4130
|
+
if (Array.isArray(cpus) && cpus.length > 0) availableParallelism$1 = cpus.length;
|
|
4131
|
+
}
|
|
4132
|
+
return Math.min(availableParallelism$1, 8);
|
|
4133
|
+
};
|
|
4144
4134
|
|
|
4145
4135
|
//#endregion
|
|
4146
4136
|
//#region src/utils/create-bundler-option.ts
|
|
@@ -4273,11 +4263,7 @@ var WatcherEmitter = class {
|
|
|
4273
4263
|
listeners = new Map();
|
|
4274
4264
|
timer;
|
|
4275
4265
|
constructor() {
|
|
4276
|
-
this.timer = setInterval(
|
|
4277
|
-
() => {},
|
|
4278
|
-
1e9
|
|
4279
|
-
/* Low power usage */
|
|
4280
|
-
);
|
|
4266
|
+
this.timer = setInterval(() => {}, 1e9);
|
|
4281
4267
|
}
|
|
4282
4268
|
on(event, listener) {
|
|
4283
4269
|
const listeners = this.listeners.get(event);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown",
|
|
3
|
-
"version": "1.0.0-beta.8-commit.
|
|
3
|
+
"version": "1.0.0-beta.8-commit.53a64a8",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"homepage": "https://rolldown.rs/",
|
|
@@ -90,12 +90,12 @@
|
|
|
90
90
|
"dtsHeader": "type MaybePromise<T> = T | Promise<T>\ntype Nullable<T> = T | null | undefined\ntype VoidNullable<T = void> = T | null | undefined | void\nexport type BindingStringOrRegex = string | RegExp\n\n"
|
|
91
91
|
},
|
|
92
92
|
"dependencies": {
|
|
93
|
-
"@oxc-project/types": "0.
|
|
93
|
+
"@oxc-project/types": "0.70.0",
|
|
94
94
|
"ansis": "^4.0.0",
|
|
95
|
-
"@rolldown/pluginutils": "1.0.0-beta.8-commit.
|
|
95
|
+
"@rolldown/pluginutils": "1.0.0-beta.8-commit.53a64a8"
|
|
96
96
|
},
|
|
97
97
|
"peerDependencies": {
|
|
98
|
-
"@oxc-project/runtime": "0.
|
|
98
|
+
"@oxc-project/runtime": "0.70.0"
|
|
99
99
|
},
|
|
100
100
|
"peerDependenciesMeta": {
|
|
101
101
|
"@oxc-project/runtime": {
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"fs-extra": "^11.2.0",
|
|
116
116
|
"glob": "^11.0.0",
|
|
117
117
|
"locate-character": "^3.0.0",
|
|
118
|
-
"oxc-parser": "0.
|
|
118
|
+
"oxc-parser": "0.70.0",
|
|
119
119
|
"pathe": "^2.0.3",
|
|
120
120
|
"remeda": "^2.10.0",
|
|
121
121
|
"rolldown-plugin-dts": "^0.7.12",
|
|
@@ -128,21 +128,21 @@
|
|
|
128
128
|
"unbuild": "^3.0.0",
|
|
129
129
|
"valibot": "1.0.0",
|
|
130
130
|
"@rolldown/testing": "0.0.1",
|
|
131
|
-
"rolldown": "1.0.0-beta.8-commit.
|
|
131
|
+
"rolldown": "1.0.0-beta.8-commit.53a64a8"
|
|
132
132
|
},
|
|
133
133
|
"optionalDependencies": {
|
|
134
|
-
"@rolldown/binding-darwin-arm64": "1.0.0-beta.8-commit.
|
|
135
|
-
"@rolldown/binding-
|
|
136
|
-
"@rolldown/binding-
|
|
137
|
-
"@rolldown/binding-
|
|
138
|
-
"@rolldown/binding-linux-arm64-
|
|
139
|
-
"@rolldown/binding-linux-
|
|
140
|
-
"@rolldown/binding-
|
|
141
|
-
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.8-commit.
|
|
142
|
-
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.8-commit.
|
|
143
|
-
"@rolldown/binding-
|
|
144
|
-
"@rolldown/binding-
|
|
145
|
-
"@rolldown/binding-win32-
|
|
134
|
+
"@rolldown/binding-darwin-arm64": "1.0.0-beta.8-commit.53a64a8",
|
|
135
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.8-commit.53a64a8",
|
|
136
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.8-commit.53a64a8",
|
|
137
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.8-commit.53a64a8",
|
|
138
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.8-commit.53a64a8",
|
|
139
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.8-commit.53a64a8",
|
|
140
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.8-commit.53a64a8",
|
|
141
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.8-commit.53a64a8",
|
|
142
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.8-commit.53a64a8",
|
|
143
|
+
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.8-commit.53a64a8",
|
|
144
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.8-commit.53a64a8",
|
|
145
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.8-commit.53a64a8"
|
|
146
146
|
},
|
|
147
147
|
"scripts": {
|
|
148
148
|
"# Scrips for binding #": "_",
|