@rolldown/browser 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 +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 +2 -2
- 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.d.cts +1 -1
- package/dist/filter-index.d.mts +1 -1
- package/dist/index.browser.mjs +1 -1
- package/dist/index.cjs +2 -2
- 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 +3 -14
- package/dist/parallel-plugin-worker.mjs +3 -14
- 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/{define-config.d-BiGTnEwb.d.mts → define-config.d-BSocIkiN.d.mts} +11 -8
- package/dist/shared/{define-config.d-C1Ukigk4.d.cts → define-config.d-DWPMeQu2.d.cts} +11 -8
- package/dist/shared/{load-config-BFbemo6B.mjs → load-config-CKZBJrcD.mjs} +1 -1
- package/dist/shared/{load-config-B0yD0Saa.cjs → load-config-DMK9lZ6l.cjs} +1 -1
- package/dist/shared/{parse-ast-index-DvsltErM.mjs → parse-ast-index-CxOeb18k.mjs} +2 -2
- package/dist/shared/{parse-ast-index-s89_hDKs.cjs → parse-ast-index-KEAbj-mg.cjs} +1 -1
- package/dist/shared/{src-nzgRjiFh.cjs → src-BxeIKRJw.cjs} +21 -49
- package/dist/shared/{src-Dn-0iyac.mjs → src-CDU_7ANc.mjs} +26 -52
- package/dist/{src-DiRgP6G6.js → src-BJTumhB6.js} +6 -24
- package/package.json +3 -3
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-
|
|
2
|
+
const require_src = require('./shared/src-BxeIKRJw.cjs');
|
|
3
3
|
const require_dist = require('./shared/dist-BMVjvV-v.cjs');
|
|
4
|
-
require('./shared/parse-ast-index-
|
|
5
|
-
const require_load_config = require('./shared/load-config-
|
|
4
|
+
require('./shared/parse-ast-index-KEAbj-mg.cjs');
|
|
5
|
+
const require_load_config = require('./shared/load-config-DMK9lZ6l.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-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-CDU_7ANc.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-CKZBJrcD.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-
|
|
1
|
+
const require_src = require('./shared/src-BxeIKRJw.cjs');
|
|
2
2
|
require('./shared/dist-BMVjvV-v.cjs');
|
|
3
|
-
require('./shared/parse-ast-index-
|
|
4
|
-
const require_load_config = require('./shared/load-config-
|
|
3
|
+
require('./shared/parse-ast-index-KEAbj-mg.cjs');
|
|
4
|
+
const require_load_config = require('./shared/load-config-DMK9lZ6l.cjs');
|
|
5
5
|
|
|
6
6
|
//#region src/config.ts
|
|
7
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-DWPMeQu2.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-BSocIkiN.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-CDU_7ANc.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-CKZBJrcD.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-BJTumhB6.js";
|
|
2
2
|
import { ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi-browser.js";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
2
|
+
const require_src = require('./shared/src-BxeIKRJw.cjs');
|
|
3
3
|
require('./shared/dist-BMVjvV-v.cjs');
|
|
4
|
-
require('./shared/parse-ast-index-
|
|
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_url = require_chunk.__toESM(require("node:url"));
|
|
7
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-DWPMeQu2.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-BSocIkiN.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-CDU_7ANc.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.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-DWPMeQu2.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-BSocIkiN.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-
|
|
1
|
+
const require_src = require('./shared/src-BxeIKRJw.cjs');
|
|
2
2
|
require('./shared/dist-BMVjvV-v.cjs');
|
|
3
|
-
require('./shared/parse-ast-index-
|
|
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-DWPMeQu2.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-BSocIkiN.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-CDU_7ANc.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
1
|
const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
2
|
+
const require_src = require('./shared/src-BxeIKRJw.cjs');
|
|
3
3
|
require('./shared/dist-BMVjvV-v.cjs');
|
|
4
|
-
require('./shared/parse-ast-index-
|
|
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-CDU_7ANc.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/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
|
|
@@ -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, PreRenderedChunk as PreRenderedChunk$1, TransformOptions } from "../rolldown-binding.wasi.cjs";
|
|
2
2
|
import { Program } from "@oxc-project/types";
|
|
3
3
|
|
|
4
4
|
//#region src/log/logging.d.ts
|
|
@@ -136,7 +136,6 @@ interface PreRenderedAsset {
|
|
|
136
136
|
}
|
|
137
137
|
type AssetFileNamesFunction = (chunkInfo: PreRenderedAsset) => string;
|
|
138
138
|
type GlobalsFunction = (name: string) => string;
|
|
139
|
-
type ESTarget = "es6" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "es2023" | "es2024" | "esnext";
|
|
140
139
|
type MinifyOptions = BindingMinifyOptions;
|
|
141
140
|
interface OutputOptions {
|
|
142
141
|
dir?: string;
|
|
@@ -282,7 +281,7 @@ interface OutputOptions {
|
|
|
282
281
|
legalComments?: "none" | "inline";
|
|
283
282
|
plugins?: RolldownOutputPluginOption;
|
|
284
283
|
polyfillRequire?: boolean;
|
|
285
|
-
target?:
|
|
284
|
+
target?: string | string[];
|
|
286
285
|
hoistTransitiveImports?: false;
|
|
287
286
|
preserveModules?: boolean;
|
|
288
287
|
virtualDirname?: string;
|
|
@@ -702,10 +701,10 @@ declare class BuiltinPlugin {
|
|
|
702
701
|
_options?: unknown;
|
|
703
702
|
constructor(name: BindingBuiltinPluginName, _options?: unknown);
|
|
704
703
|
}
|
|
705
|
-
declare function modulePreloadPolyfillPlugin(
|
|
704
|
+
declare function modulePreloadPolyfillPlugin(): BuiltinPlugin;
|
|
706
705
|
declare function dynamicImportVarsPlugin(config?: BindingDynamicImportVarsPluginConfig): BuiltinPlugin;
|
|
707
|
-
declare function importGlobPlugin(config?:
|
|
708
|
-
declare function reportPlugin(config?:
|
|
706
|
+
declare function importGlobPlugin(config?: BindingImportGlobPluginConfig): BuiltinPlugin;
|
|
707
|
+
declare function reportPlugin(config?: BindingReporterPluginConfig): BuiltinPlugin;
|
|
709
708
|
declare function manifestPlugin(config?: BindingManifestPluginConfig): BuiltinPlugin;
|
|
710
709
|
declare function wasmHelperPlugin(): BuiltinPlugin;
|
|
711
710
|
declare function wasmFallbackPlugin(): BuiltinPlugin;
|
|
@@ -905,9 +904,13 @@ interface Plugin<A = any> extends OutputPlugin, Partial<PluginHooks> {
|
|
|
905
904
|
api?: A;
|
|
906
905
|
}
|
|
907
906
|
type RolldownPlugin<A = any> = Plugin<A> | BuiltinPlugin | ParallelPlugin;
|
|
908
|
-
type RolldownPluginOption<A = any> = MaybePromise<NullValue<RolldownPlugin<A>> |
|
|
907
|
+
type RolldownPluginOption<A = any> = MaybePromise<NullValue<RolldownPlugin<A>> | {
|
|
908
|
+
name: string
|
|
909
|
+
} | false | RolldownPluginOption[]>;
|
|
909
910
|
type RolldownOutputPlugin = OutputPlugin | BuiltinPlugin;
|
|
910
|
-
type RolldownOutputPluginOption = MaybePromise<NullValue<RolldownOutputPlugin> |
|
|
911
|
+
type RolldownOutputPluginOption = MaybePromise<NullValue<RolldownOutputPlugin> | {
|
|
912
|
+
name: string
|
|
913
|
+
} | false | RolldownOutputPluginOption[]>;
|
|
911
914
|
|
|
912
915
|
//#endregion
|
|
913
916
|
//#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, PreRenderedChunk as PreRenderedChunk$1, TransformOptions } from "../rolldown-binding.wasi.cjs";
|
|
2
2
|
import { Program } from "@oxc-project/types";
|
|
3
3
|
|
|
4
4
|
//#region src/log/logging.d.ts
|
|
@@ -136,7 +136,6 @@ interface PreRenderedAsset {
|
|
|
136
136
|
}
|
|
137
137
|
type AssetFileNamesFunction = (chunkInfo: PreRenderedAsset) => string;
|
|
138
138
|
type GlobalsFunction = (name: string) => string;
|
|
139
|
-
type ESTarget = "es6" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "es2023" | "es2024" | "esnext";
|
|
140
139
|
type MinifyOptions = BindingMinifyOptions;
|
|
141
140
|
interface OutputOptions {
|
|
142
141
|
dir?: string;
|
|
@@ -282,7 +281,7 @@ interface OutputOptions {
|
|
|
282
281
|
legalComments?: "none" | "inline";
|
|
283
282
|
plugins?: RolldownOutputPluginOption;
|
|
284
283
|
polyfillRequire?: boolean;
|
|
285
|
-
target?:
|
|
284
|
+
target?: string | string[];
|
|
286
285
|
hoistTransitiveImports?: false;
|
|
287
286
|
preserveModules?: boolean;
|
|
288
287
|
virtualDirname?: string;
|
|
@@ -702,10 +701,10 @@ declare class BuiltinPlugin {
|
|
|
702
701
|
_options?: unknown;
|
|
703
702
|
constructor(name: BindingBuiltinPluginName, _options?: unknown);
|
|
704
703
|
}
|
|
705
|
-
declare function modulePreloadPolyfillPlugin(
|
|
704
|
+
declare function modulePreloadPolyfillPlugin(): BuiltinPlugin;
|
|
706
705
|
declare function dynamicImportVarsPlugin(config?: BindingDynamicImportVarsPluginConfig): BuiltinPlugin;
|
|
707
|
-
declare function importGlobPlugin(config?:
|
|
708
|
-
declare function reportPlugin(config?:
|
|
706
|
+
declare function importGlobPlugin(config?: BindingImportGlobPluginConfig): BuiltinPlugin;
|
|
707
|
+
declare function reportPlugin(config?: BindingReporterPluginConfig): BuiltinPlugin;
|
|
709
708
|
declare function manifestPlugin(config?: BindingManifestPluginConfig): BuiltinPlugin;
|
|
710
709
|
declare function wasmHelperPlugin(): BuiltinPlugin;
|
|
711
710
|
declare function wasmFallbackPlugin(): BuiltinPlugin;
|
|
@@ -905,9 +904,13 @@ interface Plugin<A = any> extends OutputPlugin, Partial<PluginHooks> {
|
|
|
905
904
|
api?: A;
|
|
906
905
|
}
|
|
907
906
|
type RolldownPlugin<A = any> = Plugin<A> | BuiltinPlugin | ParallelPlugin;
|
|
908
|
-
type RolldownPluginOption<A = any> = MaybePromise<NullValue<RolldownPlugin<A>> |
|
|
907
|
+
type RolldownPluginOption<A = any> = MaybePromise<NullValue<RolldownPlugin<A>> | {
|
|
908
|
+
name: string
|
|
909
|
+
} | false | RolldownPluginOption[]>;
|
|
909
910
|
type RolldownOutputPlugin = OutputPlugin | BuiltinPlugin;
|
|
910
|
-
type RolldownOutputPluginOption = MaybePromise<NullValue<RolldownOutputPlugin> |
|
|
911
|
+
type RolldownOutputPluginOption = MaybePromise<NullValue<RolldownOutputPlugin> | {
|
|
912
|
+
name: string
|
|
913
|
+
} | false | RolldownOutputPluginOption[]>;
|
|
911
914
|
|
|
912
915
|
//#endregion
|
|
913
916
|
//#region src/options/generated/checks-options.d.ts
|
|
@@ -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-CDU_7ANc.mjs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { pathToFileURL } from "node:url";
|
|
5
5
|
import { cwd } from "node:process";
|
|
@@ -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-BxeIKRJw.cjs');
|
|
3
3
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
4
4
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
5
5
|
const node_process = require_chunk.__toESM(require("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
|
|
@@ -181,7 +181,7 @@ function augmentCodeLocation(properties, pos, source, id) {
|
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
//#endregion
|
|
184
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
184
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.70.0/node_modules/oxc-parser/wrap.mjs
|
|
185
185
|
function wrap$1(result) {
|
|
186
186
|
let program, module$1, comments, errors;
|
|
187
187
|
return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DDkG_k5U.cjs');
|
|
2
2
|
const require_dist = require('./dist-BMVjvV-v.cjs');
|
|
3
|
-
const require_parse_ast_index = require('./parse-ast-index-
|
|
3
|
+
const require_parse_ast_index = require('./parse-ast-index-KEAbj-mg.cjs');
|
|
4
4
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("../rolldown-binding.wasi.cjs"));
|
|
5
5
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
6
6
|
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
|
|
@@ -36,8 +36,8 @@ var BuiltinPlugin = class {
|
|
|
36
36
|
this._options = _options;
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
|
-
function modulePreloadPolyfillPlugin(
|
|
40
|
-
return new BuiltinPlugin("builtin:module-preload-polyfill"
|
|
39
|
+
function modulePreloadPolyfillPlugin() {
|
|
40
|
+
return new BuiltinPlugin("builtin:module-preload-polyfill");
|
|
41
41
|
}
|
|
42
42
|
function dynamicImportVarsPlugin(config) {
|
|
43
43
|
return new BuiltinPlugin("builtin:dynamic-import-vars", config);
|
|
@@ -1524,11 +1524,7 @@ function convertAction(jsonSchema, valibotAction, config) {
|
|
|
1524
1524
|
jsonSchema.const = valibotAction.requirement;
|
|
1525
1525
|
break;
|
|
1526
1526
|
}
|
|
1527
|
-
default: handleError(
|
|
1528
|
-
// @ts-expect-error
|
|
1529
|
-
`The "${valibotAction.type}" action cannot be converted to JSON Schema.`,
|
|
1530
|
-
config
|
|
1531
|
-
);
|
|
1527
|
+
default: handleError(`The "${valibotAction.type}" action cannot be converted to JSON Schema.`, config);
|
|
1532
1528
|
}
|
|
1533
1529
|
return jsonSchema;
|
|
1534
1530
|
}
|
|
@@ -1662,11 +1658,7 @@ function convertSchema(jsonSchema, valibotSchema, config, context) {
|
|
|
1662
1658
|
jsonSchema.$ref = `#/$defs/${referenceId2}`;
|
|
1663
1659
|
break;
|
|
1664
1660
|
}
|
|
1665
|
-
default: handleError(
|
|
1666
|
-
// @ts-expect-error
|
|
1667
|
-
`The "${valibotSchema.type}" schema cannot be converted to JSON Schema.`,
|
|
1668
|
-
config
|
|
1669
|
-
);
|
|
1661
|
+
default: handleError(`The "${valibotSchema.type}" schema cannot be converted to JSON Schema.`, config);
|
|
1670
1662
|
}
|
|
1671
1663
|
return jsonSchema;
|
|
1672
1664
|
}
|
|
@@ -1678,21 +1670,9 @@ function toJsonSchema(schema, config) {
|
|
|
1678
1670
|
};
|
|
1679
1671
|
if (config?.definitions) {
|
|
1680
1672
|
for (const key in config.definitions) context.referenceMap.set(config.definitions[key], key);
|
|
1681
|
-
for (const key in config.definitions) context.definitions[key] = convertSchema(
|
|
1682
|
-
{},
|
|
1683
|
-
// @ts-expect-error
|
|
1684
|
-
config.definitions[key],
|
|
1685
|
-
config,
|
|
1686
|
-
context
|
|
1687
|
-
);
|
|
1673
|
+
for (const key in config.definitions) context.definitions[key] = convertSchema({}, config.definitions[key], config, context);
|
|
1688
1674
|
}
|
|
1689
|
-
const jsonSchema = convertSchema(
|
|
1690
|
-
{ $schema: "http://json-schema.org/draft-07/schema#" },
|
|
1691
|
-
// @ts-expect-error
|
|
1692
|
-
schema,
|
|
1693
|
-
config,
|
|
1694
|
-
context
|
|
1695
|
-
);
|
|
1675
|
+
const jsonSchema = convertSchema({ $schema: "http://json-schema.org/draft-07/schema#" }, schema, config, context);
|
|
1696
1676
|
if (context.referenceMap.size) jsonSchema.$defs = context.definitions;
|
|
1697
1677
|
return jsonSchema;
|
|
1698
1678
|
}
|
|
@@ -1904,20 +1884,6 @@ const InputCliOptionsSchema = omit(strictObject({
|
|
|
1904
1884
|
"profilerNames",
|
|
1905
1885
|
"watch"
|
|
1906
1886
|
]);
|
|
1907
|
-
const ESTargetSchema = union([
|
|
1908
|
-
literal("es6"),
|
|
1909
|
-
literal("es2015"),
|
|
1910
|
-
literal("es2016"),
|
|
1911
|
-
literal("es2017"),
|
|
1912
|
-
literal("es2018"),
|
|
1913
|
-
literal("es2019"),
|
|
1914
|
-
literal("es2020"),
|
|
1915
|
-
literal("es2021"),
|
|
1916
|
-
literal("es2022"),
|
|
1917
|
-
literal("es2023"),
|
|
1918
|
-
literal("es2024"),
|
|
1919
|
-
literal("esnext")
|
|
1920
|
-
]);
|
|
1921
1887
|
const ModuleFormatSchema = union([
|
|
1922
1888
|
literal("es"),
|
|
1923
1889
|
literal("cjs"),
|
|
@@ -1998,7 +1964,7 @@ const OutputOptionsSchema = strictObject({
|
|
|
1998
1964
|
legalComments: pipe(optional(union([literal("none"), literal("inline")])), description("Control comments in the output")),
|
|
1999
1965
|
plugins: optional(custom(() => true)),
|
|
2000
1966
|
polyfillRequire: pipe(optional(boolean()), description("Disable require polyfill injection")),
|
|
2001
|
-
target: pipe(optional(
|
|
1967
|
+
target: pipe(optional(union([string(), array(string())])), description("The JavaScript target environment")),
|
|
2002
1968
|
hoistTransitiveImports: optional(custom((input) => {
|
|
2003
1969
|
if (input) return false;
|
|
2004
1970
|
return true;
|
|
@@ -4098,7 +4064,7 @@ async function initializeParallelPlugins(plugins) {
|
|
|
4098
4064
|
});
|
|
4099
4065
|
}
|
|
4100
4066
|
if (pluginInfos.length <= 0) return void 0;
|
|
4101
|
-
const count =
|
|
4067
|
+
const count = availableParallelism();
|
|
4102
4068
|
const parallelJsPluginRegistry = new src_rolldown_binding_wasi_cjs.ParallelJsPluginRegistry(count);
|
|
4103
4069
|
const registryId = parallelJsPluginRegistry.id;
|
|
4104
4070
|
const workers = await initializeWorkers(registryId, count, pluginInfos);
|
|
@@ -4136,6 +4102,16 @@ async function initializeWorker(registryId, pluginInfos, threadNumber) {
|
|
|
4136
4102
|
throw e;
|
|
4137
4103
|
}
|
|
4138
4104
|
}
|
|
4105
|
+
const availableParallelism = () => {
|
|
4106
|
+
let availableParallelism$1 = 1;
|
|
4107
|
+
try {
|
|
4108
|
+
availableParallelism$1 = node_os.default.availableParallelism();
|
|
4109
|
+
} catch {
|
|
4110
|
+
const cpus = node_os.default.cpus();
|
|
4111
|
+
if (Array.isArray(cpus) && cpus.length > 0) availableParallelism$1 = cpus.length;
|
|
4112
|
+
}
|
|
4113
|
+
return Math.min(availableParallelism$1, 8);
|
|
4114
|
+
};
|
|
4139
4115
|
|
|
4140
4116
|
//#endregion
|
|
4141
4117
|
//#region src/utils/create-bundler-option.ts
|
|
@@ -4267,11 +4243,7 @@ var WatcherEmitter = class {
|
|
|
4267
4243
|
listeners = new Map();
|
|
4268
4244
|
timer;
|
|
4269
4245
|
constructor() {
|
|
4270
|
-
this.timer = setInterval(
|
|
4271
|
-
() => {},
|
|
4272
|
-
1e9
|
|
4273
|
-
/* Low power usage */
|
|
4274
|
-
);
|
|
4246
|
+
this.timer = setInterval(() => {}, 1e9);
|
|
4275
4247
|
}
|
|
4276
4248
|
on(event, listener) {
|
|
4277
4249
|
const listeners = this.listeners.get(event);
|
|
@@ -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.a29b7fb";
|
|
12
12
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
@@ -31,8 +31,8 @@ var init_utils = __esm({ "src/builtin-plugin/utils.ts"() {} });
|
|
|
31
31
|
|
|
32
32
|
//#endregion
|
|
33
33
|
//#region src/builtin-plugin/constructors.ts
|
|
34
|
-
function modulePreloadPolyfillPlugin(
|
|
35
|
-
return new BuiltinPlugin("builtin:module-preload-polyfill"
|
|
34
|
+
function modulePreloadPolyfillPlugin() {
|
|
35
|
+
return new BuiltinPlugin("builtin:module-preload-polyfill");
|
|
36
36
|
}
|
|
37
37
|
function dynamicImportVarsPlugin(config) {
|
|
38
38
|
return new BuiltinPlugin("builtin:dynamic-import-vars", config);
|
|
@@ -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
|
}
|
|
@@ -1783,7 +1763,7 @@ function getOutputCliKeys() {
|
|
|
1783
1763
|
function getJsonSchema() {
|
|
1784
1764
|
return toJsonSchema(CliOptionsSchema, { errorMode: "ignore" });
|
|
1785
1765
|
}
|
|
1786
|
-
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,
|
|
1766
|
+
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;
|
|
1787
1767
|
var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
1788
1768
|
init_dist$2();
|
|
1789
1769
|
init_dist$3();
|
|
@@ -1992,20 +1972,6 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
1992
1972
|
"profilerNames",
|
|
1993
1973
|
"watch"
|
|
1994
1974
|
]);
|
|
1995
|
-
ESTargetSchema = union([
|
|
1996
|
-
literal("es6"),
|
|
1997
|
-
literal("es2015"),
|
|
1998
|
-
literal("es2016"),
|
|
1999
|
-
literal("es2017"),
|
|
2000
|
-
literal("es2018"),
|
|
2001
|
-
literal("es2019"),
|
|
2002
|
-
literal("es2020"),
|
|
2003
|
-
literal("es2021"),
|
|
2004
|
-
literal("es2022"),
|
|
2005
|
-
literal("es2023"),
|
|
2006
|
-
literal("es2024"),
|
|
2007
|
-
literal("esnext")
|
|
2008
|
-
]);
|
|
2009
1975
|
ModuleFormatSchema = union([
|
|
2010
1976
|
literal("es"),
|
|
2011
1977
|
literal("cjs"),
|
|
@@ -2086,7 +2052,7 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
2086
2052
|
legalComments: pipe(optional(union([literal("none"), literal("inline")])), description("Control comments in the output")),
|
|
2087
2053
|
plugins: optional(custom(() => true)),
|
|
2088
2054
|
polyfillRequire: pipe(optional(boolean()), description("Disable require polyfill injection")),
|
|
2089
|
-
target: pipe(optional(
|
|
2055
|
+
target: pipe(optional(union([string(), array(string())])), description("The JavaScript target environment")),
|
|
2090
2056
|
hoistTransitiveImports: optional(custom((input) => {
|
|
2091
2057
|
if (input) return false;
|
|
2092
2058
|
return true;
|
|
@@ -5440,7 +5406,7 @@ async function initializeParallelPlugins(plugins) {
|
|
|
5440
5406
|
});
|
|
5441
5407
|
}
|
|
5442
5408
|
if (pluginInfos.length <= 0) return void 0;
|
|
5443
|
-
const count =
|
|
5409
|
+
const count = availableParallelism();
|
|
5444
5410
|
const parallelJsPluginRegistry = new ParallelJsPluginRegistry(count);
|
|
5445
5411
|
const registryId = parallelJsPluginRegistry.id;
|
|
5446
5412
|
const workers = await initializeWorkers(registryId, count, pluginInfos);
|
|
@@ -5478,7 +5444,19 @@ async function initializeWorker(registryId, pluginInfos, threadNumber) {
|
|
|
5478
5444
|
throw e$5;
|
|
5479
5445
|
}
|
|
5480
5446
|
}
|
|
5481
|
-
var
|
|
5447
|
+
var availableParallelism;
|
|
5448
|
+
var init_initialize_parallel_plugins = __esm({ "src/utils/initialize-parallel-plugins.ts"() {
|
|
5449
|
+
availableParallelism = () => {
|
|
5450
|
+
let availableParallelism$1 = 1;
|
|
5451
|
+
try {
|
|
5452
|
+
availableParallelism$1 = os.availableParallelism();
|
|
5453
|
+
} catch {
|
|
5454
|
+
const cpus = os.cpus();
|
|
5455
|
+
if (Array.isArray(cpus) && cpus.length > 0) availableParallelism$1 = cpus.length;
|
|
5456
|
+
}
|
|
5457
|
+
return Math.min(availableParallelism$1, 8);
|
|
5458
|
+
};
|
|
5459
|
+
} });
|
|
5482
5460
|
|
|
5483
5461
|
//#endregion
|
|
5484
5462
|
//#region src/utils/create-bundler-option.ts
|
|
@@ -5642,11 +5620,7 @@ var init_watch_emitter = __esm({ "src/api/watch/watch-emitter.ts"() {
|
|
|
5642
5620
|
listeners = new Map();
|
|
5643
5621
|
timer;
|
|
5644
5622
|
constructor() {
|
|
5645
|
-
this.timer = setInterval(
|
|
5646
|
-
() => {},
|
|
5647
|
-
1e9
|
|
5648
|
-
/* Low power usage */
|
|
5649
|
-
);
|
|
5623
|
+
this.timer = setInterval(() => {}, 1e9);
|
|
5650
5624
|
}
|
|
5651
5625
|
on(event, listener) {
|
|
5652
5626
|
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.a29b7fb";
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/builtin-plugin/utils.ts
|
|
@@ -30,8 +30,8 @@ var BuiltinPlugin = class {
|
|
|
30
30
|
this._options = _options;
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
|
-
function modulePreloadPolyfillPlugin(
|
|
34
|
-
return new BuiltinPlugin("builtin:module-preload-polyfill"
|
|
33
|
+
function modulePreloadPolyfillPlugin() {
|
|
34
|
+
return new BuiltinPlugin("builtin:module-preload-polyfill");
|
|
35
35
|
}
|
|
36
36
|
function dynamicImportVarsPlugin(config) {
|
|
37
37
|
return new BuiltinPlugin("builtin:dynamic-import-vars", config);
|
|
@@ -1760,20 +1760,6 @@ const InputCliOptionsSchema = omit(strictObject({
|
|
|
1760
1760
|
"profilerNames",
|
|
1761
1761
|
"watch"
|
|
1762
1762
|
]);
|
|
1763
|
-
const ESTargetSchema = union([
|
|
1764
|
-
literal("es6"),
|
|
1765
|
-
literal("es2015"),
|
|
1766
|
-
literal("es2016"),
|
|
1767
|
-
literal("es2017"),
|
|
1768
|
-
literal("es2018"),
|
|
1769
|
-
literal("es2019"),
|
|
1770
|
-
literal("es2020"),
|
|
1771
|
-
literal("es2021"),
|
|
1772
|
-
literal("es2022"),
|
|
1773
|
-
literal("es2023"),
|
|
1774
|
-
literal("es2024"),
|
|
1775
|
-
literal("esnext")
|
|
1776
|
-
]);
|
|
1777
1763
|
const ModuleFormatSchema = union([
|
|
1778
1764
|
literal("es"),
|
|
1779
1765
|
literal("cjs"),
|
|
@@ -1854,7 +1840,7 @@ const OutputOptionsSchema = strictObject({
|
|
|
1854
1840
|
legalComments: pipe(optional(union([literal("none"), literal("inline")])), description("Control comments in the output")),
|
|
1855
1841
|
plugins: optional(custom(() => true)),
|
|
1856
1842
|
polyfillRequire: pipe(optional(boolean()), description("Disable require polyfill injection")),
|
|
1857
|
-
target: pipe(optional(
|
|
1843
|
+
target: pipe(optional(union([string(), array(string())])), description("The JavaScript target environment")),
|
|
1858
1844
|
hoistTransitiveImports: optional(custom((input) => {
|
|
1859
1845
|
if (input) return false;
|
|
1860
1846
|
return true;
|
|
@@ -2350,7 +2336,7 @@ function bindingPluginOrder(order) {
|
|
|
2350
2336
|
}
|
|
2351
2337
|
|
|
2352
2338
|
//#endregion
|
|
2353
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
2339
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.70.0/node_modules/oxc-parser/wrap.mjs
|
|
2354
2340
|
function wrap$1(result) {
|
|
2355
2341
|
let program, module, comments, errors;
|
|
2356
2342
|
return {
|
|
@@ -4210,11 +4196,7 @@ var WatcherEmitter = class {
|
|
|
4210
4196
|
listeners = new Map();
|
|
4211
4197
|
timer;
|
|
4212
4198
|
constructor() {
|
|
4213
|
-
this.timer = setInterval(
|
|
4214
|
-
() => {},
|
|
4215
|
-
1e9
|
|
4216
|
-
/* Low power usage */
|
|
4217
|
-
);
|
|
4199
|
+
this.timer = setInterval(() => {}, 1e9);
|
|
4218
4200
|
}
|
|
4219
4201
|
on(event, listener) {
|
|
4220
4202
|
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.a29b7fb",
|
|
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": {
|