@rolldown/browser 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 +1 -1
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +3 -3
- package/dist/experimental-index.browser.mjs +1 -1
- package/dist/experimental-index.cjs +4 -5
- package/dist/experimental-index.d.cts +1 -1
- package/dist/experimental-index.d.mts +1 -1
- package/dist/experimental-index.mjs +2 -2
- package/dist/filter-index.cjs +1 -2
- package/dist/filter-index.d.cts +1 -1
- package/dist/filter-index.d.mts +1 -1
- package/dist/index.browser.mjs +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- 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 +1 -1
- package/dist/parallel-plugin.d.mts +1 -1
- package/dist/parse-ast-index.cjs +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/shared/{chunk-qZFfknuJ.cjs → chunk-DDkG_k5U.cjs} +0 -1
- package/dist/shared/{define-config.d-BmQ1dMSR.d.mts → define-config.d-BSPeVCw2.d.mts} +7 -2
- package/dist/shared/{define-config.d-MId2-BcO.d.cts → define-config.d-DDwKZbQp.d.cts} +7 -2
- package/dist/shared/{dist-DZQZS3Ua.cjs → dist-BMVjvV-v.cjs} +0 -1
- package/dist/shared/{load-config-rNkuP0DJ.cjs → load-config-BJ6mN3AC.cjs} +2 -3
- package/dist/shared/{load-config-BQJgCOWy.mjs → load-config-D8PA4GLc.mjs} +1 -1
- package/dist/shared/{parse-ast-index-DvsltErM.mjs → parse-ast-index-CxOeb18k.mjs} +2 -2
- package/dist/shared/{parse-ast-index-DfDBeJFi.cjs → parse-ast-index-KEAbj-mg.cjs} +2 -3
- package/dist/shared/{prompt-jvA1XQOy.cjs → prompt-CxjDC0Gn.cjs} +1 -2
- package/dist/shared/{src-DbPay3LW.mjs → src-Bi8l87Sb.mjs} +23 -34
- package/dist/shared/{src-CyyJ5nAo.cjs → src-CaXt6Sh0.cjs} +21 -35
- package/dist/{src-7APFYa8r.js → src-BTw0BDM-.js} +4 -7
- package/package.json +3 -3
package/dist/cli.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_chunk = require('./shared/chunk-
|
|
2
|
-
const require_src = require('./shared/src-
|
|
3
|
-
const require_dist = require('./shared/dist-
|
|
4
|
-
require('./shared/parse-ast-index-
|
|
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-CaXt6Sh0.cjs');
|
|
3
|
+
const require_dist = require('./shared/dist-BMVjvV-v.cjs');
|
|
4
|
+
require('./shared/parse-ast-index-KEAbj-mg.cjs');
|
|
5
|
+
const require_load_config = require('./shared/load-config-BJ6mN3AC.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-DSsiIF1Z.mjs";
|
|
2
|
-
import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-
|
|
2
|
+
import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-Bi8l87Sb.mjs";
|
|
3
3
|
import { arraify, init_misc } from "./shared/dist-CAn6dxW6.mjs";
|
|
4
|
-
import "./shared/parse-ast-index-
|
|
5
|
-
import { init_load_config, loadConfig } from "./shared/load-config-
|
|
4
|
+
import "./shared/parse-ast-index-CxOeb18k.mjs";
|
|
5
|
+
import { init_load_config, loadConfig } from "./shared/load-config-D8PA4GLc.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-rNkuP0DJ.cjs');
|
|
1
|
+
const require_src = require('./shared/src-CaXt6Sh0.cjs');
|
|
2
|
+
require('./shared/dist-BMVjvV-v.cjs');
|
|
3
|
+
require('./shared/parse-ast-index-KEAbj-mg.cjs');
|
|
4
|
+
const require_load_config = require('./shared/load-config-BJ6mN3AC.cjs');
|
|
6
5
|
|
|
7
6
|
//#region src/config.ts
|
|
8
7
|
const VERSION = require_src.version;
|
package/dist/config.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConfigExport, defineConfig } from "./shared/define-config.d-
|
|
1
|
+
import { ConfigExport, defineConfig } from "./shared/define-config.d-DDwKZbQp.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/utils/load-config.d.ts
|
|
4
4
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
package/dist/config.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConfigExport, defineConfig$1 as defineConfig } from "./shared/define-config.d-
|
|
1
|
+
import { ConfigExport, defineConfig$1 as defineConfig } from "./shared/define-config.d-BSPeVCw2.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/utils/load-config.d.ts
|
|
4
4
|
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-
|
|
1
|
+
import { defineConfig, init_define_config, version } from "./shared/src-Bi8l87Sb.mjs";
|
|
2
2
|
import "./shared/dist-CAn6dxW6.mjs";
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
4
|
-
import { init_load_config, loadConfig } from "./shared/load-config-
|
|
3
|
+
import "./shared/parse-ast-index-CxOeb18k.mjs";
|
|
4
|
+
import { init_load_config, loadConfig } from "./shared/load-config-D8PA4GLc.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/config.ts
|
|
7
7
|
init_define_config();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BuiltinPlugin, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./src-
|
|
1
|
+
import { BuiltinPlugin, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./src-BTw0BDM-.js";
|
|
2
2
|
import { ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi-browser.js";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.ts
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
require('./shared/
|
|
5
|
-
require('./shared/parse-ast-index-DfDBeJFi.cjs');
|
|
1
|
+
const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
|
|
2
|
+
const require_src = require('./shared/src-CaXt6Sh0.cjs');
|
|
3
|
+
require('./shared/dist-BMVjvV-v.cjs');
|
|
4
|
+
require('./shared/parse-ast-index-KEAbj-mg.cjs');
|
|
6
5
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
|
|
7
6
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
8
7
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
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 { BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/define-config.d-DDwKZbQp.cjs";
|
|
2
2
|
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions as ResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
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 { 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-BSPeVCw2.mjs";
|
|
2
2
|
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions as ResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-Bi8l87Sb.mjs";
|
|
2
2
|
import "./shared/dist-CAn6dxW6.mjs";
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
3
|
+
import "./shared/parse-ast-index-CxOeb18k.mjs";
|
|
4
4
|
import { ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
6
6
|
|
package/dist/filter-index.cjs
CHANGED
package/dist/filter-index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter } from "./shared/define-config.d-
|
|
1
|
+
import { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter } from "./shared/define-config.d-DDwKZbQp.cjs";
|
|
2
2
|
|
|
3
3
|
export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter } from "./shared/define-config.d-
|
|
1
|
+
import { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter } from "./shared/define-config.d-BSPeVCw2.mjs";
|
|
2
2
|
|
|
3
3
|
export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
|
package/dist/index.browser.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_src = require('./shared/src-
|
|
2
|
-
require('./shared/dist-
|
|
3
|
-
require('./shared/parse-ast-index-
|
|
1
|
+
const require_src = require('./shared/src-CaXt6Sh0.cjs');
|
|
2
|
+
require('./shared/dist-BMVjvV-v.cjs');
|
|
3
|
+
require('./shared/parse-ast-index-KEAbj-mg.cjs');
|
|
4
4
|
|
|
5
5
|
exports.VERSION = require_src.VERSION;
|
|
6
6
|
exports.build = require_src.build;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
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, 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 } from "./shared/define-config.d-
|
|
1
|
+
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, 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 } from "./shared/define-config.d-DDwKZbQp.cjs";
|
|
2
2
|
|
|
3
3
|
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,3 +1,3 @@
|
|
|
1
|
-
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, PreRenderedChunk, 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 { 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$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-BSPeVCw2.mjs";
|
|
2
2
|
|
|
3
3
|
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,6 +1,6 @@
|
|
|
1
|
-
import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-
|
|
1
|
+
import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-Bi8l87Sb.mjs";
|
|
2
2
|
import "./shared/dist-CAn6dxW6.mjs";
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
3
|
+
import "./shared/parse-ast-index-CxOeb18k.mjs";
|
|
4
4
|
|
|
5
5
|
init_src();
|
|
6
6
|
export { VERSION, build, defineConfig, rolldown, watch };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_chunk = require('./shared/chunk-
|
|
2
|
-
const require_src = require('./shared/src-
|
|
3
|
-
require('./shared/dist-
|
|
4
|
-
require('./shared/parse-ast-index-
|
|
1
|
+
const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
|
|
2
|
+
const require_src = require('./shared/src-CaXt6Sh0.cjs');
|
|
3
|
+
require('./shared/dist-BMVjvV-v.cjs');
|
|
4
|
+
require('./shared/parse-ast-index-KEAbj-mg.cjs');
|
|
5
5
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
|
|
6
6
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
7
7
|
|
|
@@ -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, src_rolldown_binding_wasi_cjs.registerPlugins)(registryId, plugins);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __commonJS } from "./shared/chunk-DSsiIF1Z.mjs";
|
|
2
|
-
import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-
|
|
2
|
+
import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-Bi8l87Sb.mjs";
|
|
3
3
|
import "./shared/dist-CAn6dxW6.mjs";
|
|
4
|
-
import "./shared/parse-ast-index-
|
|
4
|
+
import "./shared/parse-ast-index-CxOeb18k.mjs";
|
|
5
5
|
import { registerPlugins } from "./rolldown-binding.wasi.cjs";
|
|
6
6
|
import { parentPort, workerData } from "node:worker_threads";
|
|
7
7
|
|
|
@@ -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
|
registerPlugins(registryId, plugins);
|
package/dist/parallel-plugin.cjs
CHANGED
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-KEAbj-mg.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-CxOeb18k.mjs";
|
|
2
2
|
|
|
3
3
|
init_parse_ast_index();
|
|
4
4
|
export { parseAst, parseAstAsync };
|
|
Binary file
|
|
@@ -77,6 +77,7 @@ interface RenderedModule {
|
|
|
77
77
|
renderedExports: string[];
|
|
78
78
|
}
|
|
79
79
|
interface RenderedChunk extends Omit<BindingRenderedChunk, "modules"> {
|
|
80
|
+
type: "chunk";
|
|
80
81
|
modules: {
|
|
81
82
|
[id: string]: RenderedModule
|
|
82
83
|
};
|
|
@@ -904,9 +905,13 @@ interface Plugin<A = any> extends OutputPlugin, Partial<PluginHooks> {
|
|
|
904
905
|
api?: A;
|
|
905
906
|
}
|
|
906
907
|
type RolldownPlugin<A = any> = Plugin<A> | BuiltinPlugin | ParallelPlugin;
|
|
907
|
-
type RolldownPluginOption<A = any> = MaybePromise<NullValue<RolldownPlugin<A>> |
|
|
908
|
+
type RolldownPluginOption<A = any> = MaybePromise<NullValue<RolldownPlugin<A>> | {
|
|
909
|
+
name: string
|
|
910
|
+
} | false | RolldownPluginOption[]>;
|
|
908
911
|
type RolldownOutputPlugin = OutputPlugin | BuiltinPlugin;
|
|
909
|
-
type RolldownOutputPluginOption = MaybePromise<NullValue<RolldownOutputPlugin> |
|
|
912
|
+
type RolldownOutputPluginOption = MaybePromise<NullValue<RolldownOutputPlugin> | {
|
|
913
|
+
name: string
|
|
914
|
+
} | false | RolldownOutputPluginOption[]>;
|
|
910
915
|
|
|
911
916
|
//#endregion
|
|
912
917
|
//#region src/options/generated/checks-options.d.ts
|
|
@@ -77,6 +77,7 @@ interface RenderedModule {
|
|
|
77
77
|
renderedExports: string[];
|
|
78
78
|
}
|
|
79
79
|
interface RenderedChunk extends Omit<BindingRenderedChunk, "modules"> {
|
|
80
|
+
type: "chunk";
|
|
80
81
|
modules: {
|
|
81
82
|
[id: string]: RenderedModule
|
|
82
83
|
};
|
|
@@ -904,9 +905,13 @@ interface Plugin<A = any> extends OutputPlugin, Partial<PluginHooks> {
|
|
|
904
905
|
api?: A;
|
|
905
906
|
}
|
|
906
907
|
type RolldownPlugin<A = any> = Plugin<A> | BuiltinPlugin | ParallelPlugin;
|
|
907
|
-
type RolldownPluginOption<A = any> = MaybePromise<NullValue<RolldownPlugin<A>> |
|
|
908
|
+
type RolldownPluginOption<A = any> = MaybePromise<NullValue<RolldownPlugin<A>> | {
|
|
909
|
+
name: string
|
|
910
|
+
} | false | RolldownPluginOption[]>;
|
|
908
911
|
type RolldownOutputPlugin = OutputPlugin | BuiltinPlugin;
|
|
909
|
-
type RolldownOutputPluginOption = MaybePromise<NullValue<RolldownOutputPlugin> |
|
|
912
|
+
type RolldownOutputPluginOption = MaybePromise<NullValue<RolldownOutputPlugin> | {
|
|
913
|
+
name: string
|
|
914
|
+
} | false | RolldownOutputPluginOption[]>;
|
|
910
915
|
|
|
911
916
|
//#endregion
|
|
912
917
|
//#region src/options/generated/checks-options.d.ts
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
const require_src = require('./src-CyyJ5nAo.cjs');
|
|
1
|
+
const require_chunk = require('./chunk-DDkG_k5U.cjs');
|
|
2
|
+
const require_src = require('./src-CaXt6Sh0.cjs');
|
|
4
3
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
5
4
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
6
5
|
const node_process = require_chunk.__toESM(require("node:process"));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __esm } from "./chunk-DSsiIF1Z.mjs";
|
|
2
|
-
import { init_rolldown, rolldown } from "./src-
|
|
2
|
+
import { init_rolldown, rolldown } from "./src-Bi8l87Sb.mjs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { pathToFileURL } from "node:url";
|
|
5
5
|
import { cwd } from "node:process";
|
|
@@ -190,7 +190,7 @@ var init_logs = __esm({ "src/log/logs.ts"() {
|
|
|
190
190
|
} });
|
|
191
191
|
|
|
192
192
|
//#endregion
|
|
193
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
193
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.70.0/node_modules/oxc-parser/wrap.mjs
|
|
194
194
|
function wrap$1(result) {
|
|
195
195
|
let program, module, comments, errors;
|
|
196
196
|
return {
|
|
@@ -225,7 +225,7 @@ function applyFix(program, fixPath) {
|
|
|
225
225
|
node.value = RegExp(node.regex.pattern, node.regex.flags);
|
|
226
226
|
} catch (_err) {}
|
|
227
227
|
}
|
|
228
|
-
var init_wrap = __esm({ "../../node_modules/.pnpm/oxc-parser@0.
|
|
228
|
+
var init_wrap = __esm({ "../../node_modules/.pnpm/oxc-parser@0.70.0/node_modules/oxc-parser/wrap.mjs"() {} });
|
|
229
229
|
|
|
230
230
|
//#endregion
|
|
231
231
|
//#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 src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("../rolldown-binding.wasi.cjs"));
|
|
4
3
|
|
|
5
4
|
//#region src/utils/code-frame.ts
|
|
@@ -182,7 +181,7 @@ function augmentCodeLocation(properties, pos, source, id) {
|
|
|
182
181
|
}
|
|
183
182
|
|
|
184
183
|
//#endregion
|
|
185
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
184
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.70.0/node_modules/oxc-parser/wrap.mjs
|
|
186
185
|
function wrap$1(result) {
|
|
187
186
|
let program, module$1, comments, errors;
|
|
188
187
|
return {
|
|
@@ -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 } from "./chunk-DSsiIF1Z.mjs";
|
|
2
2
|
import { and$1 as and, arraify, code$1 as code, exclude$1 as exclude, id$1 as id, include$1 as include, init_dist, init_misc, isNullish, moduleType$1 as moduleType, noop, or$1 as or, unimplemented, unreachable, unsupported } from "./dist-CAn6dxW6.mjs";
|
|
3
|
-
import { augmentCodeLocation, error, init_logs, init_parse_ast_index, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-
|
|
3
|
+
import { augmentCodeLocation, error, init_logs, init_parse_ast_index, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-CxOeb18k.mjs";
|
|
4
4
|
import { BindingCallableBuiltinPlugin, BindingHookSideEffects, BindingLogLevel, BindingPluginOrder, BindingWatcher, Bundler, ParallelJsPluginRegistry, shutdownAsyncRuntime, startAsyncRuntime } from "../rolldown-binding.wasi.cjs";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import colors from "ansis";
|
|
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
|
|
@@ -1566,11 +1566,7 @@ function convertAction(jsonSchema, valibotAction, config) {
|
|
|
1566
1566
|
jsonSchema.const = valibotAction.requirement;
|
|
1567
1567
|
break;
|
|
1568
1568
|
}
|
|
1569
|
-
default: handleError(
|
|
1570
|
-
// @ts-expect-error
|
|
1571
|
-
`The "${valibotAction.type}" action cannot be converted to JSON Schema.`,
|
|
1572
|
-
config
|
|
1573
|
-
);
|
|
1569
|
+
default: handleError(`The "${valibotAction.type}" action cannot be converted to JSON Schema.`, config);
|
|
1574
1570
|
}
|
|
1575
1571
|
return jsonSchema;
|
|
1576
1572
|
}
|
|
@@ -1703,11 +1699,7 @@ function convertSchema(jsonSchema, valibotSchema, config, context) {
|
|
|
1703
1699
|
jsonSchema.$ref = `#/$defs/${referenceId2}`;
|
|
1704
1700
|
break;
|
|
1705
1701
|
}
|
|
1706
|
-
default: handleError(
|
|
1707
|
-
// @ts-expect-error
|
|
1708
|
-
`The "${valibotSchema.type}" schema cannot be converted to JSON Schema.`,
|
|
1709
|
-
config
|
|
1710
|
-
);
|
|
1702
|
+
default: handleError(`The "${valibotSchema.type}" schema cannot be converted to JSON Schema.`, config);
|
|
1711
1703
|
}
|
|
1712
1704
|
return jsonSchema;
|
|
1713
1705
|
}
|
|
@@ -1719,21 +1711,9 @@ function toJsonSchema(schema, config) {
|
|
|
1719
1711
|
};
|
|
1720
1712
|
if (config?.definitions) {
|
|
1721
1713
|
for (const key in config.definitions) context.referenceMap.set(config.definitions[key], key);
|
|
1722
|
-
for (const key in config.definitions) context.definitions[key] = convertSchema(
|
|
1723
|
-
{},
|
|
1724
|
-
// @ts-expect-error
|
|
1725
|
-
config.definitions[key],
|
|
1726
|
-
config,
|
|
1727
|
-
context
|
|
1728
|
-
);
|
|
1714
|
+
for (const key in config.definitions) context.definitions[key] = convertSchema({}, config.definitions[key], config, context);
|
|
1729
1715
|
}
|
|
1730
|
-
const jsonSchema = convertSchema(
|
|
1731
|
-
{ $schema: "http://json-schema.org/draft-07/schema#" },
|
|
1732
|
-
// @ts-expect-error
|
|
1733
|
-
schema,
|
|
1734
|
-
config,
|
|
1735
|
-
context
|
|
1736
|
-
);
|
|
1716
|
+
const jsonSchema = convertSchema({ $schema: "http://json-schema.org/draft-07/schema#" }, schema, config, context);
|
|
1737
1717
|
if (context.referenceMap.size) jsonSchema.$defs = context.definitions;
|
|
1738
1718
|
return jsonSchema;
|
|
1739
1719
|
}
|
|
@@ -4012,6 +3992,7 @@ var init_transform_rendered_module = __esm({ "src/utils/transform-rendered-modul
|
|
|
4012
3992
|
function transformRenderedChunk(chunk) {
|
|
4013
3993
|
let modules = null;
|
|
4014
3994
|
return {
|
|
3995
|
+
type: "chunk",
|
|
4015
3996
|
get name() {
|
|
4016
3997
|
return chunk.name;
|
|
4017
3998
|
},
|
|
@@ -5439,7 +5420,7 @@ async function initializeParallelPlugins(plugins) {
|
|
|
5439
5420
|
});
|
|
5440
5421
|
}
|
|
5441
5422
|
if (pluginInfos.length <= 0) return void 0;
|
|
5442
|
-
const count =
|
|
5423
|
+
const count = availableParallelism();
|
|
5443
5424
|
const parallelJsPluginRegistry = new ParallelJsPluginRegistry(count);
|
|
5444
5425
|
const registryId = parallelJsPluginRegistry.id;
|
|
5445
5426
|
const workers = await initializeWorkers(registryId, count, pluginInfos);
|
|
@@ -5477,7 +5458,19 @@ async function initializeWorker(registryId, pluginInfos, threadNumber) {
|
|
|
5477
5458
|
throw e$5;
|
|
5478
5459
|
}
|
|
5479
5460
|
}
|
|
5480
|
-
var
|
|
5461
|
+
var availableParallelism;
|
|
5462
|
+
var init_initialize_parallel_plugins = __esm({ "src/utils/initialize-parallel-plugins.ts"() {
|
|
5463
|
+
availableParallelism = () => {
|
|
5464
|
+
let availableParallelism$1 = 1;
|
|
5465
|
+
try {
|
|
5466
|
+
availableParallelism$1 = os.availableParallelism();
|
|
5467
|
+
} catch {
|
|
5468
|
+
const cpus = os.cpus();
|
|
5469
|
+
if (Array.isArray(cpus) && cpus.length > 0) availableParallelism$1 = cpus.length;
|
|
5470
|
+
}
|
|
5471
|
+
return Math.min(availableParallelism$1, 8);
|
|
5472
|
+
};
|
|
5473
|
+
} });
|
|
5481
5474
|
|
|
5482
5475
|
//#endregion
|
|
5483
5476
|
//#region src/utils/create-bundler-option.ts
|
|
@@ -5641,11 +5634,7 @@ var init_watch_emitter = __esm({ "src/api/watch/watch-emitter.ts"() {
|
|
|
5641
5634
|
listeners = new Map();
|
|
5642
5635
|
timer;
|
|
5643
5636
|
constructor() {
|
|
5644
|
-
this.timer = setInterval(
|
|
5645
|
-
() => {},
|
|
5646
|
-
1e9
|
|
5647
|
-
/* Low power usage */
|
|
5648
|
-
);
|
|
5637
|
+
this.timer = setInterval(() => {}, 1e9);
|
|
5649
5638
|
}
|
|
5650
5639
|
on(event, listener) {
|
|
5651
5640
|
const listeners = this.listeners.get(event);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const require_parse_ast_index = require('./parse-ast-index-DfDBeJFi.cjs');
|
|
1
|
+
const require_chunk = require('./chunk-DDkG_k5U.cjs');
|
|
2
|
+
const require_dist = require('./dist-BMVjvV-v.cjs');
|
|
3
|
+
const require_parse_ast_index = require('./parse-ast-index-KEAbj-mg.cjs');
|
|
5
4
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("../rolldown-binding.wasi.cjs"));
|
|
6
5
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
7
6
|
const ansis = require_chunk.__toESM(require("ansis"));
|
|
@@ -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
|
|
@@ -1525,11 +1524,7 @@ function convertAction(jsonSchema, valibotAction, config) {
|
|
|
1525
1524
|
jsonSchema.const = valibotAction.requirement;
|
|
1526
1525
|
break;
|
|
1527
1526
|
}
|
|
1528
|
-
default: handleError(
|
|
1529
|
-
// @ts-expect-error
|
|
1530
|
-
`The "${valibotAction.type}" action cannot be converted to JSON Schema.`,
|
|
1531
|
-
config
|
|
1532
|
-
);
|
|
1527
|
+
default: handleError(`The "${valibotAction.type}" action cannot be converted to JSON Schema.`, config);
|
|
1533
1528
|
}
|
|
1534
1529
|
return jsonSchema;
|
|
1535
1530
|
}
|
|
@@ -1663,11 +1658,7 @@ function convertSchema(jsonSchema, valibotSchema, config, context) {
|
|
|
1663
1658
|
jsonSchema.$ref = `#/$defs/${referenceId2}`;
|
|
1664
1659
|
break;
|
|
1665
1660
|
}
|
|
1666
|
-
default: handleError(
|
|
1667
|
-
// @ts-expect-error
|
|
1668
|
-
`The "${valibotSchema.type}" schema cannot be converted to JSON Schema.`,
|
|
1669
|
-
config
|
|
1670
|
-
);
|
|
1661
|
+
default: handleError(`The "${valibotSchema.type}" schema cannot be converted to JSON Schema.`, config);
|
|
1671
1662
|
}
|
|
1672
1663
|
return jsonSchema;
|
|
1673
1664
|
}
|
|
@@ -1679,21 +1670,9 @@ function toJsonSchema(schema, config) {
|
|
|
1679
1670
|
};
|
|
1680
1671
|
if (config?.definitions) {
|
|
1681
1672
|
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
|
-
);
|
|
1673
|
+
for (const key in config.definitions) context.definitions[key] = convertSchema({}, config.definitions[key], config, context);
|
|
1689
1674
|
}
|
|
1690
|
-
const jsonSchema = convertSchema(
|
|
1691
|
-
{ $schema: "http://json-schema.org/draft-07/schema#" },
|
|
1692
|
-
// @ts-expect-error
|
|
1693
|
-
schema,
|
|
1694
|
-
config,
|
|
1695
|
-
context
|
|
1696
|
-
);
|
|
1675
|
+
const jsonSchema = convertSchema({ $schema: "http://json-schema.org/draft-07/schema#" }, schema, config, context);
|
|
1697
1676
|
if (context.referenceMap.size) jsonSchema.$defs = context.definitions;
|
|
1698
1677
|
return jsonSchema;
|
|
1699
1678
|
}
|
|
@@ -2743,6 +2722,7 @@ function transformToRenderedModule(bindingRenderedModule) {
|
|
|
2743
2722
|
function transformRenderedChunk(chunk) {
|
|
2744
2723
|
let modules = null;
|
|
2745
2724
|
return {
|
|
2725
|
+
type: "chunk",
|
|
2746
2726
|
get name() {
|
|
2747
2727
|
return chunk.name;
|
|
2748
2728
|
},
|
|
@@ -4098,7 +4078,7 @@ async function initializeParallelPlugins(plugins) {
|
|
|
4098
4078
|
});
|
|
4099
4079
|
}
|
|
4100
4080
|
if (pluginInfos.length <= 0) return void 0;
|
|
4101
|
-
const count =
|
|
4081
|
+
const count = availableParallelism();
|
|
4102
4082
|
const parallelJsPluginRegistry = new src_rolldown_binding_wasi_cjs.ParallelJsPluginRegistry(count);
|
|
4103
4083
|
const registryId = parallelJsPluginRegistry.id;
|
|
4104
4084
|
const workers = await initializeWorkers(registryId, count, pluginInfos);
|
|
@@ -4136,6 +4116,16 @@ async function initializeWorker(registryId, pluginInfos, threadNumber) {
|
|
|
4136
4116
|
throw e;
|
|
4137
4117
|
}
|
|
4138
4118
|
}
|
|
4119
|
+
const availableParallelism = () => {
|
|
4120
|
+
let availableParallelism$1 = 1;
|
|
4121
|
+
try {
|
|
4122
|
+
availableParallelism$1 = node_os.default.availableParallelism();
|
|
4123
|
+
} catch {
|
|
4124
|
+
const cpus = node_os.default.cpus();
|
|
4125
|
+
if (Array.isArray(cpus) && cpus.length > 0) availableParallelism$1 = cpus.length;
|
|
4126
|
+
}
|
|
4127
|
+
return Math.min(availableParallelism$1, 8);
|
|
4128
|
+
};
|
|
4139
4129
|
|
|
4140
4130
|
//#endregion
|
|
4141
4131
|
//#region src/utils/create-bundler-option.ts
|
|
@@ -4267,11 +4257,7 @@ var WatcherEmitter = class {
|
|
|
4267
4257
|
listeners = new Map();
|
|
4268
4258
|
timer;
|
|
4269
4259
|
constructor() {
|
|
4270
|
-
this.timer = setInterval(
|
|
4271
|
-
() => {},
|
|
4272
|
-
1e9
|
|
4273
|
-
/* Low power usage */
|
|
4274
|
-
);
|
|
4260
|
+
this.timer = setInterval(() => {}, 1e9);
|
|
4275
4261
|
}
|
|
4276
4262
|
on(event, listener) {
|
|
4277
4263
|
const listeners = this.listeners.get(event);
|
|
@@ -3,7 +3,7 @@ import path from "pathe";
|
|
|
3
3
|
import colors from "ansis";
|
|
4
4
|
|
|
5
5
|
//#region package.json
|
|
6
|
-
var version = "1.0.0-beta.8-commit.
|
|
6
|
+
var version = "1.0.0-beta.8-commit.53a64a8";
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/builtin-plugin/utils.ts
|
|
@@ -2350,7 +2350,7 @@ function bindingPluginOrder(order) {
|
|
|
2350
2350
|
}
|
|
2351
2351
|
|
|
2352
2352
|
//#endregion
|
|
2353
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
2353
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.70.0/node_modules/oxc-parser/wrap.mjs
|
|
2354
2354
|
function wrap$1(result) {
|
|
2355
2355
|
let program, module, comments, errors;
|
|
2356
2356
|
return {
|
|
@@ -2737,6 +2737,7 @@ function transformToRenderedModule(bindingRenderedModule) {
|
|
|
2737
2737
|
function transformRenderedChunk(chunk) {
|
|
2738
2738
|
let modules = null;
|
|
2739
2739
|
return {
|
|
2740
|
+
type: "chunk",
|
|
2740
2741
|
get name() {
|
|
2741
2742
|
return chunk.name;
|
|
2742
2743
|
},
|
|
@@ -4209,11 +4210,7 @@ var WatcherEmitter = class {
|
|
|
4209
4210
|
listeners = new Map();
|
|
4210
4211
|
timer;
|
|
4211
4212
|
constructor() {
|
|
4212
|
-
this.timer = setInterval(
|
|
4213
|
-
() => {},
|
|
4214
|
-
1e9
|
|
4215
|
-
/* Low power usage */
|
|
4216
|
-
);
|
|
4213
|
+
this.timer = setInterval(() => {}, 1e9);
|
|
4217
4214
|
}
|
|
4218
4215
|
on(event, listener) {
|
|
4219
4216
|
const listeners = this.listeners.get(event);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rolldown/browser",
|
|
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
|
"homepage": "https://rolldown.rs/",
|
|
6
6
|
"type": "module",
|
|
@@ -56,12 +56,12 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@napi-rs/wasm-runtime": "^0.2.8",
|
|
59
|
-
"@oxc-project/types": "0.
|
|
59
|
+
"@oxc-project/types": "0.70.0",
|
|
60
60
|
"ansis": "^4.0.0",
|
|
61
61
|
"pathe": "^2.0.3"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@oxc-project/runtime": "0.
|
|
64
|
+
"@oxc-project/runtime": "0.70.0"
|
|
65
65
|
},
|
|
66
66
|
"peerDependenciesMeta": {
|
|
67
67
|
"@oxc-project/runtime": {
|