@rollipop/rolldown 0.0.0-beta.1 → 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.
Files changed (34) hide show
  1. package/dist/cli-setup.mjs +1 -1
  2. package/dist/cli.mjs +37 -37
  3. package/dist/config.d.mts +2 -2
  4. package/dist/config.mjs +7 -7
  5. package/dist/experimental-index.d.mts +4 -62
  6. package/dist/experimental-index.mjs +7 -40
  7. package/dist/experimental-runtime-types.d.ts +12 -1
  8. package/dist/filter-index.d.mts +2 -2
  9. package/dist/filter-index.mjs +1 -1
  10. package/dist/index.d.mts +2 -2
  11. package/dist/index.mjs +7 -7
  12. package/dist/parallel-plugin-worker.mjs +4 -4
  13. package/dist/parallel-plugin.d.mts +2 -2
  14. package/dist/parse-ast-index.d.mts +1 -1
  15. package/dist/parse-ast-index.mjs +2 -2
  16. package/dist/plugins-index.d.mts +3 -3
  17. package/dist/plugins-index.mjs +3 -3
  18. package/dist/shared/{binding-kAegJ1Bj.d.mts → binding-C9YdqoUG.d.mts} +2 -120
  19. package/dist/shared/{binding-BGro4B9r.mjs → binding-DkwjzGvT.mjs} +26 -27
  20. package/dist/shared/{bindingify-input-options-Cbn4Fx-U.mjs → bindingify-input-options-BioA6ADH.mjs} +573 -21
  21. package/dist/shared/{constructors-g6aWFjfR.mjs → constructors-CQbXvIw9.mjs} +2 -8
  22. package/dist/shared/{constructors-BaMrri8j.d.mts → constructors-D9F4Aj4h.d.mts} +3 -5
  23. package/dist/shared/{define-config-C0bKR4ot.d.mts → define-config-glNgjHCc.d.mts} +6 -1
  24. package/dist/shared/{load-config-CSb1tL9s.mjs → load-config-BsPJHbns.mjs} +1 -1
  25. package/dist/shared/{logs-cyjC0SDv.mjs → logs-N5Akftom.mjs} +2 -2
  26. package/dist/shared/normalize-string-or-regex-CYnwzi7f.mjs +61 -0
  27. package/dist/shared/{parse-ast-index-oopYDFzI.mjs → parse-ast-index-D50raXC6.mjs} +2 -2
  28. package/dist/shared/{prompt-5sWCM0jm.mjs → prompt-BZ-QjPVS.mjs} +45 -45
  29. package/dist/shared/{rolldown-build-CENRTWd-.mjs → rolldown-build-Dc6MJ2CU.mjs} +13 -12
  30. package/dist/shared/{rolldown-DA9aR8tX.mjs → rolldown-nC7B9qvJ.mjs} +1 -1
  31. package/dist/shared/{watch-CjiZ0BRX.mjs → watch-C1nsTy4z.mjs} +5 -6
  32. package/package.json +11 -11
  33. package/dist/shared/normalize-string-or-regex-CjC3YBVf.mjs +0 -670
  34. /package/dist/shared/{misc-DpjTMcQQ.mjs → misc-0HsaOsAX.mjs} +0 -0
@@ -1,5 +1,5 @@
1
- import { D as BindingViteResolvePluginConfig, E as BindingViteReporterPluginConfig, S as BindingViteJsonPluginConfig, T as BindingViteReactRefreshWrapperPluginConfig, h as BindingViteBuildImportAnalysisPluginConfig, i as BindingEsmExternalRequirePluginConfig, k as BindingViteWasmHelperPluginConfig, o as BindingIsolatedDeclarationPluginConfig, p as BindingViteAssetImportMetaUrlPluginConfig, v as BindingViteDynamicImportVarsPluginConfig, w as BindingViteModulePreloadPolyfillPluginConfig, x as BindingViteImportGlobPluginConfig, y as BindingViteHtmlInlineProxyPluginConfig } from "./binding-kAegJ1Bj.mjs";
2
- import { At as StringOrRegExp, M as BuiltinPlugin } from "./define-config-C0bKR4ot.mjs";
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 { viteDynamicImportVarsPlugin as a, viteJsonPlugin as c, viteReactRefreshWrapperPlugin as d, viteReporterPlugin as f, viteWebWorkerPostPlugin as g, viteWasmHelperPlugin as h, viteBuildImportAnalysisPlugin as i, viteLoadFallbackPlugin as l, viteWasmFallbackPlugin as m, isolatedDeclarationPlugin as n, viteHtmlInlineProxyPlugin as o, viteResolvePlugin as p, viteAssetImportMetaUrlPlugin as r, viteImportGlobPlugin as s, esmExternalRequirePlugin as t, viteModulePreloadPolyfillPlugin as u };
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 { A as BindingWatcherBundler, B as ParserOptions, F as JsxOptions, I as MinifyOptions$1, M as ExternalMemoryStatus, V as PreRenderedChunk, W as TransformOptions$1, a as BindingHookResolveIdExtraArgs, d as BindingTransformHookExtraArgs, j as BindingWatcherEvent, l as BindingRenderedChunk, s as BindingMagicString, t as BindingBuiltinPluginName } from "./binding-kAegJ1Bj.mjs";
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.
@@ -1,4 +1,4 @@
1
- import { t as rolldown } from "./rolldown-DA9aR8tX.mjs";
1
+ import { t as rolldown } from "./rolldown-nC7B9qvJ.mjs";
2
2
  import fs from "node:fs";
3
3
  import path from "node:path";
4
4
  import { readdir } from "node:fs/promises";
