rolldown 1.0.0-beta.54 → 1.0.0-beta.56
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-setup.mjs +2 -2
- package/dist/cli.mjs +19 -19
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +8 -8
- package/dist/experimental-index.d.mts +37 -4
- package/dist/experimental-index.mjs +49 -22
- package/dist/filter-index.d.mts +2 -2
- package/dist/filter-index.mjs +1 -1
- package/dist/get-log-filter.d.mts +7 -0
- package/dist/get-log-filter.mjs +48 -0
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +10 -14
- package/dist/parallel-plugin-worker.mjs +5 -5
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +2 -2
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +3 -3
- package/dist/shared/{binding-yIBVkeOE.d.mts → binding-CDyF6W3D.d.mts} +15 -10
- package/dist/shared/{binding-BgawCXFG.mjs → binding-CtWITWm-.mjs} +51 -27
- package/dist/shared/{bindingify-input-options-DvsExmEF.mjs → bindingify-input-options-CO3Vzzk3.mjs} +58 -24
- package/dist/shared/{constructors-BgO0Ou3T.d.mts → constructors-Dw-B6Be3.d.mts} +2 -2
- package/dist/shared/{constructors-DqAPGbqJ.mjs → constructors-Jt3eRoTg.mjs} +1 -1
- package/dist/shared/{define-config-COJu-A7R.d.mts → define-config-izclUEbx.d.mts} +19 -43
- package/dist/shared/{load-config--qXpT-nH.mjs → load-config-BpSXYU8O.mjs} +1 -1
- package/dist/shared/logging-BpAvp7KV.d.mts +37 -0
- package/dist/shared/{logs-CSQ_UMWp.mjs → logs-Up1RAnkl.mjs} +4 -2
- package/dist/shared/{normalize-string-or-regex-CF1OWLn9.mjs → normalize-string-or-regex-DFzBrq1v.mjs} +6 -6
- package/dist/shared/{parse-ast-index-DeJDe-DO.mjs → parse-ast-index-BQgRrweO.mjs} +13 -10
- package/dist/shared/{rolldown-BsTgRBvz.mjs → rolldown-DA3tdfJk.mjs} +1 -1
- package/dist/shared/{rolldown-build-DtYoS8Tq.mjs → rolldown-build-CUD1BA8L.mjs} +25 -18
- package/dist/shared/{watch-CfGzq0YA.mjs → watch-XY1CZgsw.mjs} +11 -11
- package/package.json +20 -19
- /package/dist/shared/{define-config-DfeZGBEt.mjs → define-config-BF4P-Pum.mjs} +0 -0
- /package/dist/shared/{misc-CxyvWjTr.mjs → misc-DpjTMcQQ.mjs} +0 -0
- /package/dist/shared/{prompt-pmGBC3ws.mjs → prompt-CNt8OM9C.mjs} +0 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
//#region src/log/logging.d.ts
|
|
2
|
+
type LogLevel = "info" | "debug" | "warn";
|
|
3
|
+
type LogLevelOption = LogLevel | "silent";
|
|
4
|
+
type LogLevelWithError = LogLevel | "error";
|
|
5
|
+
interface RollupLog {
|
|
6
|
+
binding?: string;
|
|
7
|
+
cause?: unknown;
|
|
8
|
+
code?: string;
|
|
9
|
+
exporter?: string;
|
|
10
|
+
frame?: string;
|
|
11
|
+
hook?: string;
|
|
12
|
+
id?: string;
|
|
13
|
+
ids?: string[];
|
|
14
|
+
loc?: {
|
|
15
|
+
column: number;
|
|
16
|
+
file?: string;
|
|
17
|
+
line: number;
|
|
18
|
+
};
|
|
19
|
+
message: string;
|
|
20
|
+
meta?: any;
|
|
21
|
+
names?: string[];
|
|
22
|
+
plugin?: string;
|
|
23
|
+
pluginCode?: unknown;
|
|
24
|
+
pos?: number;
|
|
25
|
+
reexporter?: string;
|
|
26
|
+
stack?: string;
|
|
27
|
+
url?: string;
|
|
28
|
+
}
|
|
29
|
+
type RollupLogWithString = RollupLog | string;
|
|
30
|
+
interface RollupError extends RollupLog {
|
|
31
|
+
name?: string;
|
|
32
|
+
stack?: string;
|
|
33
|
+
watchFiles?: string[];
|
|
34
|
+
}
|
|
35
|
+
type LogOrStringHandler = (level: LogLevelWithError, log: RollupLogWithString) => void;
|
|
36
|
+
//#endregion
|
|
37
|
+
export { RollupLog as a, RollupError as i, LogLevelOption as n, RollupLogWithString as o, LogOrStringHandler as r, LogLevel as t };
|
|
@@ -100,10 +100,12 @@ function locate(source, search, options) {
|
|
|
100
100
|
//#endregion
|
|
101
101
|
//#region src/log/logs.ts
|
|
102
102
|
const INVALID_LOG_POSITION = "INVALID_LOG_POSITION", PLUGIN_ERROR = "PLUGIN_ERROR", INPUT_HOOK_IN_OUTPUT_PLUGIN = "INPUT_HOOK_IN_OUTPUT_PLUGIN", CYCLE_LOADING = "CYCLE_LOADING", MULTIPLY_NOTIFY_OPTION = "MULTIPLY_NOTIFY_OPTION", PARSE_ERROR = "PARSE_ERROR", NO_FS_IN_BROWSER = "NO_FS_IN_BROWSER";
|
|
103
|
-
function logParseError(message) {
|
|
103
|
+
function logParseError(message, id, pos) {
|
|
104
104
|
return {
|
|
105
105
|
code: PARSE_ERROR,
|
|
106
|
-
|
|
106
|
+
id,
|
|
107
|
+
message,
|
|
108
|
+
pos
|
|
107
109
|
};
|
|
108
110
|
}
|
|
109
111
|
function logInvalidLogPosition(pluginName) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as require_binding } from "./binding-
|
|
2
|
-
import { a as logInvalidLogPosition, c as logPluginError, n as error } from "./logs-
|
|
3
|
-
import { r as noop } from "./misc-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-CtWITWm-.mjs";
|
|
2
|
+
import { a as logInvalidLogPosition, c as logPluginError, n as error } from "./logs-Up1RAnkl.mjs";
|
|
3
|
+
import { r as noop } from "./misc-DpjTMcQQ.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/log/logging.ts
|
|
6
6
|
const LOG_LEVEL_SILENT = "silent";
|
|
@@ -32,7 +32,7 @@ function getLogHandler(level, code, logger, pluginName, logLevel) {
|
|
|
32
32
|
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region package.json
|
|
35
|
-
var version = "1.0.0-beta.
|
|
35
|
+
var version = "1.0.0-beta.56";
|
|
36
36
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
37
37
|
|
|
38
38
|
//#endregion
|
|
@@ -190,7 +190,7 @@ function bindingAssetSource(source) {
|
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
//#endregion
|
|
193
|
-
//#region \0@oxc-project+runtime@0.
|
|
193
|
+
//#region \0@oxc-project+runtime@0.103.0/helpers/decorate.js
|
|
194
194
|
function __decorate(decorators, target, key, desc) {
|
|
195
195
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
196
196
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -556,7 +556,7 @@ function collectChangedBundle(changed, bundle) {
|
|
|
556
556
|
|
|
557
557
|
//#endregion
|
|
558
558
|
//#region src/builtin-plugin/utils.ts
|
|
559
|
-
var import_binding = require_binding();
|
|
559
|
+
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
560
560
|
var BuiltinPlugin = class {
|
|
561
561
|
/** Vite-specific option to control plugin ordering */
|
|
562
562
|
enforce;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as require_binding } from "./binding-
|
|
2
|
-
import { l as locate, n as error, s as logParseError, u as getCodeFrame } from "./logs-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-CtWITWm-.mjs";
|
|
2
|
+
import { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from "./logs-Up1RAnkl.mjs";
|
|
3
3
|
|
|
4
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
4
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.103.0/node_modules/oxc-parser/src-js/wrap.js
|
|
5
5
|
function wrap$1(result) {
|
|
6
6
|
let program, module, comments, errors;
|
|
7
7
|
return {
|
|
@@ -39,7 +39,7 @@ function applyFix(program, fixPath) {
|
|
|
39
39
|
|
|
40
40
|
//#endregion
|
|
41
41
|
//#region src/utils/parse.ts
|
|
42
|
-
var import_binding = require_binding();
|
|
42
|
+
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
43
43
|
/**
|
|
44
44
|
* Parse asynchronously.
|
|
45
45
|
*
|
|
@@ -55,12 +55,13 @@ function parseSync(filename, sourceText, options) {
|
|
|
55
55
|
|
|
56
56
|
//#endregion
|
|
57
57
|
//#region src/parse-ast-index.ts
|
|
58
|
-
function wrap(result, sourceText) {
|
|
59
|
-
if (result.errors.length > 0) return normalizeParseError(sourceText, result.errors);
|
|
58
|
+
function wrap(result, filename, sourceText) {
|
|
59
|
+
if (result.errors.length > 0) return normalizeParseError(filename, sourceText, result.errors);
|
|
60
60
|
return result.program;
|
|
61
61
|
}
|
|
62
|
-
function normalizeParseError(sourceText, errors) {
|
|
62
|
+
function normalizeParseError(filename, sourceText, errors) {
|
|
63
63
|
let message = `Parse failed with ${errors.length} error${errors.length < 2 ? "" : "s"}:\n`;
|
|
64
|
+
const pos = errors[0]?.labels?.[0]?.start;
|
|
64
65
|
for (let i = 0; i < errors.length; i++) {
|
|
65
66
|
if (i >= 5) {
|
|
66
67
|
message += "\n...";
|
|
@@ -73,7 +74,9 @@ function normalizeParseError(sourceText, errors) {
|
|
|
73
74
|
return getCodeFrame(sourceText, location.line, location.column);
|
|
74
75
|
}).filter(Boolean).join("\n");
|
|
75
76
|
}
|
|
76
|
-
|
|
77
|
+
const log = logParseError(message, filename, pos);
|
|
78
|
+
if (pos !== void 0 && filename) augmentCodeLocation(log, pos, sourceText, filename);
|
|
79
|
+
return error(log);
|
|
77
80
|
}
|
|
78
81
|
const defaultParserOptions = {
|
|
79
82
|
lang: "js",
|
|
@@ -83,13 +86,13 @@ function parseAst(sourceText, options, filename) {
|
|
|
83
86
|
return wrap(parseSync(filename ?? "file.js", sourceText, {
|
|
84
87
|
...defaultParserOptions,
|
|
85
88
|
...options
|
|
86
|
-
}), sourceText);
|
|
89
|
+
}), filename, sourceText);
|
|
87
90
|
}
|
|
88
91
|
async function parseAstAsync(sourceText, options, filename) {
|
|
89
92
|
return wrap(await parse(filename ?? "file.js", sourceText, {
|
|
90
93
|
...defaultParserOptions,
|
|
91
94
|
...options
|
|
92
|
-
}), sourceText);
|
|
95
|
+
}), filename, sourceText);
|
|
93
96
|
}
|
|
94
97
|
|
|
95
98
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as PluginDriver, s as validateOption, t as RolldownBuild } from "./rolldown-build-
|
|
1
|
+
import { l as PluginDriver, s as validateOption, t as RolldownBuild } from "./rolldown-build-CUD1BA8L.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/api/rolldown/index.ts
|
|
4
4
|
const rolldown = async (input) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as require_binding } from "./binding-
|
|
2
|
-
import { i as logInputHookInOutputPlugin, n as error } from "./logs-
|
|
3
|
-
import { i as unimplemented } from "./misc-
|
|
4
|
-
import { C as LOG_LEVEL_DEBUG, D as logLevelPriority, E as LOG_LEVEL_WARN, S as normalizeLog, T as LOG_LEVEL_INFO, _ as PlainObjectLike, f as transformRenderedChunk, g as lazyProp, h as transformAssetSource, n as BuiltinPlugin, p as __decorate, u as transformToRollupOutput, v as MinimalPluginContextImpl, w as LOG_LEVEL_ERROR, y as VERSION } from "./normalize-string-or-regex-
|
|
5
|
-
import { c as normalizeHook, i as transformModuleInfo, s as unwrapBindingResult, t as bindingifyInputOptions } from "./bindingify-input-options-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-CtWITWm-.mjs";
|
|
2
|
+
import { i as logInputHookInOutputPlugin, n as error } from "./logs-Up1RAnkl.mjs";
|
|
3
|
+
import { i as unimplemented } from "./misc-DpjTMcQQ.mjs";
|
|
4
|
+
import { C as LOG_LEVEL_DEBUG, D as logLevelPriority, E as LOG_LEVEL_WARN, S as normalizeLog, T as LOG_LEVEL_INFO, _ as PlainObjectLike, f as transformRenderedChunk, g as lazyProp, h as transformAssetSource, n as BuiltinPlugin, p as __decorate, u as transformToRollupOutput, v as MinimalPluginContextImpl, w as LOG_LEVEL_ERROR, y as VERSION } from "./normalize-string-or-regex-DFzBrq1v.mjs";
|
|
5
|
+
import { c as normalizeHook, i as transformModuleInfo, s as unwrapBindingResult, t as bindingifyInputOptions } from "./bindingify-input-options-CO3Vzzk3.mjs";
|
|
6
6
|
import { Worker } from "node:worker_threads";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { styleText } from "node:util";
|
|
@@ -1607,7 +1607,7 @@ const ChecksOptionsSchema = strictObject({
|
|
|
1607
1607
|
eval: pipe(optional(boolean()), description("Whether to emit warning when detecting eval")),
|
|
1608
1608
|
missingGlobalName: pipe(optional(boolean()), description("Whether to emit warning when detecting missing global name")),
|
|
1609
1609
|
missingNameOptionForIifeExport: pipe(optional(boolean()), description("Whether to emit warning when detecting missing name option for iife export")),
|
|
1610
|
-
|
|
1610
|
+
mixedExports: pipe(optional(boolean()), description("Whether to emit warning when detecting mixed exports")),
|
|
1611
1611
|
unresolvedEntry: pipe(optional(boolean()), description("Whether to emit warning when detecting unresolved entry")),
|
|
1612
1612
|
unresolvedImport: pipe(optional(boolean()), description("Whether to emit warning when detecting unresolved import")),
|
|
1613
1613
|
filenameConflict: pipe(optional(boolean()), description("Whether to emit warning when detecting filename conflict")),
|
|
@@ -1696,11 +1696,11 @@ const OnLogSchema = pipe(vFunction(), args(tuple([
|
|
|
1696
1696
|
LogOrStringHandlerSchema
|
|
1697
1697
|
])));
|
|
1698
1698
|
const OnwarnSchema = pipe(vFunction(), args(tuple([RollupLogSchema, pipe(vFunction(), args(tuple([union([RollupLogWithStringSchema, pipe(vFunction(), returns(RollupLogWithStringSchema))])])))])));
|
|
1699
|
-
const
|
|
1700
|
-
new: optional(boolean()),
|
|
1699
|
+
const DevModeSchema = union([boolean(), strictObject({
|
|
1701
1700
|
port: optional(number()),
|
|
1702
1701
|
host: optional(string()),
|
|
1703
|
-
implement: optional(string())
|
|
1702
|
+
implement: optional(string()),
|
|
1703
|
+
lazy: optional(boolean())
|
|
1704
1704
|
})]);
|
|
1705
1705
|
const InputOptionsSchema = strictObject({
|
|
1706
1706
|
input: optional(InputOptionSchema),
|
|
@@ -1729,7 +1729,7 @@ const InputOptionsSchema = strictObject({
|
|
|
1729
1729
|
strictExecutionOrder: optional(boolean()),
|
|
1730
1730
|
onDemandWrapping: optional(boolean()),
|
|
1731
1731
|
incrementalBuild: optional(boolean()),
|
|
1732
|
-
|
|
1732
|
+
devMode: optional(DevModeSchema),
|
|
1733
1733
|
attachDebugInfo: optional(union([
|
|
1734
1734
|
literal("none"),
|
|
1735
1735
|
literal("simple"),
|
|
@@ -1852,6 +1852,8 @@ const OutputOptionsSchema = strictObject({
|
|
|
1852
1852
|
sourcemapPathTransform: optional(custom(() => true)),
|
|
1853
1853
|
banner: optional(union([string(), AddonFunctionSchema])),
|
|
1854
1854
|
footer: optional(union([string(), AddonFunctionSchema])),
|
|
1855
|
+
postBanner: optional(union([string(), AddonFunctionSchema])),
|
|
1856
|
+
postFooter: optional(union([string(), AddonFunctionSchema])),
|
|
1855
1857
|
intro: optional(union([string(), AddonFunctionSchema])),
|
|
1856
1858
|
outro: optional(union([string(), AddonFunctionSchema])),
|
|
1857
1859
|
extend: pipe(optional(boolean()), description("Extend global variable defined by name in IIFE / UMD formats")),
|
|
@@ -1899,6 +1901,8 @@ const OutputCliOverrideSchema = strictObject({
|
|
|
1899
1901
|
sanitizeFileName: pipe(optional(boolean()), description("Sanitize file name")),
|
|
1900
1902
|
banner: pipe(optional(string()), description(getAddonDescription("top", "outside"))),
|
|
1901
1903
|
footer: pipe(optional(string()), description(getAddonDescription("bottom", "outside"))),
|
|
1904
|
+
postBanner: pipe(optional(string()), description("A string to prepend to the top of each chunk. Applied after the `renderChunk` hook and minification")),
|
|
1905
|
+
postFooter: pipe(optional(string()), description("A string to append to the bottom of each chunk. Applied after the `renderChunk` hook and minification")),
|
|
1902
1906
|
intro: pipe(optional(string()), description(getAddonDescription("top", "inside"))),
|
|
1903
1907
|
outro: pipe(optional(string()), description(getAddonDescription("bottom", "inside"))),
|
|
1904
1908
|
esModule: pipe(optional(boolean()), description("Always generate `__esModule` marks in non-ESM formats, defaults to `if-default-prop` (use `--no-esModule` to always disable)")),
|
|
@@ -2014,7 +2018,10 @@ var ChunkingContextImpl = class {
|
|
|
2014
2018
|
//#endregion
|
|
2015
2019
|
//#region src/utils/bindingify-output-options.ts
|
|
2016
2020
|
function bindingifyOutputOptions(outputOptions) {
|
|
2017
|
-
const { dir, format, exports, hashCharacters, sourcemap, sourcemapBaseUrl, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, intro, outro, esModule, globals, paths, generatedCode, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, preserveModulesRoot, manualChunks, topLevelVar, cleanDir } = outputOptions;
|
|
2021
|
+
const { dir, format, exports, hashCharacters, sourcemap, sourcemapBaseUrl, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, postBanner, postFooter, intro, outro, esModule, globals, paths, generatedCode, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, preserveModulesRoot, manualChunks, topLevelVar, cleanDir } = outputOptions;
|
|
2022
|
+
if (outputOptions.inlineDynamicImports === true) {
|
|
2023
|
+
if (manualChunks != null) throw new Error("Invalid value \"true\" for option \"output.inlineDynamicImports\" - this option is not supported for \"output.manualChunks\".");
|
|
2024
|
+
}
|
|
2018
2025
|
const advancedChunks = bindingifyAdvancedChunks(outputOptions.advancedChunks, manualChunks);
|
|
2019
2026
|
return {
|
|
2020
2027
|
dir,
|
|
@@ -2029,6 +2036,8 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
2029
2036
|
sourcemapPathTransform,
|
|
2030
2037
|
banner: bindingifyAddon(banner),
|
|
2031
2038
|
footer: bindingifyAddon(footer),
|
|
2039
|
+
postBanner: bindingifyAddon(postBanner),
|
|
2040
|
+
postFooter: bindingifyAddon(postFooter),
|
|
2032
2041
|
intro: bindingifyAddon(intro),
|
|
2033
2042
|
outro: bindingifyAddon(outro),
|
|
2034
2043
|
extend: outputOptions.extend,
|
|
@@ -2059,10 +2068,9 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
2059
2068
|
};
|
|
2060
2069
|
}
|
|
2061
2070
|
function bindingifyAddon(configAddon) {
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
};
|
|
2071
|
+
if (configAddon == null || configAddon === "") return;
|
|
2072
|
+
if (typeof configAddon === "function") return async (chunk) => configAddon(transformRenderedChunk(chunk));
|
|
2073
|
+
return configAddon;
|
|
2066
2074
|
}
|
|
2067
2075
|
function bindingifyFormat(format) {
|
|
2068
2076
|
switch (format) {
|
|
@@ -2121,7 +2129,7 @@ function bindingifyAdvancedChunks(advancedChunks, manualChunks) {
|
|
|
2121
2129
|
|
|
2122
2130
|
//#endregion
|
|
2123
2131
|
//#region src/utils/initialize-parallel-plugins.ts
|
|
2124
|
-
var import_binding
|
|
2132
|
+
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
2125
2133
|
async function initializeParallelPlugins(plugins) {
|
|
2126
2134
|
const pluginInfos = [];
|
|
2127
2135
|
for (const [index, plugin] of plugins.entries()) if ("_parallel" in plugin) {
|
|
@@ -2134,7 +2142,7 @@ async function initializeParallelPlugins(plugins) {
|
|
|
2134
2142
|
}
|
|
2135
2143
|
if (pluginInfos.length <= 0) return;
|
|
2136
2144
|
const count = availableParallelism();
|
|
2137
|
-
const parallelJsPluginRegistry = new import_binding
|
|
2145
|
+
const parallelJsPluginRegistry = new import_binding.ParallelJsPluginRegistry(count);
|
|
2138
2146
|
const registryId = parallelJsPluginRegistry.id;
|
|
2139
2147
|
const workers = await initializeWorkers(registryId, count, pluginInfos);
|
|
2140
2148
|
const stopWorkers = async () => {
|
|
@@ -2212,7 +2220,6 @@ async function createBundlerOptions(inputOptions, outputOptions, watchMode) {
|
|
|
2212
2220
|
|
|
2213
2221
|
//#endregion
|
|
2214
2222
|
//#region src/api/rolldown/rolldown-build.ts
|
|
2215
|
-
var import_binding = require_binding();
|
|
2216
2223
|
Symbol.asyncDispose ??= Symbol("Symbol.asyncDispose");
|
|
2217
2224
|
var RolldownBuild = class RolldownBuild {
|
|
2218
2225
|
#inputOptions;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as require_binding } from "./binding-
|
|
2
|
-
import { o as logMultiplyNotifyOption } from "./logs-
|
|
3
|
-
import { t as arraify } from "./misc-
|
|
4
|
-
import { E as LOG_LEVEL_WARN } from "./normalize-string-or-regex-
|
|
5
|
-
import { l as PluginDriver, n as createBundlerOptions } from "./rolldown-build-
|
|
6
|
-
import { a as aggregateBindingErrorsIntoJsError } from "./bindingify-input-options-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-CtWITWm-.mjs";
|
|
2
|
+
import { o as logMultiplyNotifyOption } from "./logs-Up1RAnkl.mjs";
|
|
3
|
+
import { t as arraify } from "./misc-DpjTMcQQ.mjs";
|
|
4
|
+
import { E as LOG_LEVEL_WARN } from "./normalize-string-or-regex-DFzBrq1v.mjs";
|
|
5
|
+
import { l as PluginDriver, n as createBundlerOptions } from "./rolldown-build-CUD1BA8L.mjs";
|
|
6
|
+
import { a as aggregateBindingErrorsIntoJsError } from "./bindingify-input-options-CO3Vzzk3.mjs";
|
|
7
7
|
|
|
8
8
|
//#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
|
|
9
9
|
/**
|
|
@@ -203,18 +203,18 @@ var SignalExit = class extends SignalExitBase {
|
|
|
203
203
|
}
|
|
204
204
|
};
|
|
205
205
|
const process$1 = globalThis.process;
|
|
206
|
-
const { onExit, load, unload } = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());
|
|
206
|
+
const { onExit: onExit$1, load, unload } = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());
|
|
207
207
|
|
|
208
208
|
//#endregion
|
|
209
209
|
//#region src/utils/signal-exit.ts
|
|
210
|
-
function onExit
|
|
210
|
+
function onExit(...args) {
|
|
211
211
|
if (typeof process === "object" && process.versions.webcontainer) {
|
|
212
212
|
process.on("exit", (code) => {
|
|
213
213
|
args[0](code, null);
|
|
214
214
|
});
|
|
215
215
|
return;
|
|
216
216
|
}
|
|
217
|
-
onExit(...args);
|
|
217
|
+
onExit$1(...args);
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
//#endregion
|
|
@@ -292,7 +292,7 @@ var WatcherEmitter = class {
|
|
|
292
292
|
|
|
293
293
|
//#endregion
|
|
294
294
|
//#region src/api/watch/watcher.ts
|
|
295
|
-
var import_binding = require_binding();
|
|
295
|
+
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
296
296
|
var Watcher = class {
|
|
297
297
|
closed;
|
|
298
298
|
inner;
|
|
@@ -348,4 +348,4 @@ const watch = (input) => {
|
|
|
348
348
|
};
|
|
349
349
|
|
|
350
350
|
//#endregion
|
|
351
|
-
export { onExit
|
|
351
|
+
export { onExit as n, watch as t };
|
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.56",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://rolldown.rs/",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"types": "./dist/experimental-runtime-types.d.ts"
|
|
39
39
|
},
|
|
40
40
|
"./filter": "./dist/filter-index.mjs",
|
|
41
|
+
"./getLogFilter": "./dist/get-log-filter.mjs",
|
|
41
42
|
"./parallelPlugin": "./dist/parallel-plugin.mjs",
|
|
42
43
|
"./parseAst": "./dist/parse-ast-index.mjs",
|
|
43
44
|
"./package.json": "./package.json",
|
|
@@ -78,8 +79,8 @@
|
|
|
78
79
|
"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\ntype BindingResult<T> = { errors: BindingError[], isBindingErrors: boolean } | T\n\n"
|
|
79
80
|
},
|
|
80
81
|
"dependencies": {
|
|
81
|
-
"@oxc-project/types": "=0.
|
|
82
|
-
"@rolldown/pluginutils": "1.0.0-beta.
|
|
82
|
+
"@oxc-project/types": "=0.103.0",
|
|
83
|
+
"@rolldown/pluginutils": "1.0.0-beta.56"
|
|
83
84
|
},
|
|
84
85
|
"devDependencies": {
|
|
85
86
|
"@napi-rs/cli": "^3.4.1",
|
|
@@ -90,34 +91,34 @@
|
|
|
90
91
|
"consola": "^3.4.2",
|
|
91
92
|
"execa": "^9.2.0",
|
|
92
93
|
"glob": "^13.0.0",
|
|
93
|
-
"oxc-parser": "=0.
|
|
94
|
+
"oxc-parser": "=0.103.0",
|
|
94
95
|
"pathe": "^2.0.3",
|
|
95
96
|
"remeda": "^2.10.0",
|
|
96
|
-
"rolldown-plugin-dts": "^0.
|
|
97
|
+
"rolldown-plugin-dts": "^0.19.0",
|
|
97
98
|
"rollup": "^4.18.0",
|
|
98
99
|
"signal-exit": "4.1.0",
|
|
99
100
|
"source-map": "^0.7.4",
|
|
100
101
|
"typescript": "^5.8.3",
|
|
101
102
|
"valibot": "1.2.0",
|
|
102
|
-
"rolldown": "1.0.0-beta.
|
|
103
|
+
"rolldown": "1.0.0-beta.56"
|
|
103
104
|
},
|
|
104
105
|
"engines": {
|
|
105
106
|
"node": "^20.19.0 || >=22.12.0"
|
|
106
107
|
},
|
|
107
108
|
"optionalDependencies": {
|
|
108
|
-
"@rolldown/binding-darwin-x64": "1.0.0-beta.
|
|
109
|
-
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.
|
|
110
|
-
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.
|
|
111
|
-
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.
|
|
112
|
-
"@rolldown/binding-freebsd-x64": "1.0.0-beta.
|
|
113
|
-
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.
|
|
114
|
-
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.
|
|
115
|
-
"@rolldown/binding-darwin-arm64": "1.0.0-beta.
|
|
116
|
-
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.
|
|
117
|
-
"@rolldown/binding-openharmony-arm64": "1.0.0-beta.
|
|
118
|
-
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.
|
|
119
|
-
"@rolldown/binding-android-arm64": "1.0.0-beta.
|
|
120
|
-
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.
|
|
109
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.56",
|
|
110
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.56",
|
|
111
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.56",
|
|
112
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.56",
|
|
113
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.56",
|
|
114
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.56",
|
|
115
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.56",
|
|
116
|
+
"@rolldown/binding-darwin-arm64": "1.0.0-beta.56",
|
|
117
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.56",
|
|
118
|
+
"@rolldown/binding-openharmony-arm64": "1.0.0-beta.56",
|
|
119
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.56",
|
|
120
|
+
"@rolldown/binding-android-arm64": "1.0.0-beta.56",
|
|
121
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.56"
|
|
121
122
|
},
|
|
122
123
|
"scripts": {
|
|
123
124
|
"# Scrips for binding #": "_",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|