@rollipop/rolldown 0.0.0-beta.0 → 0.0.0-beta.2
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 +1 -1
- package/dist/cli.mjs +37 -37
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +7 -7
- package/dist/experimental-index.d.mts +4 -62
- package/dist/experimental-index.mjs +7 -40
- package/dist/experimental-runtime-types.d.ts +12 -1
- package/dist/filter-index.d.mts +2 -2
- package/dist/filter-index.mjs +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +7 -7
- package/dist/parallel-plugin-worker.mjs +4 -4
- 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-kAegJ1Bj.d.mts → binding-C9YdqoUG.d.mts} +2 -120
- package/dist/shared/{binding-DmMMxMk0.mjs → binding-DkwjzGvT.mjs} +26 -27
- package/dist/shared/{bindingify-input-options-D0BAGfk2.mjs → bindingify-input-options-BioA6ADH.mjs} +573 -21
- package/dist/shared/{constructors-Rl_oLd2F.mjs → constructors-CQbXvIw9.mjs} +2 -8
- package/dist/shared/{constructors-F44lhsH3.d.mts → constructors-D9F4Aj4h.d.mts} +3 -5
- package/dist/shared/{define-config-DJ1-iIdx.d.mts → define-config-glNgjHCc.d.mts} +12 -1
- package/dist/shared/{load-config-BEpugZky.mjs → load-config-BsPJHbns.mjs} +1 -1
- package/dist/shared/{logs-cyjC0SDv.mjs → logs-N5Akftom.mjs} +2 -2
- package/dist/shared/normalize-string-or-regex-CYnwzi7f.mjs +61 -0
- package/dist/shared/{parse-ast-index-BuuhACPk.mjs → parse-ast-index-D50raXC6.mjs} +2 -2
- package/dist/shared/{prompt-5sWCM0jm.mjs → prompt-BZ-QjPVS.mjs} +45 -45
- package/dist/shared/{rolldown-build-viDZfkdI.mjs → rolldown-build-Dc6MJ2CU.mjs} +16 -14
- package/dist/shared/{rolldown-il0-nWH9.mjs → rolldown-nC7B9qvJ.mjs} +1 -1
- package/dist/shared/{watch-BSdMzY6q.mjs → watch-C1nsTy4z.mjs} +5 -6
- package/package.json +11 -11
- package/dist/shared/normalize-string-or-regex-DbTZ9prS.mjs +0 -670
- /package/dist/shared/{misc-DpjTMcQQ.mjs → misc-0HsaOsAX.mjs} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { At as StringOrRegExp, M as BuiltinPlugin } from "./define-config-
|
|
1
|
+
import { S as BindingViteWasmHelperPluginConfig, _ as BindingViteModulePreloadPolyfillPluginConfig, b as BindingViteResolvePluginConfig, f as BindingViteBuildImportAnalysisPluginConfig, h as BindingViteJsonPluginConfig, i as BindingEsmExternalRequirePluginConfig, m as BindingViteImportGlobPluginConfig, o as BindingIsolatedDeclarationPluginConfig, p as BindingViteDynamicImportVarsPluginConfig, v as BindingViteReactRefreshWrapperPluginConfig, y as BindingViteReporterPluginConfig } from "./binding-C9YdqoUG.mjs";
|
|
2
|
+
import { At as StringOrRegExp, M as BuiltinPlugin } from "./define-config-glNgjHCc.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/builtin-plugin/constructors.d.ts
|
|
5
5
|
declare function viteModulePreloadPolyfillPlugin(config?: BindingViteModulePreloadPolyfillPluginConfig): BuiltinPlugin;
|
|
@@ -24,7 +24,5 @@ type ViteReactRefreshWrapperPluginConfig = Omit<BindingViteReactRefreshWrapperPl
|
|
|
24
24
|
exclude?: StringOrRegExp | StringOrRegExp[];
|
|
25
25
|
};
|
|
26
26
|
declare function viteReactRefreshWrapperPlugin(config: ViteReactRefreshWrapperPluginConfig): BuiltinPlugin;
|
|
27
|
-
declare function viteHtmlInlineProxyPlugin(config: BindingViteHtmlInlineProxyPluginConfig): BuiltinPlugin;
|
|
28
|
-
declare function viteAssetImportMetaUrlPlugin(config: BindingViteAssetImportMetaUrlPluginConfig): BuiltinPlugin;
|
|
29
27
|
//#endregion
|
|
30
|
-
export {
|
|
28
|
+
export { viteImportGlobPlugin as a, viteModulePreloadPolyfillPlugin as c, viteResolvePlugin as d, viteWasmFallbackPlugin as f, viteDynamicImportVarsPlugin as i, viteReactRefreshWrapperPlugin as l, viteWebWorkerPostPlugin as m, isolatedDeclarationPlugin as n, viteJsonPlugin as o, viteWasmHelperPlugin as p, viteBuildImportAnalysisPlugin as r, viteLoadFallbackPlugin as s, esmExternalRequirePlugin as t, viteReporterPlugin as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as RollupLog, i as RollupError, n as LogLevelOption, o as RollupLogWithString, r as LogOrStringHandler, t as LogLevel } from "./logging-DsnCZi19.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { C as BindingWatcherBundler, L as TransformOptions$1, N as ParserOptions, O as JsxOptions, P as PreRenderedChunk, T as ExternalMemoryStatus, a as BindingHookResolveIdExtraArgs, d as BindingTransformHookExtraArgs, k as MinifyOptions$1, l as BindingRenderedChunk, s as BindingMagicString, t as BindingBuiltinPluginName, w as BindingWatcherEvent } from "./binding-C9YdqoUG.mjs";
|
|
3
3
|
import { TopLevelFilterExpression } from "@rollipop/rolldown-pluginutils";
|
|
4
4
|
import { Program } from "@oxc-project/types";
|
|
5
5
|
|
|
@@ -818,6 +818,12 @@ interface OutputOptions {
|
|
|
818
818
|
* @default false
|
|
819
819
|
*/
|
|
820
820
|
keepNames?: boolean;
|
|
821
|
+
/**
|
|
822
|
+
* Reserved global identifiers to be avoided when generating export binding names for module chunks.
|
|
823
|
+
*
|
|
824
|
+
* @default []
|
|
825
|
+
*/
|
|
826
|
+
globalIdentifiers?: string[];
|
|
821
827
|
}
|
|
822
828
|
type CodeSplittingGroup = {
|
|
823
829
|
/**
|
|
@@ -1119,6 +1125,11 @@ interface ChecksOptions {
|
|
|
1119
1125
|
* */
|
|
1120
1126
|
emptyImportMeta?: boolean;
|
|
1121
1127
|
/**
|
|
1128
|
+
* Whether to emit warnings when detecting tolerated transform
|
|
1129
|
+
* @default true
|
|
1130
|
+
* */
|
|
1131
|
+
toleratedTransform?: boolean;
|
|
1132
|
+
/**
|
|
1122
1133
|
* Whether to emit warnings when a namespace is called as a function
|
|
1123
1134
|
*
|
|
1124
1135
|
* A module namespace object is an object and not a function. Calling it as a function will cause a runtime error.
|
|
@@ -53,13 +53,13 @@ function rangeContains(range, index) {
|
|
|
53
53
|
function getLocator(source, options = {}) {
|
|
54
54
|
const { offsetLine = 0, offsetColumn = 0 } = options;
|
|
55
55
|
let start = 0;
|
|
56
|
-
const ranges = source.split("\n").map((line, i
|
|
56
|
+
const ranges = source.split("\n").map((line, i) => {
|
|
57
57
|
const end = start + line.length + 1;
|
|
58
58
|
/** @type {import('./types').Range} */
|
|
59
59
|
const range = {
|
|
60
60
|
start,
|
|
61
61
|
end,
|
|
62
|
-
line: i
|
|
62
|
+
line: i
|
|
63
63
|
};
|
|
64
64
|
start = end;
|
|
65
65
|
return range;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-DkwjzGvT.mjs";
|
|
2
|
+
import { c as logPluginError, n as error } from "./logs-N5Akftom.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/builtin-plugin/utils.ts
|
|
5
|
+
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
6
|
+
var BuiltinPlugin = class {
|
|
7
|
+
/** Vite-specific option to control plugin ordering */
|
|
8
|
+
enforce;
|
|
9
|
+
constructor(name, _options) {
|
|
10
|
+
this.name = name;
|
|
11
|
+
this._options = _options;
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
function makeBuiltinPluginCallable(plugin) {
|
|
15
|
+
let callablePlugin = new import_binding.BindingCallableBuiltinPlugin(bindingifyBuiltInPlugin(plugin));
|
|
16
|
+
const wrappedPlugin = plugin;
|
|
17
|
+
for (const key in callablePlugin) wrappedPlugin[key] = async function(...args) {
|
|
18
|
+
try {
|
|
19
|
+
return await callablePlugin[key](...args);
|
|
20
|
+
} catch (e) {
|
|
21
|
+
if (e instanceof Error && !e.stack?.includes("at ")) Error.captureStackTrace(e, wrappedPlugin[key]);
|
|
22
|
+
return error(logPluginError(e, plugin.name, {
|
|
23
|
+
hook: key,
|
|
24
|
+
id: key === "transform" ? args[2] : void 0
|
|
25
|
+
}));
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
return wrappedPlugin;
|
|
29
|
+
}
|
|
30
|
+
function bindingifyBuiltInPlugin(plugin) {
|
|
31
|
+
return {
|
|
32
|
+
__name: plugin.name,
|
|
33
|
+
options: plugin._options
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function bindingifyManifestPlugin(plugin, pluginContextData) {
|
|
37
|
+
const { isOutputOptionsForLegacyChunks, ...options } = plugin._options;
|
|
38
|
+
return {
|
|
39
|
+
__name: plugin.name,
|
|
40
|
+
options: {
|
|
41
|
+
...options,
|
|
42
|
+
isLegacy: isOutputOptionsForLegacyChunks ? (opts) => {
|
|
43
|
+
return isOutputOptionsForLegacyChunks(pluginContextData.getOutputOptions(opts));
|
|
44
|
+
} : void 0
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region src/utils/normalize-string-or-regex.ts
|
|
51
|
+
function normalizedStringOrRegex(pattern) {
|
|
52
|
+
if (!pattern) return;
|
|
53
|
+
if (!isReadonlyArray(pattern)) return [pattern];
|
|
54
|
+
return pattern;
|
|
55
|
+
}
|
|
56
|
+
function isReadonlyArray(input) {
|
|
57
|
+
return Array.isArray(input);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
//#endregion
|
|
61
|
+
export { makeBuiltinPluginCallable as a, bindingifyManifestPlugin as i, BuiltinPlugin as n, bindingifyBuiltInPlugin as r, normalizedStringOrRegex as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
2
|
-
import { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from "./logs-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-DkwjzGvT.mjs";
|
|
2
|
+
import { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from "./logs-N5Akftom.mjs";
|
|
3
3
|
|
|
4
4
|
//#region ../../node_modules/.pnpm/oxc-parser@0.108.0/node_modules/oxc-parser/src-js/wrap.js
|
|
5
5
|
function wrap$1(result) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import process$1, { stdin, stdout } from "node:process";
|
|
2
2
|
import { WriteStream } from "node:tty";
|
|
3
|
-
import f from "node:readline";
|
|
3
|
+
import f$1 from "node:readline";
|
|
4
4
|
|
|
5
5
|
//#region ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/chunks/prompt.mjs
|
|
6
6
|
function getDefaultExportFromCjs(x) {
|
|
@@ -85,50 +85,50 @@ function requirePicocolors() {
|
|
|
85
85
|
return result + string.substring(cursor);
|
|
86
86
|
};
|
|
87
87
|
let createColors = (enabled = isColorSupported) => {
|
|
88
|
-
let f
|
|
88
|
+
let f = enabled ? formatter : () => String;
|
|
89
89
|
return {
|
|
90
90
|
isColorSupported: enabled,
|
|
91
|
-
reset: f
|
|
92
|
-
bold: f
|
|
93
|
-
dim: f
|
|
94
|
-
italic: f
|
|
95
|
-
underline: f
|
|
96
|
-
inverse: f
|
|
97
|
-
hidden: f
|
|
98
|
-
strikethrough: f
|
|
99
|
-
black: f
|
|
100
|
-
red: f
|
|
101
|
-
green: f
|
|
102
|
-
yellow: f
|
|
103
|
-
blue: f
|
|
104
|
-
magenta: f
|
|
105
|
-
cyan: f
|
|
106
|
-
white: f
|
|
107
|
-
gray: f
|
|
108
|
-
bgBlack: f
|
|
109
|
-
bgRed: f
|
|
110
|
-
bgGreen: f
|
|
111
|
-
bgYellow: f
|
|
112
|
-
bgBlue: f
|
|
113
|
-
bgMagenta: f
|
|
114
|
-
bgCyan: f
|
|
115
|
-
bgWhite: f
|
|
116
|
-
blackBright: f
|
|
117
|
-
redBright: f
|
|
118
|
-
greenBright: f
|
|
119
|
-
yellowBright: f
|
|
120
|
-
blueBright: f
|
|
121
|
-
magentaBright: f
|
|
122
|
-
cyanBright: f
|
|
123
|
-
whiteBright: f
|
|
124
|
-
bgBlackBright: f
|
|
125
|
-
bgRedBright: f
|
|
126
|
-
bgGreenBright: f
|
|
127
|
-
bgYellowBright: f
|
|
128
|
-
bgBlueBright: f
|
|
129
|
-
bgMagentaBright: f
|
|
130
|
-
bgCyanBright: f
|
|
131
|
-
bgWhiteBright: f
|
|
91
|
+
reset: f("\x1B[0m", "\x1B[0m"),
|
|
92
|
+
bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
|
|
93
|
+
dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
|
|
94
|
+
italic: f("\x1B[3m", "\x1B[23m"),
|
|
95
|
+
underline: f("\x1B[4m", "\x1B[24m"),
|
|
96
|
+
inverse: f("\x1B[7m", "\x1B[27m"),
|
|
97
|
+
hidden: f("\x1B[8m", "\x1B[28m"),
|
|
98
|
+
strikethrough: f("\x1B[9m", "\x1B[29m"),
|
|
99
|
+
black: f("\x1B[30m", "\x1B[39m"),
|
|
100
|
+
red: f("\x1B[31m", "\x1B[39m"),
|
|
101
|
+
green: f("\x1B[32m", "\x1B[39m"),
|
|
102
|
+
yellow: f("\x1B[33m", "\x1B[39m"),
|
|
103
|
+
blue: f("\x1B[34m", "\x1B[39m"),
|
|
104
|
+
magenta: f("\x1B[35m", "\x1B[39m"),
|
|
105
|
+
cyan: f("\x1B[36m", "\x1B[39m"),
|
|
106
|
+
white: f("\x1B[37m", "\x1B[39m"),
|
|
107
|
+
gray: f("\x1B[90m", "\x1B[39m"),
|
|
108
|
+
bgBlack: f("\x1B[40m", "\x1B[49m"),
|
|
109
|
+
bgRed: f("\x1B[41m", "\x1B[49m"),
|
|
110
|
+
bgGreen: f("\x1B[42m", "\x1B[49m"),
|
|
111
|
+
bgYellow: f("\x1B[43m", "\x1B[49m"),
|
|
112
|
+
bgBlue: f("\x1B[44m", "\x1B[49m"),
|
|
113
|
+
bgMagenta: f("\x1B[45m", "\x1B[49m"),
|
|
114
|
+
bgCyan: f("\x1B[46m", "\x1B[49m"),
|
|
115
|
+
bgWhite: f("\x1B[47m", "\x1B[49m"),
|
|
116
|
+
blackBright: f("\x1B[90m", "\x1B[39m"),
|
|
117
|
+
redBright: f("\x1B[91m", "\x1B[39m"),
|
|
118
|
+
greenBright: f("\x1B[92m", "\x1B[39m"),
|
|
119
|
+
yellowBright: f("\x1B[93m", "\x1B[39m"),
|
|
120
|
+
blueBright: f("\x1B[94m", "\x1B[39m"),
|
|
121
|
+
magentaBright: f("\x1B[95m", "\x1B[39m"),
|
|
122
|
+
cyanBright: f("\x1B[96m", "\x1B[39m"),
|
|
123
|
+
whiteBright: f("\x1B[97m", "\x1B[39m"),
|
|
124
|
+
bgBlackBright: f("\x1B[100m", "\x1B[49m"),
|
|
125
|
+
bgRedBright: f("\x1B[101m", "\x1B[49m"),
|
|
126
|
+
bgGreenBright: f("\x1B[102m", "\x1B[49m"),
|
|
127
|
+
bgYellowBright: f("\x1B[103m", "\x1B[49m"),
|
|
128
|
+
bgBlueBright: f("\x1B[104m", "\x1B[49m"),
|
|
129
|
+
bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
|
|
130
|
+
bgCyanBright: f("\x1B[106m", "\x1B[49m"),
|
|
131
|
+
bgWhiteBright: f("\x1B[107m", "\x1B[49m")
|
|
132
132
|
};
|
|
133
133
|
};
|
|
134
134
|
picocolors.exports = createColors();
|
|
@@ -481,13 +481,13 @@ var x = class {
|
|
|
481
481
|
const e = new WriteStream(0);
|
|
482
482
|
e._write = (s, i, D) => {
|
|
483
483
|
this._track && (this.value = this.rl?.line.replace(/\t/g, ""), this._cursor = this.rl?.cursor ?? 0, this.emit("value", this.value)), D();
|
|
484
|
-
}, this.input.pipe(e), this.rl = f.createInterface({
|
|
484
|
+
}, this.input.pipe(e), this.rl = f$1.createInterface({
|
|
485
485
|
input: this.input,
|
|
486
486
|
output: e,
|
|
487
487
|
tabSize: 2,
|
|
488
488
|
prompt: "",
|
|
489
489
|
escapeCodeTimeout: 50
|
|
490
|
-
}), f.emitKeypressEvents(this.input, this.rl), this.rl.prompt(), this.opts.initialValue !== void 0 && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), d$1(this.input, true), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
|
|
490
|
+
}), f$1.emitKeypressEvents(this.input, this.rl), this.rl.prompt(), this.opts.initialValue !== void 0 && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), d$1(this.input, true), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
|
|
491
491
|
this.output.write(srcExports.cursor.show), this.output.off("resize", this.render), d$1(this.input, false), u(this.value);
|
|
492
492
|
}), this.once("cancel", () => {
|
|
493
493
|
this.output.write(srcExports.cursor.show), this.output.off("resize", this.render), d$1(this.input, false), u(S);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
2
|
-
import { i as logInputHookInOutputPlugin, n as error } from "./logs-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-DkwjzGvT.mjs";
|
|
2
|
+
import { i as logInputHookInOutputPlugin, n as error } from "./logs-N5Akftom.mjs";
|
|
3
|
+
import { n as BuiltinPlugin } from "./normalize-string-or-regex-CYnwzi7f.mjs";
|
|
4
|
+
import { S as VERSION, _ as LOG_LEVEL_DEBUG, b as LOG_LEVEL_WARN, c as transformToRollupOutput, d as transformAssetSource, f as lazyProp, g as normalizeLog, h as normalizeHook, i as transformModuleInfo, l as transformRenderedChunk, m as MinimalPluginContextImpl, p as PlainObjectLike, s as unwrapBindingResult, t as bindingifyInputOptions, u as __decorate, v as LOG_LEVEL_ERROR, x as logLevelPriority, y as LOG_LEVEL_INFO } from "./bindingify-input-options-BioA6ADH.mjs";
|
|
5
|
+
import { i as unimplemented } from "./misc-0HsaOsAX.mjs";
|
|
6
6
|
import { Worker } from "node:worker_threads";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { styleText } from "node:util";
|
|
@@ -17,13 +17,13 @@ function getLogger(plugins, onLog, logLevel, watchMode) {
|
|
|
17
17
|
if (skipped.has(plugin)) continue;
|
|
18
18
|
const { onLog: pluginOnLog } = plugin;
|
|
19
19
|
if (pluginOnLog) {
|
|
20
|
-
const getLogHandler = (level
|
|
21
|
-
if (logLevelPriority[level
|
|
22
|
-
return (log
|
|
20
|
+
const getLogHandler = (level) => {
|
|
21
|
+
if (logLevelPriority[level] < minimalPriority) return () => {};
|
|
22
|
+
return (log) => logger(level, normalizeLog(log), new Set(skipped).add(plugin));
|
|
23
23
|
};
|
|
24
24
|
if (("handler" in pluginOnLog ? pluginOnLog.handler : pluginOnLog).call({
|
|
25
25
|
debug: getLogHandler(LOG_LEVEL_DEBUG),
|
|
26
|
-
error: (log
|
|
26
|
+
error: (log) => error(normalizeLog(log)),
|
|
27
27
|
info: getLogHandler(LOG_LEVEL_INFO),
|
|
28
28
|
meta: {
|
|
29
29
|
rollupVersion: "4.23.0",
|
|
@@ -44,9 +44,9 @@ const getOnLog = (config, logLevel, printLog = defaultPrintLog) => {
|
|
|
44
44
|
const defaultOnLog = getDefaultOnLog(printLog, onwarn);
|
|
45
45
|
if (onLog) {
|
|
46
46
|
const minimalPriority = logLevelPriority[logLevel];
|
|
47
|
-
return (level, log) => onLog(level, addLogToString(log), (level
|
|
48
|
-
if (level
|
|
49
|
-
if (logLevelPriority[level
|
|
47
|
+
return (level, log) => onLog(level, addLogToString(log), (level, handledLog) => {
|
|
48
|
+
if (level === LOG_LEVEL_ERROR) return error(normalizeLog(handledLog));
|
|
49
|
+
if (logLevelPriority[level] >= minimalPriority) defaultOnLog(level, normalizeLog(handledLog));
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
return defaultOnLog;
|
|
@@ -1614,6 +1614,7 @@ const ChecksOptionsSchema = strictObject({
|
|
|
1614
1614
|
commonJsVariableInEsm: pipe(optional(boolean()), description("Whether to emit warnings when a CommonJS variable is used in an ES module")),
|
|
1615
1615
|
importIsUndefined: pipe(optional(boolean()), description("Whether to emit warnings when an imported variable is not exported")),
|
|
1616
1616
|
emptyImportMeta: pipe(optional(boolean()), description("Whether to emit warnings when `import.meta` is not supported with the output format and is replaced with an empty object (`{}`)")),
|
|
1617
|
+
toleratedTransform: pipe(optional(boolean()), description("Whether to emit warnings when detecting tolerated transform")),
|
|
1617
1618
|
cannotCallNamespace: pipe(optional(boolean()), description("Whether to emit warnings when a namespace is called as a function")),
|
|
1618
1619
|
configurationFieldConflict: pipe(optional(boolean()), description("Whether to emit warnings when a config value is overridden by another config value with a higher priority")),
|
|
1619
1620
|
preferBuiltinFeature: pipe(optional(boolean()), description("Whether to emit warnings when a plugin that is covered by a built-in feature is used")),
|
|
@@ -2025,7 +2026,7 @@ var ChunkingContextImpl = class {
|
|
|
2025
2026
|
//#endregion
|
|
2026
2027
|
//#region src/utils/bindingify-output-options.ts
|
|
2027
2028
|
function bindingifyOutputOptions(outputOptions) {
|
|
2028
|
-
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;
|
|
2029
|
+
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, globalIdentifiers } = outputOptions;
|
|
2029
2030
|
if (outputOptions.inlineDynamicImports === true) {
|
|
2030
2031
|
if (manualChunks != null) throw new Error("Invalid value \"true\" for option \"output.inlineDynamicImports\" - this option is not supported for \"output.manualChunks\".");
|
|
2031
2032
|
}
|
|
@@ -2072,7 +2073,8 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
2072
2073
|
preserveModulesRoot,
|
|
2073
2074
|
topLevelVar,
|
|
2074
2075
|
minifyInternalExports: outputOptions.minifyInternalExports,
|
|
2075
|
-
cleanDir
|
|
2076
|
+
cleanDir,
|
|
2077
|
+
globalIdentifiers
|
|
2076
2078
|
};
|
|
2077
2079
|
}
|
|
2078
2080
|
function bindingifyAddon(configAddon) {
|
|
@@ -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-Dc6MJ2CU.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/api/rolldown/index.ts
|
|
4
4
|
/** @category Programmatic APIs */
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
2
|
-
import { o as logMultiplyNotifyOption } from "./logs-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { l as PluginDriver, n as createBundlerOptions } from "./rolldown-build-
|
|
6
|
-
import { a as aggregateBindingErrorsIntoJsError } from "./bindingify-input-options-D0BAGfk2.mjs";
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-DkwjzGvT.mjs";
|
|
2
|
+
import { o as logMultiplyNotifyOption } from "./logs-N5Akftom.mjs";
|
|
3
|
+
import { a as aggregateBindingErrorsIntoJsError, b as LOG_LEVEL_WARN } from "./bindingify-input-options-BioA6ADH.mjs";
|
|
4
|
+
import { t as arraify } from "./misc-0HsaOsAX.mjs";
|
|
5
|
+
import { l as PluginDriver, n as createBundlerOptions } from "./rolldown-build-Dc6MJ2CU.mjs";
|
|
7
6
|
|
|
8
7
|
//#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
|
|
9
8
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rollipop/rolldown",
|
|
3
|
-
"version": "0.0.0-beta.
|
|
3
|
+
"version": "0.0.0-beta.2",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bundler",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@oxc-project/types": "=0.108.0",
|
|
56
|
-
"@rollipop/rolldown-pluginutils": "0.0.0-beta.
|
|
56
|
+
"@rollipop/rolldown-pluginutils": "0.0.0-beta.2"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@napi-rs/cli": "^3.4.1",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"source-map": "^0.7.6",
|
|
74
74
|
"typescript": "^5.8.3",
|
|
75
75
|
"valibot": "1.2.0",
|
|
76
|
-
"@rollipop/rolldown": "0.0.0-beta.
|
|
76
|
+
"@rollipop/rolldown": "0.0.0-beta.2"
|
|
77
77
|
},
|
|
78
78
|
"napi": {
|
|
79
79
|
"binaryName": "rolldown-binding",
|
|
@@ -94,14 +94,14 @@
|
|
|
94
94
|
"node": "^20.19.0 || >=22.12.0"
|
|
95
95
|
},
|
|
96
96
|
"optionalDependencies": {
|
|
97
|
-
"@rollipop/rolldown-binding-darwin-x64": "0.0.0-beta.
|
|
98
|
-
"@rollipop/rolldown-binding-win32-x64-msvc": "0.0.0-beta.
|
|
99
|
-
"@rollipop/rolldown-binding-linux-x64-gnu": "0.0.0-beta.
|
|
100
|
-
"@rollipop/rolldown-binding-linux-x64-musl": "0.0.0-beta.
|
|
101
|
-
"@rollipop/rolldown-binding-linux-arm64-gnu": "0.0.0-beta.
|
|
102
|
-
"@rollipop/rolldown-binding-darwin-arm64": "0.0.0-beta.
|
|
103
|
-
"@rollipop/rolldown-binding-linux-arm64-musl": "0.0.0-beta.
|
|
104
|
-
"@rollipop/rolldown-binding-win32-arm64-msvc": "0.0.0-beta.
|
|
97
|
+
"@rollipop/rolldown-binding-darwin-x64": "0.0.0-beta.2",
|
|
98
|
+
"@rollipop/rolldown-binding-win32-x64-msvc": "0.0.0-beta.2",
|
|
99
|
+
"@rollipop/rolldown-binding-linux-x64-gnu": "0.0.0-beta.2",
|
|
100
|
+
"@rollipop/rolldown-binding-linux-x64-musl": "0.0.0-beta.2",
|
|
101
|
+
"@rollipop/rolldown-binding-linux-arm64-gnu": "0.0.0-beta.2",
|
|
102
|
+
"@rollipop/rolldown-binding-darwin-arm64": "0.0.0-beta.2",
|
|
103
|
+
"@rollipop/rolldown-binding-linux-arm64-musl": "0.0.0-beta.2",
|
|
104
|
+
"@rollipop/rolldown-binding-win32-arm64-msvc": "0.0.0-beta.2"
|
|
105
105
|
},
|
|
106
106
|
"scripts": {
|
|
107
107
|
"# Scrips for binding #": "_",
|