rolldown 1.0.0-beta.8-commit.709eb63 → 1.0.0-beta.8-commit.a29b7fb
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 +9 -36
- package/dist/cli.mjs +6 -20
- package/dist/config.cjs +3 -3
- package/dist/config.d.cts +2 -2
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +3 -3
- package/dist/experimental-index.cjs +2 -2
- package/dist/experimental-index.d.cts +2 -2
- package/dist/experimental-index.d.mts +2 -2
- package/dist/experimental-index.mjs +2 -2
- package/dist/filter-index.d.cts +2 -2
- package/dist/filter-index.d.mts +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/parallel-plugin-worker.cjs +3 -14
- package/dist/parallel-plugin-worker.mjs +3 -14
- 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-CXGXLPk3.d.cts → binding.d-B2S9REyA.d.cts} +32 -26
- package/dist/shared/{binding.d-DwjGbo57.d.mts → binding.d-CxjatXSj.d.mts} +32 -26
- package/dist/shared/{define-config.d-fxuJmTfB.d.mts → define-config.d-BG6egsFz.d.mts} +11 -8
- package/dist/shared/{define-config.d-DmtANgju.d.cts → define-config.d-WoAESKk3.d.cts} +11 -8
- package/dist/shared/{load-config-CNOQv_mv.mjs → load-config-B7I-Vn3Q.mjs} +1 -1
- package/dist/shared/{load-config-ChFIKTAX.cjs → load-config-BuenfyXI.cjs} +1 -1
- package/dist/shared/{parse-ast-index-BRsUTsn7.cjs → parse-ast-index-CtQjLtqj.cjs} +1 -1
- package/dist/shared/{parse-ast-index-CMF-2Ku4.mjs → parse-ast-index-_P4eJuv5.mjs} +2 -2
- package/dist/shared/{src-RBXxNpra.cjs → src-BzX7ZA4t.cjs} +21 -49
- package/dist/shared/{src-CJfH8uNa.mjs → src-KcnYDM-0.mjs} +24 -52
- package/package.json +18 -18
package/dist/cli.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
3
|
-
require('./shared/parse-ast-index-
|
|
2
|
+
const require_src = require('./shared/src-BzX7ZA4t.cjs');
|
|
3
|
+
require('./shared/parse-ast-index-CtQjLtqj.cjs');
|
|
4
4
|
const require_misc = require('./shared/misc-BKp5iIef.cjs');
|
|
5
|
-
const require_load_config = require('./shared/load-config-
|
|
5
|
+
const require_load_config = require('./shared/load-config-BuenfyXI.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-CxjDC0Gn.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-KcnYDM-0.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-B7I-Vn3Q.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,7 +1,7 @@
|
|
|
1
|
-
const require_src = require('./shared/src-
|
|
2
|
-
require('./shared/parse-ast-index-
|
|
1
|
+
const require_src = require('./shared/src-BzX7ZA4t.cjs');
|
|
2
|
+
require('./shared/parse-ast-index-CtQjLtqj.cjs');
|
|
3
3
|
require('./shared/misc-BKp5iIef.cjs');
|
|
4
|
-
const require_load_config = require('./shared/load-config-
|
|
4
|
+
const require_load_config = require('./shared/load-config-BuenfyXI.cjs');
|
|
5
5
|
|
|
6
6
|
//#region src/config.ts
|
|
7
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-B2S9REyA.cjs";
|
|
2
|
+
import { ConfigExport, defineConfig } from "./shared/define-config.d-WoAESKk3.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-CxjatXSj.mjs";
|
|
2
|
+
import { ConfigExport, defineConfig$1 as defineConfig } from "./shared/define-config.d-BG6egsFz.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-KcnYDM-0.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-B7I-Vn3Q.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/config.ts
|
|
7
7
|
init_define_config();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
3
|
-
const require_parse_ast_index = require('./shared/parse-ast-index-
|
|
2
|
+
const require_src = require('./shared/src-BzX7ZA4t.cjs');
|
|
3
|
+
const require_parse_ast_index = require('./shared/parse-ast-index-CtQjLtqj.cjs');
|
|
4
4
|
require('./shared/misc-BKp5iIef.cjs');
|
|
5
5
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
6
6
|
|
|
@@ -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-B2S9REyA.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-WoAESKk3.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-CxjatXSj.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-BG6egsFz.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-KcnYDM-0.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.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-B2S9REyA.cjs";
|
|
2
|
+
import { withFilter } from "./shared/define-config.d-WoAESKk3.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-CxjatXSj.mjs";
|
|
2
|
+
import { withFilter } from "./shared/define-config.d-BG6egsFz.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,5 +1,5 @@
|
|
|
1
|
-
const require_src = require('./shared/src-
|
|
2
|
-
require('./shared/parse-ast-index-
|
|
1
|
+
const require_src = require('./shared/src-BzX7ZA4t.cjs');
|
|
2
|
+
require('./shared/parse-ast-index-CtQjLtqj.cjs');
|
|
3
3
|
require('./shared/misc-BKp5iIef.cjs');
|
|
4
4
|
|
|
5
5
|
exports.VERSION = require_src.VERSION;
|
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-B2S9REyA.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-WoAESKk3.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-CxjatXSj.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-BG6egsFz.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-KcnYDM-0.mjs";
|
|
2
|
+
import "./shared/parse-ast-index-_P4eJuv5.mjs";
|
|
3
3
|
import "./shared/misc-DGAe2XOW.mjs";
|
|
4
4
|
|
|
5
5
|
init_src();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
3
|
-
const require_parse_ast_index = require('./shared/parse-ast-index-
|
|
2
|
+
const require_src = require('./shared/src-BzX7ZA4t.cjs');
|
|
3
|
+
const require_parse_ast_index = require('./shared/parse-ast-index-CtQjLtqj.cjs');
|
|
4
4
|
require('./shared/misc-BKp5iIef.cjs');
|
|
5
5
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
6
6
|
|
|
@@ -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-KcnYDM-0.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);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding.d-
|
|
2
|
-
import { MaybePromise, Plugin } from "./shared/define-config.d-
|
|
1
|
+
import "./shared/binding.d-B2S9REyA.cjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config.d-WoAESKk3.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-CxjatXSj.mjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config.d-BG6egsFz.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,6 +179,8 @@ interface BindingAdvancedChunksOptions {
|
|
|
179
179
|
maxModuleSize?: number
|
|
180
180
|
}
|
|
181
181
|
interface BindingAssetPluginConfig {
|
|
182
|
+
isServer?: boolean
|
|
183
|
+
urlBase?: string
|
|
182
184
|
publicDir?: string
|
|
183
185
|
assetsInclude?: Array<BindingStringOrRegex>
|
|
184
186
|
}
|
|
@@ -196,23 +198,25 @@ interface BindingBuiltinPlugin {
|
|
|
196
198
|
__name: BindingBuiltinPluginName
|
|
197
199
|
options?: unknown
|
|
198
200
|
}
|
|
199
|
-
type BindingBuiltinPluginName = 'builtin:
|
|
200
|
-
'builtin:
|
|
201
|
+
type BindingBuiltinPluginName = 'builtin:alias'|
|
|
202
|
+
'builtin:asset'|
|
|
203
|
+
'builtin:asset-import-meta-url'|
|
|
204
|
+
'builtin:build-import-analysis'|
|
|
201
205
|
'builtin:dynamic-import-vars'|
|
|
202
|
-
'builtin:
|
|
203
|
-
'builtin:
|
|
204
|
-
'builtin:load-fallback'|
|
|
205
|
-
'builtin:transform'|
|
|
206
|
-
'builtin:wasm-fallback'|
|
|
207
|
-
'builtin:alias'|
|
|
206
|
+
'builtin:import-glob'|
|
|
207
|
+
'builtin:isolated-declaration'|
|
|
208
208
|
'builtin:json'|
|
|
209
|
-
'builtin:
|
|
210
|
-
'builtin:
|
|
211
|
-
'builtin:vite-resolve'|
|
|
209
|
+
'builtin:load-fallback'|
|
|
210
|
+
'builtin:manifest'|
|
|
212
211
|
'builtin:module-federation'|
|
|
213
|
-
'builtin:
|
|
212
|
+
'builtin:module-preload-polyfill'|
|
|
214
213
|
'builtin:report'|
|
|
215
|
-
'builtin:
|
|
214
|
+
'builtin:replace'|
|
|
215
|
+
'builtin:transform'|
|
|
216
|
+
'builtin:vite-resolve'|
|
|
217
|
+
'builtin:wasm-fallback'|
|
|
218
|
+
'builtin:wasm-helper'|
|
|
219
|
+
'builtin:web-worker-post';
|
|
216
220
|
interface BindingBundlerOptions {
|
|
217
221
|
inputOptions: BindingInputOptions
|
|
218
222
|
outputOptions: BindingOutputOptions
|
|
@@ -272,16 +276,15 @@ interface BindingFilterToken {
|
|
|
272
276
|
kind: FilterTokenKind
|
|
273
277
|
payload?: BindingStringOrRegex | number | boolean
|
|
274
278
|
}
|
|
275
|
-
interface BindingGlobImportPluginConfig {
|
|
276
|
-
root?: string
|
|
277
|
-
restoreQueryExtension?: boolean
|
|
278
|
-
}
|
|
279
279
|
interface BindingHmrBoundaryOutput {
|
|
280
280
|
boundary: string
|
|
281
281
|
acceptedVia: string
|
|
282
282
|
}
|
|
283
283
|
interface BindingHmrOutput {
|
|
284
|
-
|
|
284
|
+
code: string
|
|
285
|
+
filename: string
|
|
286
|
+
sourcemap?: string
|
|
287
|
+
sourcemapFilename?: string
|
|
285
288
|
hmrBoundaries: Array<BindingHmrBoundaryOutput>
|
|
286
289
|
fullReload: boolean
|
|
287
290
|
firstInvalidatedBy?: string
|
|
@@ -323,6 +326,10 @@ interface BindingHookTransformOutput {
|
|
|
323
326
|
map?: BindingSourcemap
|
|
324
327
|
moduleType?: string
|
|
325
328
|
}
|
|
329
|
+
interface BindingImportGlobPluginConfig {
|
|
330
|
+
root?: string
|
|
331
|
+
restoreQueryExtension?: boolean
|
|
332
|
+
}
|
|
326
333
|
interface BindingInjectImportNamed {
|
|
327
334
|
tagNamed: true
|
|
328
335
|
imported: string
|
|
@@ -443,9 +450,6 @@ interface BindingModuleFederationPluginOption {
|
|
|
443
450
|
manifest?: BindingMfManifest
|
|
444
451
|
getPublicPath?: string
|
|
445
452
|
}
|
|
446
|
-
interface BindingModulePreloadPolyfillPluginConfig {
|
|
447
|
-
skip?: boolean
|
|
448
|
-
}
|
|
449
453
|
interface BindingModules {
|
|
450
454
|
values: Array<BindingRenderedModule>
|
|
451
455
|
keys: Array<string>
|
|
@@ -487,7 +491,7 @@ interface BindingOutputOptions {
|
|
|
487
491
|
legalComments?: 'none' | 'inline'
|
|
488
492
|
polyfillRequire?: boolean
|
|
489
493
|
preserveModules?: boolean
|
|
490
|
-
target?: string
|
|
494
|
+
target?: string | Array<string>
|
|
491
495
|
virtualDirname?: string
|
|
492
496
|
}
|
|
493
497
|
interface BindingPluginContextResolvedId {
|
|
@@ -573,7 +577,7 @@ interface BindingReplacePluginConfig {
|
|
|
573
577
|
objectGuards?: boolean
|
|
574
578
|
sourcemap?: boolean
|
|
575
579
|
}
|
|
576
|
-
interface
|
|
580
|
+
interface BindingReporterPluginConfig {
|
|
577
581
|
isTty: boolean
|
|
578
582
|
isLib: boolean
|
|
579
583
|
assetsDir: string
|
|
@@ -1242,9 +1246,10 @@ interface OxcError {
|
|
|
1242
1246
|
codeframe?: string
|
|
1243
1247
|
}
|
|
1244
1248
|
interface ParserOptions {
|
|
1245
|
-
sourceType?: 'script' | 'module' | 'unambiguous' | undefined
|
|
1246
1249
|
/** Treat the source text as `js`, `jsx`, `ts`, or `tsx`. */
|
|
1247
1250
|
lang?: 'js' | 'jsx' | 'ts' | 'tsx'
|
|
1251
|
+
/** Treat the source text as `script` or `module` code. */
|
|
1252
|
+
sourceType?: 'script' | 'module' | 'unambiguous' | undefined
|
|
1248
1253
|
/**
|
|
1249
1254
|
* Return an AST which includes TypeScript-related properties, or excludes them.
|
|
1250
1255
|
*
|
|
@@ -1451,9 +1456,10 @@ declare function transform(filename: string, sourceText: string, options?: Trans
|
|
|
1451
1456
|
* @see {@link transform}
|
|
1452
1457
|
*/
|
|
1453
1458
|
interface TransformOptions {
|
|
1454
|
-
sourceType?: 'script' | 'module' | 'unambiguous' | undefined
|
|
1455
1459
|
/** Treat the source text as `js`, `jsx`, `ts`, or `tsx`. */
|
|
1456
1460
|
lang?: 'js' | 'jsx' | 'ts' | 'tsx'
|
|
1461
|
+
/** Treat the source text as `script` or `module` code. */
|
|
1462
|
+
sourceType?: 'script' | 'module' | 'unambiguous' | undefined
|
|
1457
1463
|
/**
|
|
1458
1464
|
* The current working directory. Used to resolve relative paths in other
|
|
1459
1465
|
* options.
|
|
@@ -1654,4 +1660,4 @@ interface ValueSpan {
|
|
|
1654
1660
|
}
|
|
1655
1661
|
|
|
1656
1662
|
//#endregion
|
|
1657
|
-
export { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig,
|
|
1663
|
+
export { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingRemote, BindingRenderedChunk, BindingReplacePluginConfig, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingTransformPluginConfig, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ParseResult, ParserOptions, PreRenderedChunk, ResolveResult, ResolverFactory, TransformOptions, TransformResult as TransformResult$1, isolatedDeclaration, moduleRunnerTransform, transform };
|
|
@@ -179,6 +179,8 @@ interface BindingAdvancedChunksOptions {
|
|
|
179
179
|
maxModuleSize?: number
|
|
180
180
|
}
|
|
181
181
|
interface BindingAssetPluginConfig {
|
|
182
|
+
isServer?: boolean
|
|
183
|
+
urlBase?: string
|
|
182
184
|
publicDir?: string
|
|
183
185
|
assetsInclude?: Array<BindingStringOrRegex>
|
|
184
186
|
}
|
|
@@ -196,23 +198,25 @@ interface BindingBuiltinPlugin {
|
|
|
196
198
|
__name: BindingBuiltinPluginName
|
|
197
199
|
options?: unknown
|
|
198
200
|
}
|
|
199
|
-
type BindingBuiltinPluginName = 'builtin:
|
|
200
|
-
'builtin:
|
|
201
|
+
type BindingBuiltinPluginName = 'builtin:alias'|
|
|
202
|
+
'builtin:asset'|
|
|
203
|
+
'builtin:asset-import-meta-url'|
|
|
204
|
+
'builtin:build-import-analysis'|
|
|
201
205
|
'builtin:dynamic-import-vars'|
|
|
202
|
-
'builtin:
|
|
203
|
-
'builtin:
|
|
204
|
-
'builtin:load-fallback'|
|
|
205
|
-
'builtin:transform'|
|
|
206
|
-
'builtin:wasm-fallback'|
|
|
207
|
-
'builtin:alias'|
|
|
206
|
+
'builtin:import-glob'|
|
|
207
|
+
'builtin:isolated-declaration'|
|
|
208
208
|
'builtin:json'|
|
|
209
|
-
'builtin:
|
|
210
|
-
'builtin:
|
|
211
|
-
'builtin:vite-resolve'|
|
|
209
|
+
'builtin:load-fallback'|
|
|
210
|
+
'builtin:manifest'|
|
|
212
211
|
'builtin:module-federation'|
|
|
213
|
-
'builtin:
|
|
212
|
+
'builtin:module-preload-polyfill'|
|
|
214
213
|
'builtin:report'|
|
|
215
|
-
'builtin:
|
|
214
|
+
'builtin:replace'|
|
|
215
|
+
'builtin:transform'|
|
|
216
|
+
'builtin:vite-resolve'|
|
|
217
|
+
'builtin:wasm-fallback'|
|
|
218
|
+
'builtin:wasm-helper'|
|
|
219
|
+
'builtin:web-worker-post';
|
|
216
220
|
interface BindingBundlerOptions {
|
|
217
221
|
inputOptions: BindingInputOptions
|
|
218
222
|
outputOptions: BindingOutputOptions
|
|
@@ -272,16 +276,15 @@ interface BindingFilterToken {
|
|
|
272
276
|
kind: FilterTokenKind
|
|
273
277
|
payload?: BindingStringOrRegex | number | boolean
|
|
274
278
|
}
|
|
275
|
-
interface BindingGlobImportPluginConfig {
|
|
276
|
-
root?: string
|
|
277
|
-
restoreQueryExtension?: boolean
|
|
278
|
-
}
|
|
279
279
|
interface BindingHmrBoundaryOutput {
|
|
280
280
|
boundary: string
|
|
281
281
|
acceptedVia: string
|
|
282
282
|
}
|
|
283
283
|
interface BindingHmrOutput {
|
|
284
|
-
|
|
284
|
+
code: string
|
|
285
|
+
filename: string
|
|
286
|
+
sourcemap?: string
|
|
287
|
+
sourcemapFilename?: string
|
|
285
288
|
hmrBoundaries: Array<BindingHmrBoundaryOutput>
|
|
286
289
|
fullReload: boolean
|
|
287
290
|
firstInvalidatedBy?: string
|
|
@@ -323,6 +326,10 @@ interface BindingHookTransformOutput {
|
|
|
323
326
|
map?: BindingSourcemap
|
|
324
327
|
moduleType?: string
|
|
325
328
|
}
|
|
329
|
+
interface BindingImportGlobPluginConfig {
|
|
330
|
+
root?: string
|
|
331
|
+
restoreQueryExtension?: boolean
|
|
332
|
+
}
|
|
326
333
|
interface BindingInjectImportNamed {
|
|
327
334
|
tagNamed: true
|
|
328
335
|
imported: string
|
|
@@ -443,9 +450,6 @@ interface BindingModuleFederationPluginOption {
|
|
|
443
450
|
manifest?: BindingMfManifest
|
|
444
451
|
getPublicPath?: string
|
|
445
452
|
}
|
|
446
|
-
interface BindingModulePreloadPolyfillPluginConfig {
|
|
447
|
-
skip?: boolean
|
|
448
|
-
}
|
|
449
453
|
interface BindingModules {
|
|
450
454
|
values: Array<BindingRenderedModule>
|
|
451
455
|
keys: Array<string>
|
|
@@ -487,7 +491,7 @@ interface BindingOutputOptions {
|
|
|
487
491
|
legalComments?: 'none' | 'inline'
|
|
488
492
|
polyfillRequire?: boolean
|
|
489
493
|
preserveModules?: boolean
|
|
490
|
-
target?: string
|
|
494
|
+
target?: string | Array<string>
|
|
491
495
|
virtualDirname?: string
|
|
492
496
|
}
|
|
493
497
|
interface BindingPluginContextResolvedId {
|
|
@@ -573,7 +577,7 @@ interface BindingReplacePluginConfig {
|
|
|
573
577
|
objectGuards?: boolean
|
|
574
578
|
sourcemap?: boolean
|
|
575
579
|
}
|
|
576
|
-
interface
|
|
580
|
+
interface BindingReporterPluginConfig {
|
|
577
581
|
isTty: boolean
|
|
578
582
|
isLib: boolean
|
|
579
583
|
assetsDir: string
|
|
@@ -1242,9 +1246,10 @@ interface OxcError {
|
|
|
1242
1246
|
codeframe?: string
|
|
1243
1247
|
}
|
|
1244
1248
|
interface ParserOptions {
|
|
1245
|
-
sourceType?: 'script' | 'module' | 'unambiguous' | undefined
|
|
1246
1249
|
/** Treat the source text as `js`, `jsx`, `ts`, or `tsx`. */
|
|
1247
1250
|
lang?: 'js' | 'jsx' | 'ts' | 'tsx'
|
|
1251
|
+
/** Treat the source text as `script` or `module` code. */
|
|
1252
|
+
sourceType?: 'script' | 'module' | 'unambiguous' | undefined
|
|
1248
1253
|
/**
|
|
1249
1254
|
* Return an AST which includes TypeScript-related properties, or excludes them.
|
|
1250
1255
|
*
|
|
@@ -1451,9 +1456,10 @@ declare function transform(filename: string, sourceText: string, options?: Trans
|
|
|
1451
1456
|
* @see {@link transform}
|
|
1452
1457
|
*/
|
|
1453
1458
|
interface TransformOptions {
|
|
1454
|
-
sourceType?: 'script' | 'module' | 'unambiguous' | undefined
|
|
1455
1459
|
/** Treat the source text as `js`, `jsx`, `ts`, or `tsx`. */
|
|
1456
1460
|
lang?: 'js' | 'jsx' | 'ts' | 'tsx'
|
|
1461
|
+
/** Treat the source text as `script` or `module` code. */
|
|
1462
|
+
sourceType?: 'script' | 'module' | 'unambiguous' | undefined
|
|
1457
1463
|
/**
|
|
1458
1464
|
* The current working directory. Used to resolve relative paths in other
|
|
1459
1465
|
* options.
|
|
@@ -1654,4 +1660,4 @@ interface ValueSpan {
|
|
|
1654
1660
|
}
|
|
1655
1661
|
|
|
1656
1662
|
//#endregion
|
|
1657
|
-
export { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig,
|
|
1663
|
+
export { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingRemote, BindingRenderedChunk, BindingReplacePluginConfig, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingTransformPluginConfig, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ParseResult, ParserOptions, PreRenderedChunk, ResolveResult, ResolverFactory, TransformOptions, TransformResult as TransformResult$1, isolatedDeclaration, moduleRunnerTransform, transform };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig,
|
|
1
|
+
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-CxjatXSj.mjs";
|
|
2
2
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
3
3
|
import { Program } from "@oxc-project/types";
|
|
4
4
|
|
|
@@ -137,7 +137,6 @@ interface PreRenderedAsset {
|
|
|
137
137
|
}
|
|
138
138
|
type AssetFileNamesFunction = (chunkInfo: PreRenderedAsset) => string;
|
|
139
139
|
type GlobalsFunction = (name: string) => string;
|
|
140
|
-
type ESTarget = "es6" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "es2023" | "es2024" | "esnext";
|
|
141
140
|
type MinifyOptions = BindingMinifyOptions;
|
|
142
141
|
interface OutputOptions {
|
|
143
142
|
dir?: string;
|
|
@@ -283,7 +282,7 @@ interface OutputOptions {
|
|
|
283
282
|
legalComments?: "none" | "inline";
|
|
284
283
|
plugins?: RolldownOutputPluginOption;
|
|
285
284
|
polyfillRequire?: boolean;
|
|
286
|
-
target?:
|
|
285
|
+
target?: string | string[];
|
|
287
286
|
hoistTransitiveImports?: false;
|
|
288
287
|
preserveModules?: boolean;
|
|
289
288
|
virtualDirname?: string;
|
|
@@ -617,10 +616,10 @@ declare class BuiltinPlugin {
|
|
|
617
616
|
_options?: unknown;
|
|
618
617
|
constructor(name: BindingBuiltinPluginName, _options?: unknown);
|
|
619
618
|
}
|
|
620
|
-
declare function modulePreloadPolyfillPlugin(
|
|
619
|
+
declare function modulePreloadPolyfillPlugin(): BuiltinPlugin;
|
|
621
620
|
declare function dynamicImportVarsPlugin(config?: BindingDynamicImportVarsPluginConfig): BuiltinPlugin;
|
|
622
|
-
declare function importGlobPlugin(config?:
|
|
623
|
-
declare function reportPlugin(config?:
|
|
621
|
+
declare function importGlobPlugin(config?: BindingImportGlobPluginConfig): BuiltinPlugin;
|
|
622
|
+
declare function reportPlugin(config?: BindingReporterPluginConfig): BuiltinPlugin;
|
|
624
623
|
declare function manifestPlugin(config?: BindingManifestPluginConfig): BuiltinPlugin;
|
|
625
624
|
declare function wasmHelperPlugin(): BuiltinPlugin;
|
|
626
625
|
declare function wasmFallbackPlugin(): BuiltinPlugin;
|
|
@@ -820,9 +819,13 @@ interface Plugin<A = any> extends OutputPlugin, Partial<PluginHooks> {
|
|
|
820
819
|
api?: A;
|
|
821
820
|
}
|
|
822
821
|
type RolldownPlugin<A = any> = Plugin<A> | BuiltinPlugin | ParallelPlugin;
|
|
823
|
-
type RolldownPluginOption<A = any> = MaybePromise<NullValue<RolldownPlugin<A>> |
|
|
822
|
+
type RolldownPluginOption<A = any> = MaybePromise<NullValue<RolldownPlugin<A>> | {
|
|
823
|
+
name: string
|
|
824
|
+
} | false | RolldownPluginOption[]>;
|
|
824
825
|
type RolldownOutputPlugin = OutputPlugin | BuiltinPlugin;
|
|
825
|
-
type RolldownOutputPluginOption = MaybePromise<NullValue<RolldownOutputPlugin> |
|
|
826
|
+
type RolldownOutputPluginOption = MaybePromise<NullValue<RolldownOutputPlugin> | {
|
|
827
|
+
name: string
|
|
828
|
+
} | false | RolldownOutputPluginOption[]>;
|
|
826
829
|
|
|
827
830
|
//#endregion
|
|
828
831
|
//#region src/options/generated/checks-options.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig,
|
|
1
|
+
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-B2S9REyA.cjs";
|
|
2
2
|
import { Program } from "@oxc-project/types";
|
|
3
3
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
4
4
|
|
|
@@ -137,7 +137,6 @@ interface PreRenderedAsset {
|
|
|
137
137
|
}
|
|
138
138
|
type AssetFileNamesFunction = (chunkInfo: PreRenderedAsset) => string;
|
|
139
139
|
type GlobalsFunction = (name: string) => string;
|
|
140
|
-
type ESTarget = "es6" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "es2023" | "es2024" | "esnext";
|
|
141
140
|
type MinifyOptions = BindingMinifyOptions;
|
|
142
141
|
interface OutputOptions {
|
|
143
142
|
dir?: string;
|
|
@@ -283,7 +282,7 @@ interface OutputOptions {
|
|
|
283
282
|
legalComments?: "none" | "inline";
|
|
284
283
|
plugins?: RolldownOutputPluginOption;
|
|
285
284
|
polyfillRequire?: boolean;
|
|
286
|
-
target?:
|
|
285
|
+
target?: string | string[];
|
|
287
286
|
hoistTransitiveImports?: false;
|
|
288
287
|
preserveModules?: boolean;
|
|
289
288
|
virtualDirname?: string;
|
|
@@ -617,10 +616,10 @@ declare class BuiltinPlugin {
|
|
|
617
616
|
_options?: unknown;
|
|
618
617
|
constructor(name: BindingBuiltinPluginName, _options?: unknown);
|
|
619
618
|
}
|
|
620
|
-
declare function modulePreloadPolyfillPlugin(
|
|
619
|
+
declare function modulePreloadPolyfillPlugin(): BuiltinPlugin;
|
|
621
620
|
declare function dynamicImportVarsPlugin(config?: BindingDynamicImportVarsPluginConfig): BuiltinPlugin;
|
|
622
|
-
declare function importGlobPlugin(config?:
|
|
623
|
-
declare function reportPlugin(config?:
|
|
621
|
+
declare function importGlobPlugin(config?: BindingImportGlobPluginConfig): BuiltinPlugin;
|
|
622
|
+
declare function reportPlugin(config?: BindingReporterPluginConfig): BuiltinPlugin;
|
|
624
623
|
declare function manifestPlugin(config?: BindingManifestPluginConfig): BuiltinPlugin;
|
|
625
624
|
declare function wasmHelperPlugin(): BuiltinPlugin;
|
|
626
625
|
declare function wasmFallbackPlugin(): BuiltinPlugin;
|
|
@@ -820,9 +819,13 @@ interface Plugin<A = any> extends OutputPlugin, Partial<PluginHooks> {
|
|
|
820
819
|
api?: A;
|
|
821
820
|
}
|
|
822
821
|
type RolldownPlugin<A = any> = Plugin<A> | BuiltinPlugin | ParallelPlugin;
|
|
823
|
-
type RolldownPluginOption<A = any> = MaybePromise<NullValue<RolldownPlugin<A>> |
|
|
822
|
+
type RolldownPluginOption<A = any> = MaybePromise<NullValue<RolldownPlugin<A>> | {
|
|
823
|
+
name: string
|
|
824
|
+
} | false | RolldownPluginOption[]>;
|
|
824
825
|
type RolldownOutputPlugin = OutputPlugin | BuiltinPlugin;
|
|
825
|
-
type RolldownOutputPluginOption = MaybePromise<NullValue<RolldownOutputPlugin> |
|
|
826
|
+
type RolldownOutputPluginOption = MaybePromise<NullValue<RolldownOutputPlugin> | {
|
|
827
|
+
name: string
|
|
828
|
+
} | false | RolldownOutputPluginOption[]>;
|
|
826
829
|
|
|
827
830
|
//#endregion
|
|
828
831
|
//#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-KcnYDM-0.mjs";
|
|
3
3
|
import fs from "node:fs";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./src-
|
|
2
|
+
const require_src = require('./src-BzX7ZA4t.cjs');
|
|
3
3
|
const node_fs = require_chunk.__toESM(require("node:fs"));
|
|
4
4
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
5
5
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
@@ -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,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_parse_ast_index = require('./parse-ast-index-
|
|
2
|
+
const require_parse_ast_index = require('./parse-ast-index-CtQjLtqj.cjs');
|
|
3
3
|
const require_misc = require('./misc-BKp5iIef.cjs');
|
|
4
4
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
5
5
|
const ansis = require_chunk.__toESM(require("ansis"));
|
|
@@ -8,7 +8,7 @@ const node_os = require_chunk.__toESM(require("node:os"));
|
|
|
8
8
|
const node_worker_threads = require_chunk.__toESM(require("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.a29b7fb";
|
|
12
12
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
@@ -37,8 +37,8 @@ var BuiltinPlugin = class {
|
|
|
37
37
|
this._options = _options;
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
|
-
function modulePreloadPolyfillPlugin(
|
|
41
|
-
return new BuiltinPlugin("builtin:module-preload-polyfill"
|
|
40
|
+
function modulePreloadPolyfillPlugin() {
|
|
41
|
+
return new BuiltinPlugin("builtin:module-preload-polyfill");
|
|
42
42
|
}
|
|
43
43
|
function dynamicImportVarsPlugin(config) {
|
|
44
44
|
return new BuiltinPlugin("builtin:dynamic-import-vars", config);
|
|
@@ -1525,11 +1525,7 @@ function convertAction(jsonSchema, valibotAction, config) {
|
|
|
1525
1525
|
jsonSchema.const = valibotAction.requirement;
|
|
1526
1526
|
break;
|
|
1527
1527
|
}
|
|
1528
|
-
default: handleError(
|
|
1529
|
-
// @ts-expect-error
|
|
1530
|
-
`The "${valibotAction.type}" action cannot be converted to JSON Schema.`,
|
|
1531
|
-
config
|
|
1532
|
-
);
|
|
1528
|
+
default: handleError(`The "${valibotAction.type}" action cannot be converted to JSON Schema.`, config);
|
|
1533
1529
|
}
|
|
1534
1530
|
return jsonSchema;
|
|
1535
1531
|
}
|
|
@@ -1663,11 +1659,7 @@ function convertSchema(jsonSchema, valibotSchema, config, context) {
|
|
|
1663
1659
|
jsonSchema.$ref = `#/$defs/${referenceId2}`;
|
|
1664
1660
|
break;
|
|
1665
1661
|
}
|
|
1666
|
-
default: handleError(
|
|
1667
|
-
// @ts-expect-error
|
|
1668
|
-
`The "${valibotSchema.type}" schema cannot be converted to JSON Schema.`,
|
|
1669
|
-
config
|
|
1670
|
-
);
|
|
1662
|
+
default: handleError(`The "${valibotSchema.type}" schema cannot be converted to JSON Schema.`, config);
|
|
1671
1663
|
}
|
|
1672
1664
|
return jsonSchema;
|
|
1673
1665
|
}
|
|
@@ -1679,21 +1671,9 @@ function toJsonSchema(schema, config) {
|
|
|
1679
1671
|
};
|
|
1680
1672
|
if (config?.definitions) {
|
|
1681
1673
|
for (const key in config.definitions) context.referenceMap.set(config.definitions[key], key);
|
|
1682
|
-
for (const key in config.definitions) context.definitions[key] = convertSchema(
|
|
1683
|
-
{},
|
|
1684
|
-
// @ts-expect-error
|
|
1685
|
-
config.definitions[key],
|
|
1686
|
-
config,
|
|
1687
|
-
context
|
|
1688
|
-
);
|
|
1674
|
+
for (const key in config.definitions) context.definitions[key] = convertSchema({}, config.definitions[key], config, context);
|
|
1689
1675
|
}
|
|
1690
|
-
const jsonSchema = convertSchema(
|
|
1691
|
-
{ $schema: "http://json-schema.org/draft-07/schema#" },
|
|
1692
|
-
// @ts-expect-error
|
|
1693
|
-
schema,
|
|
1694
|
-
config,
|
|
1695
|
-
context
|
|
1696
|
-
);
|
|
1676
|
+
const jsonSchema = convertSchema({ $schema: "http://json-schema.org/draft-07/schema#" }, schema, config, context);
|
|
1697
1677
|
if (context.referenceMap.size) jsonSchema.$defs = context.definitions;
|
|
1698
1678
|
return jsonSchema;
|
|
1699
1679
|
}
|
|
@@ -1905,20 +1885,6 @@ const InputCliOptionsSchema = omit(strictObject({
|
|
|
1905
1885
|
"profilerNames",
|
|
1906
1886
|
"watch"
|
|
1907
1887
|
]);
|
|
1908
|
-
const ESTargetSchema = union([
|
|
1909
|
-
literal("es6"),
|
|
1910
|
-
literal("es2015"),
|
|
1911
|
-
literal("es2016"),
|
|
1912
|
-
literal("es2017"),
|
|
1913
|
-
literal("es2018"),
|
|
1914
|
-
literal("es2019"),
|
|
1915
|
-
literal("es2020"),
|
|
1916
|
-
literal("es2021"),
|
|
1917
|
-
literal("es2022"),
|
|
1918
|
-
literal("es2023"),
|
|
1919
|
-
literal("es2024"),
|
|
1920
|
-
literal("esnext")
|
|
1921
|
-
]);
|
|
1922
1888
|
const ModuleFormatSchema = union([
|
|
1923
1889
|
literal("es"),
|
|
1924
1890
|
literal("cjs"),
|
|
@@ -1999,7 +1965,7 @@ const OutputOptionsSchema = strictObject({
|
|
|
1999
1965
|
legalComments: pipe(optional(union([literal("none"), literal("inline")])), description("Control comments in the output")),
|
|
2000
1966
|
plugins: optional(custom(() => true)),
|
|
2001
1967
|
polyfillRequire: pipe(optional(boolean()), description("Disable require polyfill injection")),
|
|
2002
|
-
target: pipe(optional(
|
|
1968
|
+
target: pipe(optional(union([string(), array(string())])), description("The JavaScript target environment")),
|
|
2003
1969
|
hoistTransitiveImports: optional(custom((input) => {
|
|
2004
1970
|
if (input) return false;
|
|
2005
1971
|
return true;
|
|
@@ -4103,7 +4069,7 @@ async function initializeParallelPlugins(plugins) {
|
|
|
4103
4069
|
});
|
|
4104
4070
|
}
|
|
4105
4071
|
if (pluginInfos.length <= 0) return void 0;
|
|
4106
|
-
const count =
|
|
4072
|
+
const count = availableParallelism();
|
|
4107
4073
|
const parallelJsPluginRegistry = new import_binding$2.ParallelJsPluginRegistry(count);
|
|
4108
4074
|
const registryId = parallelJsPluginRegistry.id;
|
|
4109
4075
|
const workers = await initializeWorkers(registryId, count, pluginInfos);
|
|
@@ -4141,6 +4107,16 @@ async function initializeWorker(registryId, pluginInfos, threadNumber) {
|
|
|
4141
4107
|
throw e;
|
|
4142
4108
|
}
|
|
4143
4109
|
}
|
|
4110
|
+
const availableParallelism = () => {
|
|
4111
|
+
let availableParallelism$1 = 1;
|
|
4112
|
+
try {
|
|
4113
|
+
availableParallelism$1 = node_os.default.availableParallelism();
|
|
4114
|
+
} catch {
|
|
4115
|
+
const cpus = node_os.default.cpus();
|
|
4116
|
+
if (Array.isArray(cpus) && cpus.length > 0) availableParallelism$1 = cpus.length;
|
|
4117
|
+
}
|
|
4118
|
+
return Math.min(availableParallelism$1, 8);
|
|
4119
|
+
};
|
|
4144
4120
|
|
|
4145
4121
|
//#endregion
|
|
4146
4122
|
//#region src/utils/create-bundler-option.ts
|
|
@@ -4273,11 +4249,7 @@ var WatcherEmitter = class {
|
|
|
4273
4249
|
listeners = new Map();
|
|
4274
4250
|
timer;
|
|
4275
4251
|
constructor() {
|
|
4276
|
-
this.timer = setInterval(
|
|
4277
|
-
() => {},
|
|
4278
|
-
1e9
|
|
4279
|
-
/* Low power usage */
|
|
4280
|
-
);
|
|
4252
|
+
this.timer = setInterval(() => {}, 1e9);
|
|
4281
4253
|
}
|
|
4282
4254
|
on(event, listener) {
|
|
4283
4255
|
const listeners = this.listeners.get(event);
|
|
@@ -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.a29b7fb";
|
|
12
12
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
@@ -34,8 +34,8 @@ var init_utils = __esm({ "src/builtin-plugin/utils.ts"() {
|
|
|
34
34
|
|
|
35
35
|
//#endregion
|
|
36
36
|
//#region src/builtin-plugin/constructors.ts
|
|
37
|
-
function modulePreloadPolyfillPlugin(
|
|
38
|
-
return new BuiltinPlugin("builtin:module-preload-polyfill"
|
|
37
|
+
function modulePreloadPolyfillPlugin() {
|
|
38
|
+
return new BuiltinPlugin("builtin:module-preload-polyfill");
|
|
39
39
|
}
|
|
40
40
|
function dynamicImportVarsPlugin(config) {
|
|
41
41
|
return new BuiltinPlugin("builtin:dynamic-import-vars", config);
|
|
@@ -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
|
}
|
|
@@ -1786,7 +1766,7 @@ function getOutputCliKeys() {
|
|
|
1786
1766
|
function getJsonSchema() {
|
|
1787
1767
|
return toJsonSchema(CliOptionsSchema, { errorMode: "ignore" });
|
|
1788
1768
|
}
|
|
1789
|
-
var StringOrRegExpSchema, LogLevelSchema, LogLevelOptionSchema, LogLevelWithErrorSchema, RollupLogSchema, RollupLogWithStringSchema, InputOptionSchema, ExternalSchema, ModuleTypesSchema, JsxOptionsSchema, HelperModeSchema, DecoratorOptionSchema, HelpersSchema, RewriteImportExtensionsSchema, TypescriptSchema, AssumptionsSchema, TransformOptionsSchema, WatchOptionsSchema, ChecksOptionsSchema, MinifyOptionsSchema, ResolveOptionsSchema, TreeshakingOptionsSchema, OnLogSchema, OnwarnSchema, HmrSchema, InputOptionsSchema, InputCliOverrideSchema, InputCliOptionsSchema,
|
|
1769
|
+
var StringOrRegExpSchema, LogLevelSchema, LogLevelOptionSchema, LogLevelWithErrorSchema, RollupLogSchema, RollupLogWithStringSchema, InputOptionSchema, ExternalSchema, ModuleTypesSchema, JsxOptionsSchema, HelperModeSchema, DecoratorOptionSchema, HelpersSchema, RewriteImportExtensionsSchema, TypescriptSchema, AssumptionsSchema, TransformOptionsSchema, WatchOptionsSchema, ChecksOptionsSchema, MinifyOptionsSchema, ResolveOptionsSchema, TreeshakingOptionsSchema, OnLogSchema, OnwarnSchema, HmrSchema, InputOptionsSchema, InputCliOverrideSchema, InputCliOptionsSchema, ModuleFormatSchema, AddonFunctionSchema, ChunkFileNamesSchema, AssetFileNamesSchema, SanitizeFileNameSchema, GlobalsFunctionSchema, AdvancedChunksSchema, OutputOptionsSchema, getAddonDescription, OutputCliOverrideSchema, OutputCliOptionsSchema, CliOptionsSchema, inputHelperMsgRecord, outputHelperMsgRecord;
|
|
1790
1770
|
var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
1791
1771
|
init_dist$1();
|
|
1792
1772
|
init_dist$2();
|
|
@@ -1995,20 +1975,6 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
1995
1975
|
"profilerNames",
|
|
1996
1976
|
"watch"
|
|
1997
1977
|
]);
|
|
1998
|
-
ESTargetSchema = union([
|
|
1999
|
-
literal("es6"),
|
|
2000
|
-
literal("es2015"),
|
|
2001
|
-
literal("es2016"),
|
|
2002
|
-
literal("es2017"),
|
|
2003
|
-
literal("es2018"),
|
|
2004
|
-
literal("es2019"),
|
|
2005
|
-
literal("es2020"),
|
|
2006
|
-
literal("es2021"),
|
|
2007
|
-
literal("es2022"),
|
|
2008
|
-
literal("es2023"),
|
|
2009
|
-
literal("es2024"),
|
|
2010
|
-
literal("esnext")
|
|
2011
|
-
]);
|
|
2012
1978
|
ModuleFormatSchema = union([
|
|
2013
1979
|
literal("es"),
|
|
2014
1980
|
literal("cjs"),
|
|
@@ -2089,7 +2055,7 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
2089
2055
|
legalComments: pipe(optional(union([literal("none"), literal("inline")])), description("Control comments in the output")),
|
|
2090
2056
|
plugins: optional(custom(() => true)),
|
|
2091
2057
|
polyfillRequire: pipe(optional(boolean()), description("Disable require polyfill injection")),
|
|
2092
|
-
target: pipe(optional(
|
|
2058
|
+
target: pipe(optional(union([string(), array(string())])), description("The JavaScript target environment")),
|
|
2093
2059
|
hoistTransitiveImports: optional(custom((input) => {
|
|
2094
2060
|
if (input) return false;
|
|
2095
2061
|
return true;
|
|
@@ -5450,7 +5416,7 @@ async function initializeParallelPlugins(plugins) {
|
|
|
5450
5416
|
});
|
|
5451
5417
|
}
|
|
5452
5418
|
if (pluginInfos.length <= 0) return void 0;
|
|
5453
|
-
const count =
|
|
5419
|
+
const count = availableParallelism();
|
|
5454
5420
|
const parallelJsPluginRegistry = new import_binding$2.ParallelJsPluginRegistry(count);
|
|
5455
5421
|
const registryId = parallelJsPluginRegistry.id;
|
|
5456
5422
|
const workers = await initializeWorkers(registryId, count, pluginInfos);
|
|
@@ -5488,9 +5454,19 @@ async function initializeWorker(registryId, pluginInfos, threadNumber) {
|
|
|
5488
5454
|
throw e$5;
|
|
5489
5455
|
}
|
|
5490
5456
|
}
|
|
5491
|
-
var import_binding$2;
|
|
5457
|
+
var import_binding$2, availableParallelism;
|
|
5492
5458
|
var init_initialize_parallel_plugins = __esm({ "src/utils/initialize-parallel-plugins.ts"() {
|
|
5493
5459
|
import_binding$2 = __toESM(require_binding());
|
|
5460
|
+
availableParallelism = () => {
|
|
5461
|
+
let availableParallelism$1 = 1;
|
|
5462
|
+
try {
|
|
5463
|
+
availableParallelism$1 = os.availableParallelism();
|
|
5464
|
+
} catch {
|
|
5465
|
+
const cpus = os.cpus();
|
|
5466
|
+
if (Array.isArray(cpus) && cpus.length > 0) availableParallelism$1 = cpus.length;
|
|
5467
|
+
}
|
|
5468
|
+
return Math.min(availableParallelism$1, 8);
|
|
5469
|
+
};
|
|
5494
5470
|
} });
|
|
5495
5471
|
|
|
5496
5472
|
//#endregion
|
|
@@ -5656,11 +5632,7 @@ var init_watch_emitter = __esm({ "src/api/watch/watch-emitter.ts"() {
|
|
|
5656
5632
|
listeners = new Map();
|
|
5657
5633
|
timer;
|
|
5658
5634
|
constructor() {
|
|
5659
|
-
this.timer = setInterval(
|
|
5660
|
-
() => {},
|
|
5661
|
-
1e9
|
|
5662
|
-
/* Low power usage */
|
|
5663
|
-
);
|
|
5635
|
+
this.timer = setInterval(() => {}, 1e9);
|
|
5664
5636
|
}
|
|
5665
5637
|
on(event, listener) {
|
|
5666
5638
|
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.a29b7fb",
|
|
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.a29b7fb"
|
|
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.a29b7fb"
|
|
132
132
|
},
|
|
133
133
|
"optionalDependencies": {
|
|
134
|
-
"@rolldown/binding-darwin-
|
|
135
|
-
"@rolldown/binding-darwin-
|
|
136
|
-
"@rolldown/binding-freebsd-x64": "1.0.0-beta.8-commit.
|
|
137
|
-
"@rolldown/binding-linux-
|
|
138
|
-
"@rolldown/binding-linux-
|
|
139
|
-
"@rolldown/binding-linux-
|
|
140
|
-
"@rolldown/binding-linux-
|
|
141
|
-
"@rolldown/binding-linux-
|
|
142
|
-
"@rolldown/binding-
|
|
143
|
-
"@rolldown/binding-win32-
|
|
144
|
-
"@rolldown/binding-win32-
|
|
145
|
-
"@rolldown/binding-
|
|
134
|
+
"@rolldown/binding-darwin-arm64": "1.0.0-beta.8-commit.a29b7fb",
|
|
135
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.8-commit.a29b7fb",
|
|
136
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.8-commit.a29b7fb",
|
|
137
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.8-commit.a29b7fb",
|
|
138
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.8-commit.a29b7fb",
|
|
139
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.8-commit.a29b7fb",
|
|
140
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.8-commit.a29b7fb",
|
|
141
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.8-commit.a29b7fb",
|
|
142
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.8-commit.a29b7fb",
|
|
143
|
+
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.8-commit.a29b7fb",
|
|
144
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.8-commit.a29b7fb",
|
|
145
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.8-commit.a29b7fb"
|
|
146
146
|
},
|
|
147
147
|
"scripts": {
|
|
148
148
|
"# Scrips for binding #": "_",
|