@@ -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$1) => {
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$1
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-BGro4B9r.mjs";
2
- import { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from "./logs-cyjC0SDv.mjs";
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$1 = enabled ? formatter : () => String;
88
+ let f = enabled ? formatter : () => String;
89
89
  return {
90
90
  isColorSupported: enabled,
91
- reset: f$1("\x1B[0m", "\x1B[0m"),
92
- bold: f$1("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
93
- dim: f$1("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
94
- italic: f$1("\x1B[3m", "\x1B[23m"),
95
- underline: f$1("\x1B[4m", "\x1B[24m"),
96
- inverse: f$1("\x1B[7m", "\x1B[27m"),
97
- hidden: f$1("\x1B[8m", "\x1B[28m"),
98
- strikethrough: f$1("\x1B[9m", "\x1B[29m"),
99
- black: f$1("\x1B[30m", "\x1B[39m"),
100
- red: f$1("\x1B[31m", "\x1B[39m"),
101
- green: f$1("\x1B[32m", "\x1B[39m"),
102
- yellow: f$1("\x1B[33m", "\x1B[39m"),
103
- blue: f$1("\x1B[34m", "\x1B[39m"),
104
- magenta: f$1("\x1B[35m", "\x1B[39m"),
105
- cyan: f$1("\x1B[36m", "\x1B[39m"),
106
- white: f$1("\x1B[37m", "\x1B[39m"),
107
- gray: f$1("\x1B[90m", "\x1B[39m"),
108
- bgBlack: f$1("\x1B[40m", "\x1B[49m"),
109
- bgRed: f$1("\x1B[41m", "\x1B[49m"),
110
- bgGreen: f$1("\x1B[42m", "\x1B[49m"),
111
- bgYellow: f$1("\x1B[43m", "\x1B[49m"),
112
- bgBlue: f$1("\x1B[44m", "\x1B[49m"),
113
- bgMagenta: f$1("\x1B[45m", "\x1B[49m"),
114
- bgCyan: f$1("\x1B[46m", "\x1B[49m"),
115
- bgWhite: f$1("\x1B[47m", "\x1B[49m"),
116
- blackBright: f$1("\x1B[90m", "\x1B[39m"),
117
- redBright: f$1("\x1B[91m", "\x1B[39m"),
118
- greenBright: f$1("\x1B[92m", "\x1B[39m"),
119
- yellowBright: f$1("\x1B[93m", "\x1B[39m"),
120
- blueBright: f$1("\x1B[94m", "\x1B[39m"),
121
- magentaBright: f$1("\x1B[95m", "\x1B[39m"),
122
- cyanBright: f$1("\x1B[96m", "\x1B[39m"),
123
- whiteBright: f$1("\x1B[97m", "\x1B[39m"),
124
- bgBlackBright: f$1("\x1B[100m", "\x1B[49m"),
125
- bgRedBright: f$1("\x1B[101m", "\x1B[49m"),
126
- bgGreenBright: f$1("\x1B[102m", "\x1B[49m"),
127
- bgYellowBright: f$1("\x1B[103m", "\x1B[49m"),
128
- bgBlueBright: f$1("\x1B[104m", "\x1B[49m"),
129
- bgMagentaBright: f$1("\x1B[105m", "\x1B[49m"),
130
- bgCyanBright: f$1("\x1B[106m", "\x1B[49m"),
131
- bgWhiteBright: f$1("\x1B[107m", "\x1B[49m")
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-BGro4B9r.mjs";
2
- import { i as logInputHookInOutputPlugin, n as error } from "./logs-cyjC0SDv.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-CjC3YBVf.mjs";
5
- import { c as normalizeHook, i as transformModuleInfo, s as unwrapBindingResult, t as bindingifyInputOptions } from "./bindingify-input-options-Cbn4Fx-U.mjs";
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$1) => {
21
- if (logLevelPriority[level$1] < minimalPriority) return () => {};
22
- return (log$1) => logger(level$1, normalizeLog(log$1), new Set(skipped).add(plugin));
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$1) => error(normalizeLog(log$1)),
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$1, handledLog) => {
48
- if (level$1 === LOG_LEVEL_ERROR) return error(normalizeLog(handledLog));
49
- if (logLevelPriority[level$1] >= minimalPriority) defaultOnLog(level$1, normalizeLog(handledLog));
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")),
@@ -1,4 +1,4 @@
1
- import { l as PluginDriver, s as validateOption, t as RolldownBuild } from "./rolldown-build-CENRTWd-.mjs";
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-BGro4B9r.mjs";
2
- import { o as logMultiplyNotifyOption } from "./logs-cyjC0SDv.mjs";
3
- import { t as arraify } from "./misc-DpjTMcQQ.mjs";
4
- import { E as LOG_LEVEL_WARN } from "./normalize-string-or-regex-CjC3YBVf.mjs";
5
- import { l as PluginDriver, n as createBundlerOptions } from "./rolldown-build-CENRTWd-.mjs";
6
- import { a as aggregateBindingErrorsIntoJsError } from "./bindingify-input-options-Cbn4Fx-U.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.1",
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.1"
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.1"
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.1",
98
- "@rollipop/rolldown-binding-win32-x64-msvc": "0.0.0-beta.1",
99
- "@rollipop/rolldown-binding-linux-x64-gnu": "0.0.0-beta.1",
100
- "@rollipop/rolldown-binding-linux-x64-musl": "0.0.0-beta.1",
101
- "@rollipop/rolldown-binding-linux-arm64-gnu": "0.0.0-beta.1",
102
- "@rollipop/rolldown-binding-darwin-arm64": "0.0.0-beta.1",
103
- "@rollipop/rolldown-binding-linux-arm64-musl": "0.0.0-beta.1",
104
- "@rollipop/rolldown-binding-win32-arm64-msvc": "0.0.0-beta.1"
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 #": "_",