@rollipop/rolldown 0.0.0-beta.1 → 0.0.0-beta.3
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-BGro4B9r.mjs → binding-uOeDeDzp.mjs} +26 -27
- package/dist/shared/{bindingify-input-options-Cbn4Fx-U.mjs → bindingify-input-options-CuBDHglZ.mjs} +573 -21
- package/dist/shared/{constructors-BaMrri8j.d.mts → constructors-D9F4Aj4h.d.mts} +3 -5
- package/dist/shared/{constructors-g6aWFjfR.mjs → constructors-DmSv3tnW.mjs} +2 -8
- package/dist/shared/{define-config-C0bKR4ot.d.mts → define-config-glNgjHCc.d.mts} +6 -1
- package/dist/shared/{load-config-CSb1tL9s.mjs → load-config-Bo3y98vw.mjs} +1 -1
- package/dist/shared/{logs-cyjC0SDv.mjs → logs-N5Akftom.mjs} +2 -2
- package/dist/shared/normalize-string-or-regex-0f6WITto.mjs +61 -0
- package/dist/shared/{parse-ast-index-oopYDFzI.mjs → parse-ast-index-B0iVLbj6.mjs} +2 -2
- package/dist/shared/{prompt-5sWCM0jm.mjs → prompt-BZ-QjPVS.mjs} +45 -45
- package/dist/shared/{rolldown-build-CENRTWd-.mjs → rolldown-build-BqHWBpp7.mjs} +15 -13
- package/dist/shared/{rolldown-DA9aR8tX.mjs → rolldown-mAJGca5O.mjs} +1 -1
- package/dist/shared/{watch-CjiZ0BRX.mjs → watch-Ce8bKBAn.mjs} +5 -6
- package/package.json +11 -11
- package/dist/shared/normalize-string-or-regex-CjC3YBVf.mjs +0 -670
- /package/dist/shared/{misc-DpjTMcQQ.mjs → misc-0HsaOsAX.mjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-0f6WITto.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/builtin-plugin/constructors.ts
|
|
4
4
|
function viteModulePreloadPolyfillPlugin(config) {
|
|
@@ -56,12 +56,6 @@ function viteReactRefreshWrapperPlugin(config) {
|
|
|
56
56
|
}
|
|
57
57
|
return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:vite-react-refresh-wrapper", config));
|
|
58
58
|
}
|
|
59
|
-
function viteHtmlInlineProxyPlugin(config) {
|
|
60
|
-
return new BuiltinPlugin("builtin:vite-html-inline-proxy", config);
|
|
61
|
-
}
|
|
62
|
-
function viteAssetImportMetaUrlPlugin(config) {
|
|
63
|
-
return new BuiltinPlugin("builtin:vite-asset-import-meta-url", config);
|
|
64
|
-
}
|
|
65
59
|
|
|
66
60
|
//#endregion
|
|
67
|
-
export {
|
|
61
|
+
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
|
|
|
@@ -1125,6 +1125,11 @@ interface ChecksOptions {
|
|
|
1125
1125
|
* */
|
|
1126
1126
|
emptyImportMeta?: boolean;
|
|
1127
1127
|
/**
|
|
1128
|
+
* Whether to emit warnings when detecting tolerated transform
|
|
1129
|
+
* @default true
|
|
1130
|
+
* */
|
|
1131
|
+
toleratedTransform?: boolean;
|
|
1132
|
+
/**
|
|
1128
1133
|
* Whether to emit warnings when a namespace is called as a function
|
|
1129
1134
|
*
|
|
1130
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-uOeDeDzp.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-uOeDeDzp.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-uOeDeDzp.mjs";
|
|
2
|
+
import { i as logInputHookInOutputPlugin, n as error } from "./logs-N5Akftom.mjs";
|
|
3
|
+
import { n as BuiltinPlugin } from "./normalize-string-or-regex-0f6WITto.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-CuBDHglZ.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")),
|
|
@@ -1890,7 +1891,8 @@ const OutputOptionsSchema = strictObject({
|
|
|
1890
1891
|
minifyInternalExports: pipe(optional(boolean()), description("Minify internal exports")),
|
|
1891
1892
|
topLevelVar: pipe(optional(boolean()), description("Rewrite top-level declarations to use `var`.")),
|
|
1892
1893
|
cleanDir: pipe(optional(boolean()), description("Clean output directory before emitting output")),
|
|
1893
|
-
keepNames: pipe(optional(boolean()), description("Keep function and class names after bundling"))
|
|
1894
|
+
keepNames: pipe(optional(boolean()), description("Keep function and class names after bundling")),
|
|
1895
|
+
globalIdentifiers: pipe(optional(array(string())), description("Reserved global identifiers to be avoided when generating export binding names for module chunks"))
|
|
1894
1896
|
});
|
|
1895
1897
|
const getAddonDescription = (placement, wrapper) => {
|
|
1896
1898
|
return `Code to insert the ${styleText$1("bold", placement)} of the bundled file (${styleText$1("bold", wrapper)} the wrapper function)`;
|
|
@@ -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-BqHWBpp7.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-Cbn4Fx-U.mjs";
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-uOeDeDzp.mjs";
|
|
2
|
+
import { o as logMultiplyNotifyOption } from "./logs-N5Akftom.mjs";
|
|
3
|
+
import { a as aggregateBindingErrorsIntoJsError, b as LOG_LEVEL_WARN } from "./bindingify-input-options-CuBDHglZ.mjs";
|
|
4
|
+
import { t as arraify } from "./misc-0HsaOsAX.mjs";
|
|
5
|
+
import { l as PluginDriver, n as createBundlerOptions } from "./rolldown-build-BqHWBpp7.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.3",
|
|
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.3"
|
|
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.3"
|
|
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.3",
|
|
98
|
+
"@rollipop/rolldown-binding-win32-x64-msvc": "0.0.0-beta.3",
|
|
99
|
+
"@rollipop/rolldown-binding-linux-x64-gnu": "0.0.0-beta.3",
|
|
100
|
+
"@rollipop/rolldown-binding-linux-x64-musl": "0.0.0-beta.3",
|
|
101
|
+
"@rollipop/rolldown-binding-linux-arm64-gnu": "0.0.0-beta.3",
|
|
102
|
+
"@rollipop/rolldown-binding-darwin-arm64": "0.0.0-beta.3",
|
|
103
|
+
"@rollipop/rolldown-binding-linux-arm64-musl": "0.0.0-beta.3",
|
|
104
|
+
"@rollipop/rolldown-binding-win32-arm64-msvc": "0.0.0-beta.3"
|
|
105
105
|
},
|
|
106
106
|
"scripts": {
|
|
107
107
|
"# Scrips for binding #": "_",
|