rolldown 1.0.0-beta.35 → 1.0.0-beta.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +17 -28
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +3 -3
- package/dist/experimental-index.d.mts +8 -5
- package/dist/experimental-index.mjs +6 -4
- package/dist/filter-index.d.mts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/parallel-plugin-worker.mjs +3 -4
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/shared/{binding-9k0egz6L.d.mts → binding-wK0CRIMb.d.mts} +1 -0
- package/dist/shared/{define-config-DhrkZ_o7.d.cts → define-config-wxvILtDx.d.mts} +3 -3
- package/dist/shared/{load-config-C93_L4MP.mjs → load-config-Jqw6FAJp.mjs} +4 -6
- package/dist/shared/parse-ast-index-CkDFQ-07.mjs +10847 -0
- package/dist/shared/{prompt-C5jz26Zn.mjs → prompt-DuG2i9ud.mjs} +4 -7
- package/dist/shared/{src-D954P1TH.mjs → src-WjgJWoNk.mjs} +69 -42
- package/package.json +32 -46
- package/dist/cli.cjs +0 -1773
- package/dist/cli.d.cts +0 -1
- package/dist/config.cjs +0 -12
- package/dist/config.d.cts +0 -10
- package/dist/experimental-index.cjs +0 -154
- package/dist/experimental-index.d.cts +0 -99
- package/dist/filter-index.cjs +0 -106
- package/dist/filter-index.d.cts +0 -4
- package/dist/index.cjs +0 -9
- package/dist/index.d.cts +0 -3
- package/dist/parallel-plugin-worker.cjs +0 -33
- package/dist/parallel-plugin-worker.d.cts +0 -1
- package/dist/parallel-plugin.cjs +0 -8
- package/dist/parallel-plugin.d.cts +0 -14
- package/dist/parse-ast-index.cjs +0 -4
- package/dist/parse-ast-index.d.cts +0 -8
- package/dist/shared/binding-D13M6Llu.d.cts +0 -1425
- package/dist/shared/chunk-DDkG_k5U.cjs +0 -39
- package/dist/shared/define-config-3arq8OPE.d.mts +0 -1421
- package/dist/shared/load-config-S_ofSLrj.cjs +0 -130
- package/dist/shared/misc-DksvspN4.cjs +0 -58
- package/dist/shared/parse-ast-index-BadydpMA.mjs +0 -725
- package/dist/shared/parse-ast-index-cePJvlvW.cjs +0 -871
- package/dist/shared/prompt-Q05EYrFb.cjs +0 -858
- package/dist/shared/src-BBMxhaqf.cjs +0 -4673
|
@@ -137,8 +137,7 @@ function requirePicocolors() {
|
|
|
137
137
|
picocolors.exports.createColors = createColors;
|
|
138
138
|
return picocolors.exports;
|
|
139
139
|
}
|
|
140
|
-
|
|
141
|
-
const e = /* @__PURE__ */ getDefaultExportFromCjs(picocolorsExports);
|
|
140
|
+
const e = /* @__PURE__ */ getDefaultExportFromCjs(/* @__PURE__ */ requirePicocolors());
|
|
142
141
|
function J({ onlyFirst: t = false } = {}) {
|
|
143
142
|
const F$1 = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");
|
|
144
143
|
return new RegExp(F$1, t ? void 0 : "g");
|
|
@@ -596,12 +595,10 @@ let wD = class extends x {
|
|
|
596
595
|
return this.options[this.cursor].value;
|
|
597
596
|
}
|
|
598
597
|
toggleAll() {
|
|
599
|
-
|
|
600
|
-
this.value = u$1 ? [] : this.options.map((F$1) => F$1.value);
|
|
598
|
+
this.value = this.value.length === this.options.length ? [] : this.options.map((F$1) => F$1.value);
|
|
601
599
|
}
|
|
602
600
|
toggleValue() {
|
|
603
|
-
|
|
604
|
-
this.value = u$1 ? this.value.filter((F$1) => F$1 !== this._value) : [...this.value, this._value];
|
|
601
|
+
this.value = this.value.includes(this._value) ? this.value.filter((F$1) => F$1 !== this._value) : [...this.value, this._value];
|
|
605
602
|
}
|
|
606
603
|
};
|
|
607
604
|
var SD = Object.defineProperty, $D = (t, u$1, F$1) => u$1 in t ? SD(t, u$1, {
|
|
@@ -811,7 +808,7 @@ async function prompt(message, opts = {}) {
|
|
|
811
808
|
if (Error.captureStackTrace) Error.captureStackTrace(error, prompt);
|
|
812
809
|
throw error;
|
|
813
810
|
}
|
|
814
|
-
case "undefined": return
|
|
811
|
+
case "undefined": return;
|
|
815
812
|
case "null": return null;
|
|
816
813
|
case "symbol": return kCancel;
|
|
817
814
|
default:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BindingAttachDebugInfo, BindingBundler, BindingCallableBuiltinPlugin, BindingChunkModuleOrderBy, BindingJsx, BindingLogLevel, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects, BindingWatcher, ParallelJsPluginRegistry, augmentCodeLocation, error, logCycleLoading, logDuplicateJsxConfig, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst, shutdownAsyncRuntime, startAsyncRuntime } from "./parse-ast-index-
|
|
1
|
+
import { BindingAttachDebugInfo, BindingBundler, BindingCallableBuiltinPlugin, BindingChunkModuleOrderBy, BindingJsx, BindingLogLevel, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects, BindingWatcher, ParallelJsPluginRegistry, augmentCodeLocation, error, logCycleLoading, logDuplicateJsxConfig, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst, shutdownAsyncRuntime, startAsyncRuntime } from "./parse-ast-index-CkDFQ-07.mjs";
|
|
2
2
|
import { arraify, noop, unimplemented, unreachable, unsupported } from "./misc-CQeo-AFx.mjs";
|
|
3
3
|
import { Worker } from "node:worker_threads";
|
|
4
4
|
import path from "node:path";
|
|
@@ -9,7 +9,7 @@ import fsp from "node:fs/promises";
|
|
|
9
9
|
import os from "node:os";
|
|
10
10
|
|
|
11
11
|
//#region package.json
|
|
12
|
-
var version = "1.0.0-beta.
|
|
12
|
+
var version = "1.0.0-beta.36";
|
|
13
13
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
14
14
|
|
|
15
15
|
//#endregion
|
|
@@ -85,8 +85,7 @@ function getLogHandler(level, code, logger, pluginName, logLevel) {
|
|
|
85
85
|
function getLogger(plugins, onLog, logLevel, watchMode) {
|
|
86
86
|
const minimalPriority = logLevelPriority[logLevel];
|
|
87
87
|
const logger = (level, log, skipped = /* @__PURE__ */ new Set()) => {
|
|
88
|
-
|
|
89
|
-
if (logPriority < minimalPriority) return;
|
|
88
|
+
if (logLevelPriority[level] < minimalPriority) return;
|
|
90
89
|
for (const plugin of getSortedPlugins("onLog", plugins)) {
|
|
91
90
|
if (skipped.has(plugin)) continue;
|
|
92
91
|
const { onLog: pluginOnLog } = plugin;
|
|
@@ -95,8 +94,7 @@ function getLogger(plugins, onLog, logLevel, watchMode) {
|
|
|
95
94
|
if (logLevelPriority[level$1] < minimalPriority) return () => {};
|
|
96
95
|
return (log$1) => logger(level$1, normalizeLog(log$1), new Set(skipped).add(plugin));
|
|
97
96
|
};
|
|
98
|
-
|
|
99
|
-
if (handler.call({
|
|
97
|
+
if (("handler" in pluginOnLog ? pluginOnLog.handler : pluginOnLog).call({
|
|
100
98
|
debug: getLogHandler$1(LOG_LEVEL_DEBUG),
|
|
101
99
|
error: (log$1) => error(normalizeLog(log$1)),
|
|
102
100
|
info: getLogHandler$1(LOG_LEVEL_INFO),
|
|
@@ -178,7 +176,7 @@ function normalizeHook(hook) {
|
|
|
178
176
|
//#endregion
|
|
179
177
|
//#region src/utils/normalize-string-or-regex.ts
|
|
180
178
|
function normalizedStringOrRegex(pattern) {
|
|
181
|
-
if (!pattern) return
|
|
179
|
+
if (!pattern) return;
|
|
182
180
|
if (!isReadonlyArray(pattern)) return [pattern];
|
|
183
181
|
return pattern;
|
|
184
182
|
}
|
|
@@ -402,9 +400,9 @@ var PluginDriver = class {
|
|
|
402
400
|
};
|
|
403
401
|
function getObjectPlugins(plugins) {
|
|
404
402
|
return plugins.filter((plugin) => {
|
|
405
|
-
if (!plugin) return
|
|
406
|
-
if ("_parallel" in plugin) return
|
|
407
|
-
if (isBuiltinPlugin(plugin)) return
|
|
403
|
+
if (!plugin) return;
|
|
404
|
+
if ("_parallel" in plugin) return;
|
|
405
|
+
if (isBuiltinPlugin(plugin)) return;
|
|
408
406
|
return plugin;
|
|
409
407
|
});
|
|
410
408
|
}
|
|
@@ -1942,10 +1940,43 @@ const ChecksOptionsSchema = strictObject({
|
|
|
1942
1940
|
configurationFieldConflict: pipe(optional(boolean()), description("Whether to emit warning when detecting configuration field conflict")),
|
|
1943
1941
|
preferBuiltinFeature: pipe(optional(boolean()), description("Whether to emit warning when detecting prefer builtin feature"))
|
|
1944
1942
|
});
|
|
1943
|
+
const CompressOptionsKeepNamesSchema = strictObject({
|
|
1944
|
+
function: optional(boolean()),
|
|
1945
|
+
class: optional(boolean())
|
|
1946
|
+
});
|
|
1947
|
+
const CompressOptionsSchema = strictObject({
|
|
1948
|
+
target: optional(union([
|
|
1949
|
+
literal("esnext"),
|
|
1950
|
+
literal("es2015"),
|
|
1951
|
+
literal("es2016"),
|
|
1952
|
+
literal("es2017"),
|
|
1953
|
+
literal("es2018"),
|
|
1954
|
+
literal("es2019"),
|
|
1955
|
+
literal("es2020"),
|
|
1956
|
+
literal("es2021"),
|
|
1957
|
+
literal("es2022"),
|
|
1958
|
+
literal("es2023"),
|
|
1959
|
+
literal("es2024")
|
|
1960
|
+
])),
|
|
1961
|
+
dropConsole: optional(boolean()),
|
|
1962
|
+
dropDebugger: optional(boolean()),
|
|
1963
|
+
keepNames: optional(CompressOptionsKeepNamesSchema),
|
|
1964
|
+
unused: optional(union([boolean(), literal("keep_assign")]))
|
|
1965
|
+
});
|
|
1966
|
+
const MangleOptionsKeepNamesSchema = strictObject({
|
|
1967
|
+
function: optional(boolean()),
|
|
1968
|
+
class: optional(boolean())
|
|
1969
|
+
});
|
|
1970
|
+
const MangleOptionsSchema = strictObject({
|
|
1971
|
+
toplevel: optional(boolean()),
|
|
1972
|
+
keepNames: optional(union([boolean(), MangleOptionsKeepNamesSchema])),
|
|
1973
|
+
debug: optional(boolean())
|
|
1974
|
+
});
|
|
1975
|
+
const CodegenOptionsSchema = strictObject({ removeWhitespace: optional(boolean()) });
|
|
1945
1976
|
const MinifyOptionsSchema = strictObject({
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1977
|
+
compress: optional(union([boolean(), CompressOptionsSchema])),
|
|
1978
|
+
mangle: optional(union([boolean(), MangleOptionsSchema])),
|
|
1979
|
+
codegen: optional(union([boolean(), CodegenOptionsSchema]))
|
|
1949
1980
|
});
|
|
1950
1981
|
const ResolveOptionsSchema = strictObject({
|
|
1951
1982
|
alias: optional(record(string(), union([string(), array(string())]))),
|
|
@@ -2219,8 +2250,7 @@ const CliOptionsSchema = strictObject({
|
|
|
2219
2250
|
function validateCliOptions(options) {
|
|
2220
2251
|
let parsed = safeParse(CliOptionsSchema, options);
|
|
2221
2252
|
return [parsed.output, parsed.issues?.map((issue) => {
|
|
2222
|
-
|
|
2223
|
-
return `Invalid value for option ${option}: ${issue.message}`;
|
|
2253
|
+
return `Invalid value for option ${issue.path?.map((pathItem) => pathItem.key).join(" ")}: ${issue.message}`;
|
|
2224
2254
|
})];
|
|
2225
2255
|
}
|
|
2226
2256
|
const inputHelperMsgRecord = {
|
|
@@ -2411,7 +2441,7 @@ function generateAtomMatcher(kind, matcher) {
|
|
|
2411
2441
|
return kind === "code" ? filter.code(matcher) : filter.id(matcher);
|
|
2412
2442
|
}
|
|
2413
2443
|
function transformFilterMatcherToFilterExprs(filterOption) {
|
|
2414
|
-
if (!filterOption) return
|
|
2444
|
+
if (!filterOption) return;
|
|
2415
2445
|
if (Array.isArray(filterOption)) return filterOption;
|
|
2416
2446
|
const { id, code, moduleType } = filterOption;
|
|
2417
2447
|
let ret = [];
|
|
@@ -2509,24 +2539,24 @@ function bindingifyFilterExprImpl(expr, list) {
|
|
|
2509
2539
|
}
|
|
2510
2540
|
}
|
|
2511
2541
|
function bindingifyResolveIdFilter(filterOption) {
|
|
2512
|
-
if (!filterOption) return
|
|
2542
|
+
if (!filterOption) return;
|
|
2513
2543
|
if (Array.isArray(filterOption)) return { value: filterOption.map(bindingifyFilterExpr) };
|
|
2514
2544
|
return filterOption.id ? bindingifyGeneralHookFilter("id", filterOption.id) : void 0;
|
|
2515
2545
|
}
|
|
2516
2546
|
function bindingifyLoadFilter(filterOption) {
|
|
2517
|
-
if (!filterOption) return
|
|
2547
|
+
if (!filterOption) return;
|
|
2518
2548
|
if (Array.isArray(filterOption)) return { value: filterOption.map(bindingifyFilterExpr) };
|
|
2519
2549
|
return filterOption.id ? bindingifyGeneralHookFilter("id", filterOption.id) : void 0;
|
|
2520
2550
|
}
|
|
2521
2551
|
function bindingifyTransformFilter(filterOption) {
|
|
2522
|
-
if (!filterOption) return
|
|
2552
|
+
if (!filterOption) return;
|
|
2523
2553
|
let filterExprs = transformFilterMatcherToFilterExprs(filterOption);
|
|
2524
2554
|
let ret = [];
|
|
2525
2555
|
if (filterExprs) ret = filterExprs.map(bindingifyFilterExpr);
|
|
2526
2556
|
return { value: ret.length > 0 ? ret : void 0 };
|
|
2527
2557
|
}
|
|
2528
2558
|
function bindingifyRenderChunkFilter(filterOption) {
|
|
2529
|
-
if (!filterOption) return
|
|
2559
|
+
if (!filterOption) return;
|
|
2530
2560
|
if (Array.isArray(filterOption)) return { value: filterOption.map(bindingifyFilterExpr) };
|
|
2531
2561
|
return filterOption.code ? bindingifyGeneralHookFilter("code", filterOption.code) : void 0;
|
|
2532
2562
|
}
|
|
@@ -2541,7 +2571,7 @@ function bindingPluginOrder(order) {
|
|
|
2541
2571
|
case "post": return BindingPluginOrder.Post;
|
|
2542
2572
|
case "pre": return BindingPluginOrder.Pre;
|
|
2543
2573
|
case null:
|
|
2544
|
-
case void 0: return
|
|
2574
|
+
case void 0: return;
|
|
2545
2575
|
default: throw new Error(`Unknown plugin order: ${order}`);
|
|
2546
2576
|
}
|
|
2547
2577
|
}
|
|
@@ -2708,6 +2738,9 @@ var TransformPluginContextImpl = class extends PluginContextImpl {
|
|
|
2708
2738
|
getCombinedSourcemap() {
|
|
2709
2739
|
return JSON.parse(this.inner.getCombinedSourcemap());
|
|
2710
2740
|
}
|
|
2741
|
+
addWatchFile(id) {
|
|
2742
|
+
this.inner.addWatchFile(id);
|
|
2743
|
+
}
|
|
2711
2744
|
};
|
|
2712
2745
|
|
|
2713
2746
|
//#endregion
|
|
@@ -2807,7 +2840,7 @@ function bindingifyTransform(args$1) {
|
|
|
2807
2840
|
return {
|
|
2808
2841
|
plugin: async (ctx, code, id, meta$1) => {
|
|
2809
2842
|
const ret = await handler.call(new TransformPluginContextImpl(args$1.outputOptions, ctx.inner(), args$1.plugin, args$1.pluginContextData, ctx, id, code, args$1.onLog, args$1.logLevel, args$1.watchMode), code, id, meta$1);
|
|
2810
|
-
if (ret == null) return
|
|
2843
|
+
if (ret == null) return;
|
|
2811
2844
|
if (typeof ret === "string") return { code: ret };
|
|
2812
2845
|
let moduleOption = args$1.pluginContextData.updateModuleOption(id, {
|
|
2813
2846
|
meta: ret.meta ?? {},
|
|
@@ -2941,9 +2974,8 @@ function transformChunkModules(modules) {
|
|
|
2941
2974
|
//#endregion
|
|
2942
2975
|
//#region src/utils/transform-to-rollup-output.ts
|
|
2943
2976
|
function transformToRollupSourceMap(map) {
|
|
2944
|
-
const parsed = JSON.parse(map);
|
|
2945
2977
|
const obj = {
|
|
2946
|
-
...
|
|
2978
|
+
...JSON.parse(map),
|
|
2947
2979
|
toString() {
|
|
2948
2980
|
return JSON.stringify(obj);
|
|
2949
2981
|
},
|
|
@@ -3485,13 +3517,10 @@ var ChunkingContextImpl = class {
|
|
|
3485
3517
|
}
|
|
3486
3518
|
getModuleInfo(moduleId) {
|
|
3487
3519
|
const bindingInfo = this.context.getModuleInfo(moduleId);
|
|
3488
|
-
if (bindingInfo) {
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
});
|
|
3493
|
-
return info;
|
|
3494
|
-
}
|
|
3520
|
+
if (bindingInfo) return transformModuleInfo(bindingInfo, {
|
|
3521
|
+
moduleSideEffects: null,
|
|
3522
|
+
meta: {}
|
|
3523
|
+
});
|
|
3495
3524
|
return null;
|
|
3496
3525
|
}
|
|
3497
3526
|
};
|
|
@@ -3564,7 +3593,7 @@ function bindingifySourcemap(sourcemap) {
|
|
|
3564
3593
|
case true: return "file";
|
|
3565
3594
|
case "inline": return "inline";
|
|
3566
3595
|
case false:
|
|
3567
|
-
case void 0: return
|
|
3596
|
+
case void 0: return;
|
|
3568
3597
|
case "hidden": return "hidden";
|
|
3569
3598
|
default: throw new Error(`unknown sourcemap: ${sourcemap}`);
|
|
3570
3599
|
}
|
|
@@ -3590,7 +3619,7 @@ function bindingifyAdvancedChunks(advancedChunks, manualChunks) {
|
|
|
3590
3619
|
else if (manualChunks != null) advancedChunks = { groups: [{ name(moduleId, ctx) {
|
|
3591
3620
|
return manualChunks(moduleId, { getModuleInfo: (id) => ctx.getModuleInfo(id) });
|
|
3592
3621
|
} }] };
|
|
3593
|
-
if (advancedChunks == null) return
|
|
3622
|
+
if (advancedChunks == null) return;
|
|
3594
3623
|
const { groups,...restAdvancedChunks } = advancedChunks;
|
|
3595
3624
|
return {
|
|
3596
3625
|
...restAdvancedChunks,
|
|
@@ -3794,8 +3823,7 @@ var PluginContextData = class {
|
|
|
3794
3823
|
return info;
|
|
3795
3824
|
}
|
|
3796
3825
|
getModuleIds(context) {
|
|
3797
|
-
|
|
3798
|
-
return moduleIds.values();
|
|
3826
|
+
return context.getModuleIds().values();
|
|
3799
3827
|
}
|
|
3800
3828
|
saveResolveOptions(options) {
|
|
3801
3829
|
const index = this.resolveOptionsMap.size;
|
|
@@ -3838,7 +3866,7 @@ var PluginContextData = class {
|
|
|
3838
3866
|
function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normalizedOutputPlugins, onLog, logLevel, watchMode) {
|
|
3839
3867
|
const pluginContextData = new PluginContextData(onLog, outputOptions, normalizedOutputPlugins);
|
|
3840
3868
|
const plugins = rawPlugins.map((plugin) => {
|
|
3841
|
-
if ("_parallel" in plugin) return
|
|
3869
|
+
if ("_parallel" in plugin) return;
|
|
3842
3870
|
if (isBuiltinPlugin(plugin)) return bindingifyBuiltInPlugin(plugin);
|
|
3843
3871
|
return bindingifyPlugin(plugin, inputOptions, outputOptions, pluginContextData, normalizedOutputPlugins, onLog, logLevel, watchMode);
|
|
3844
3872
|
});
|
|
@@ -3893,7 +3921,7 @@ function bindingifyHmr(hmr) {
|
|
|
3893
3921
|
}
|
|
3894
3922
|
function bindingifyAttachDebugInfo(attachDebugInfo) {
|
|
3895
3923
|
switch (attachDebugInfo) {
|
|
3896
|
-
case void 0: return
|
|
3924
|
+
case void 0: return;
|
|
3897
3925
|
case "full": return BindingAttachDebugInfo.Full;
|
|
3898
3926
|
case "simple": return BindingAttachDebugInfo.Simple;
|
|
3899
3927
|
case "none": return BindingAttachDebugInfo.None;
|
|
@@ -4048,7 +4076,7 @@ function bindingifyWatch(watch$1) {
|
|
|
4048
4076
|
};
|
|
4049
4077
|
}
|
|
4050
4078
|
function bindingifyTreeshakeOptions(config) {
|
|
4051
|
-
if (config === false) return
|
|
4079
|
+
if (config === false) return;
|
|
4052
4080
|
if (config === true || config === void 0) return { moduleSideEffects: true };
|
|
4053
4081
|
let normalizedConfig = {
|
|
4054
4082
|
moduleSideEffects: true,
|
|
@@ -4094,7 +4122,7 @@ function bindingifyMakeAbsoluteExternalsRelative(makeAbsoluteExternalsRelative)
|
|
|
4094
4122
|
};
|
|
4095
4123
|
}
|
|
4096
4124
|
function bindingifyPreserveEntrySignatures(preserveEntrySignatures) {
|
|
4097
|
-
if (preserveEntrySignatures == void 0) return
|
|
4125
|
+
if (preserveEntrySignatures == void 0) return;
|
|
4098
4126
|
else if (typeof preserveEntrySignatures === "string") return {
|
|
4099
4127
|
type: "String",
|
|
4100
4128
|
field0: preserveEntrySignatures
|
|
@@ -4117,7 +4145,7 @@ async function initializeParallelPlugins(plugins) {
|
|
|
4117
4145
|
options
|
|
4118
4146
|
});
|
|
4119
4147
|
}
|
|
4120
|
-
if (pluginInfos.length <= 0) return
|
|
4148
|
+
if (pluginInfos.length <= 0) return;
|
|
4121
4149
|
const count = availableParallelism();
|
|
4122
4150
|
const parallelJsPluginRegistry = new ParallelJsPluginRegistry(count);
|
|
4123
4151
|
const registryId = parallelJsPluginRegistry.id;
|
|
@@ -4426,8 +4454,7 @@ async function createWatcher(emitter, input) {
|
|
|
4426
4454
|
})).flat());
|
|
4427
4455
|
const notifyOptions = getValidNotifyOption(bundlerOptions);
|
|
4428
4456
|
const bindingWatcher = new BindingWatcher(bundlerOptions.map((option) => option.bundlerOptions), notifyOptions);
|
|
4429
|
-
|
|
4430
|
-
watcher.start();
|
|
4457
|
+
new Watcher(emitter, bindingWatcher, bundlerOptions.map((option) => option.stopWorkers)).start();
|
|
4431
4458
|
}
|
|
4432
4459
|
function getValidNotifyOption(bundlerOptions) {
|
|
4433
4460
|
let result;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.36",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://rolldown.rs/",
|
|
@@ -27,33 +27,16 @@
|
|
|
27
27
|
"bin": {
|
|
28
28
|
"rolldown": "./bin/cli.mjs"
|
|
29
29
|
},
|
|
30
|
-
"main": "./dist/index.
|
|
31
|
-
"
|
|
30
|
+
"main": "./dist/index.mjs",
|
|
31
|
+
"module": "./dist/index.mjs",
|
|
32
|
+
"types": "./dist/index.d.mts",
|
|
32
33
|
"exports": {
|
|
33
|
-
".":
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"./
|
|
38
|
-
|
|
39
|
-
"require": "./dist/config.cjs"
|
|
40
|
-
},
|
|
41
|
-
"./experimental": {
|
|
42
|
-
"import": "./dist/experimental-index.mjs",
|
|
43
|
-
"require": "./dist/experimental-index.cjs"
|
|
44
|
-
},
|
|
45
|
-
"./filter": {
|
|
46
|
-
"import": "./dist/filter-index.mjs",
|
|
47
|
-
"require": "./dist/filter-index.cjs"
|
|
48
|
-
},
|
|
49
|
-
"./parallelPlugin": {
|
|
50
|
-
"import": "./dist/parallel-plugin.mjs",
|
|
51
|
-
"require": "./dist/parallel-plugin.cjs"
|
|
52
|
-
},
|
|
53
|
-
"./parseAst": {
|
|
54
|
-
"import": "./dist/parse-ast-index.mjs",
|
|
55
|
-
"require": "./dist/parse-ast-index.cjs"
|
|
56
|
-
},
|
|
34
|
+
".": "./dist/index.mjs",
|
|
35
|
+
"./config": "./dist/config.mjs",
|
|
36
|
+
"./experimental": "./dist/experimental-index.mjs",
|
|
37
|
+
"./filter": "./dist/filter-index.mjs",
|
|
38
|
+
"./parallelPlugin": "./dist/parallel-plugin.mjs",
|
|
39
|
+
"./parseAst": "./dist/parse-ast-index.mjs",
|
|
57
40
|
"./package.json": "./package.json"
|
|
58
41
|
},
|
|
59
42
|
"imports": {
|
|
@@ -92,10 +75,10 @@
|
|
|
92
75
|
"dtsHeader": "type MaybePromise<T> = T | Promise<T>\ntype Nullable<T> = T | null | undefined\ntype VoidNullable<T = void> = T | null | undefined | void\nexport type BindingStringOrRegex = string | RegExp\n\n"
|
|
93
76
|
},
|
|
94
77
|
"dependencies": {
|
|
95
|
-
"@oxc-project/runtime": "=0.
|
|
96
|
-
"@oxc-project/types": "=0.
|
|
78
|
+
"@oxc-project/runtime": "=0.87.0",
|
|
79
|
+
"@oxc-project/types": "=0.87.0",
|
|
97
80
|
"ansis": "^4.0.0",
|
|
98
|
-
"@rolldown/pluginutils": "1.0.0-beta.
|
|
81
|
+
"@rolldown/pluginutils": "1.0.0-beta.36"
|
|
99
82
|
},
|
|
100
83
|
"devDependencies": {
|
|
101
84
|
"@napi-rs/cli": "^3.1.2",
|
|
@@ -108,7 +91,7 @@
|
|
|
108
91
|
"emnapi": "^1.2.0",
|
|
109
92
|
"execa": "^9.2.0",
|
|
110
93
|
"glob": "^11.0.0",
|
|
111
|
-
"oxc-parser": "=0.
|
|
94
|
+
"oxc-parser": "=0.87.0",
|
|
112
95
|
"pathe": "^2.0.3",
|
|
113
96
|
"remeda": "^2.10.0",
|
|
114
97
|
"rolldown-plugin-dts": "^0.16.0",
|
|
@@ -119,23 +102,26 @@
|
|
|
119
102
|
"typedoc": "^0.28.0",
|
|
120
103
|
"typescript": "^5.7.3",
|
|
121
104
|
"valibot": "1.1.0",
|
|
122
|
-
"rolldown": "1.0.0-beta.
|
|
105
|
+
"rolldown": "1.0.0-beta.36"
|
|
106
|
+
},
|
|
107
|
+
"engines": {
|
|
108
|
+
"node": "^20.19.0 || >=22.12.0"
|
|
123
109
|
},
|
|
124
110
|
"optionalDependencies": {
|
|
125
|
-
"@rolldown/binding-darwin-x64": "1.0.0-beta.
|
|
126
|
-
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.
|
|
127
|
-
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.
|
|
128
|
-
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.
|
|
129
|
-
"@rolldown/binding-freebsd-x64": "1.0.0-beta.
|
|
130
|
-
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.
|
|
131
|
-
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.
|
|
132
|
-
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.
|
|
133
|
-
"@rolldown/binding-darwin-arm64": "1.0.0-beta.
|
|
134
|
-
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.
|
|
135
|
-
"@rolldown/binding-openharmony-arm64": "1.0.0-beta.
|
|
136
|
-
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.
|
|
137
|
-
"@rolldown/binding-android-arm64": "1.0.0-beta.
|
|
138
|
-
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.
|
|
111
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.36",
|
|
112
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.36",
|
|
113
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.36",
|
|
114
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.36",
|
|
115
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.36",
|
|
116
|
+
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.36",
|
|
117
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.36",
|
|
118
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.36",
|
|
119
|
+
"@rolldown/binding-darwin-arm64": "1.0.0-beta.36",
|
|
120
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.36",
|
|
121
|
+
"@rolldown/binding-openharmony-arm64": "1.0.0-beta.36",
|
|
122
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.36",
|
|
123
|
+
"@rolldown/binding-android-arm64": "1.0.0-beta.36",
|
|
124
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.36"
|
|
139
125
|
},
|
|
140
126
|
"scripts": {
|
|
141
127
|
"# Scrips for binding #": "_",
|