@rolldown/browser 1.0.0-rc.8 → 1.0.0-rc.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -1,12 +1,12 @@
1
- import { n as onExit, t as watch } from "./shared/watch-BMFUc4Au.mjs";
1
+ import { n as onExit, t as watch } from "./shared/watch-Cj4uDLQX.mjs";
2
2
  import "./shared/normalize-string-or-regex-CF3Uz6aU.mjs";
3
- import { S as version, x as description } from "./shared/bindingify-input-options-CxjTlvCV.mjs";
3
+ import { C as version, S as description } from "./shared/bindingify-input-options-Cfptl9gw.mjs";
4
4
  import { h as arraify } from "./shared/composable-filters-B2ByPP8y.mjs";
5
- import { a as getInputCliKeys, i as getCliSchemaInfo, l as styleText, o as getOutputCliKeys, r as logger, s as validateCliOptions } from "./shared/rolldown-build-D_FXM8pA.mjs";
5
+ import { a as getInputCliKeys, i as getCliSchemaInfo, l as styleText, o as getOutputCliKeys, r as logger, s as validateCliOptions } from "./shared/rolldown-build-DZ7tJkeQ.mjs";
6
6
  import "./shared/error-CQ6njWsV.mjs";
7
7
  import "./shared/parse-DDUnGYGU.mjs";
8
- import { t as rolldown } from "./shared/rolldown-D2p2QuF1.mjs";
9
- import { t as loadConfig } from "./shared/load-config-Cs9h9aXF.mjs";
8
+ import { t as rolldown } from "./shared/rolldown-BDqeiCX1.mjs";
9
+ import { t as loadConfig } from "./shared/load-config-B6MMusXN.mjs";
10
10
  import path from "node:path";
11
11
  import process$1 from "node:process";
12
12
  import { EventEmitter } from "events";
@@ -673,10 +673,26 @@ function parseCliArguments() {
673
673
  if (value === void 0) continue;
674
674
  const values = Array.isArray(value) ? value : [value];
675
675
  if (typeof values[0] !== "string") continue;
676
+ let usedDeprecatedSyntax = false;
676
677
  const result = {};
677
678
  for (const v of values) for (const pair of String(v).split(",")) {
678
- const [k, ...rest] = pair.split("=");
679
- if (k && rest.length > 0) result[k] = rest.join("=");
679
+ const colonIdx = pair.indexOf(":");
680
+ const eqIdx = pair.indexOf("=");
681
+ let k;
682
+ let val;
683
+ if (colonIdx > 0 && (eqIdx === -1 || colonIdx < eqIdx)) {
684
+ k = pair.slice(0, colonIdx);
685
+ val = pair.slice(colonIdx + 1);
686
+ } else if (eqIdx > 0) {
687
+ k = pair.slice(0, eqIdx);
688
+ val = pair.slice(eqIdx + 1);
689
+ usedDeprecatedSyntax = true;
690
+ } else continue;
691
+ result[k] = val;
692
+ }
693
+ if (usedDeprecatedSyntax) {
694
+ const optionName = camelCaseToKebabCase(schemaKey);
695
+ logger.warn(`Using \`key=value\` syntax for \`--${optionName}\` is deprecated. Use \`key:value\` instead.`);
680
696
  }
681
697
  parent[leafKey] = result;
682
698
  }
package/dist/config.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { et as VERSION, r as defineConfig, t as ConfigExport } from "./shared/define-config-TEoV5q6D.mjs";
1
+ import { $ as VERSION, r as defineConfig, t as ConfigExport } from "./shared/define-config-B1J71V4c.mjs";
2
2
 
3
3
  //#region src/utils/load-config.d.ts
4
4
  /**
package/dist/config.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  import "./shared/normalize-string-or-regex-CF3Uz6aU.mjs";
2
- import { b as VERSION } from "./shared/bindingify-input-options-CxjTlvCV.mjs";
3
- import "./shared/rolldown-build-D_FXM8pA.mjs";
2
+ import { x as VERSION } from "./shared/bindingify-input-options-Cfptl9gw.mjs";
3
+ import "./shared/rolldown-build-DZ7tJkeQ.mjs";
4
4
  import "./shared/error-CQ6njWsV.mjs";
5
5
  import "./shared/parse-DDUnGYGU.mjs";
6
- import "./shared/rolldown-D2p2QuF1.mjs";
6
+ import "./shared/rolldown-BDqeiCX1.mjs";
7
7
  import { t as defineConfig } from "./shared/define-config-DJOr6Iwt.mjs";
8
- import { t as loadConfig } from "./shared/load-config-Cs9h9aXF.mjs";
8
+ import { t as loadConfig } from "./shared/load-config-B6MMusXN.mjs";
9
9
  export { VERSION, defineConfig, loadConfig };
@@ -1,5 +1,5 @@
1
1
  import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-TtAGUp42.js";
2
- import { a as PluginDriver, i as validateOption, n as createBundlerOptions, r as transformToRollupOutput, t as RolldownBuild } from "./rolldown-build-Clh1p2eh.js";
2
+ import { a as validateOption, i as transformToRollupOutput, n as createBundlerOptions, o as PluginDriver, t as RolldownBuild } from "./rolldown-build-sRmdtwRU.js";
3
3
  import { a as parse$2, i as unwrapBindingResult, o as parseSync$2, r as normalizeBindingResult } from "./error-DkAP_6fk.js";
4
4
  import { a as viteImportGlobPlugin, c as viteModulePreloadPolyfillPlugin, d as viteResolvePlugin, f as viteWasmFallbackPlugin, i as viteDynamicImportVarsPlugin, l as viteReactRefreshWrapperPlugin, n as isolatedDeclarationPlugin, o as viteJsonPlugin, p as viteWebWorkerPostPlugin, r as viteBuildImportAnalysisPlugin, s as viteLoadFallbackPlugin, u as viteReporterPlugin } from "./constructors-BgL_dmUe.js";
5
5
  import { a as minifySync$2, i as minify$2, n as transform$1, r as transformSync$1, t as TsconfigCache$1 } from "./transform-UkHb5h4g.js";
@@ -1,4 +1,4 @@
1
- import { Et as NormalizedOutputOptions, c as InputOptions, ht as defineParallelPlugin, ln as freeExternalMemory, sn as RolldownOutput, tn as OutputOptions } from "./shared/define-config-TEoV5q6D.mjs";
1
+ import { Tt as NormalizedOutputOptions, c as InputOptions, ln as freeExternalMemory, mt as defineParallelPlugin, sn as RolldownOutput, tn as OutputOptions } from "./shared/define-config-B1J71V4c.mjs";
2
2
  import { t as BuiltinPlugin } from "./shared/utils-6wxe_LMG.mjs";
3
3
  import { a as viteImportGlobPlugin, c as viteModulePreloadPolyfillPlugin, d as viteResolvePlugin, f as viteWasmFallbackPlugin, i as viteDynamicImportVarsPlugin, l as viteReactRefreshWrapperPlugin, n as isolatedDeclarationPlugin, o as viteJsonPlugin, p as viteWebWorkerPostPlugin, r as viteBuildImportAnalysisPlugin, s as viteLoadFallbackPlugin, u as viteReporterPlugin } from "./shared/constructors-C1tQjDsj.mjs";
4
4
  import { a as TsconfigRawOptions$1, c as MinifyOptions$2, d as minifySync$1, f as ParseResult$3, h as parseSync$1, i as TsconfigCompilerOptions$1, l as MinifyResult$2, m as parse$1, n as TransformResult$1, o as transform$1, p as ParserOptions$3, r as TsconfigCache$1, s as transformSync$1, t as TransformOptions$2, u as minify$1 } from "./shared/transform-BSAGL1b_.mjs";
@@ -1,6 +1,6 @@
1
1
  import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-CF3Uz6aU.mjs";
2
- import { a as transformToRollupOutput } from "./shared/bindingify-input-options-CxjTlvCV.mjs";
3
- import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-D_FXM8pA.mjs";
2
+ import { o as transformToRollupOutput } from "./shared/bindingify-input-options-Cfptl9gw.mjs";
3
+ import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-DZ7tJkeQ.mjs";
4
4
  import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-CQ6njWsV.mjs";
5
5
  import { n as parseSync$2, t as parse$2 } from "./shared/parse-DDUnGYGU.mjs";
6
6
  import { a as viteImportGlobPlugin, c as viteModulePreloadPolyfillPlugin, d as viteResolvePlugin, f as viteWasmFallbackPlugin, i as viteDynamicImportVarsPlugin, l as viteReactRefreshWrapperPlugin, n as isolatedDeclarationPlugin, o as viteJsonPlugin, p as viteWebWorkerPostPlugin, r as viteBuildImportAnalysisPlugin, s as viteLoadFallbackPlugin, u as viteReporterPlugin } from "./shared/constructors-C7Kkidxk.mjs";
@@ -1,4 +1,4 @@
1
- import { B as exprInterpreter, F as QueryFilterObject, G as interpreterImpl, H as importerId, I as TopLevelFilterExpression, J as or, K as moduleType, L as and, M as withFilter, N as FilterExpression, P as FilterExpressionKind, R as code, U as include, V as id, W as interpreter, X as query, Y as queries, q as not, z as exclude } from "./shared/define-config-TEoV5q6D.mjs";
1
+ import { B as exprInterpreter, F as QueryFilterObject, G as interpreterImpl, H as importerId, I as TopLevelFilterExpression, J as or, K as moduleType, L as and, M as withFilter, N as FilterExpression, P as FilterExpressionKind, R as code, U as include, V as id, W as interpreter, X as query, Y as queries, q as not, z as exclude } from "./shared/define-config-B1J71V4c.mjs";
2
2
 
3
3
  //#region ../pluginutils/dist/filter/filter-vite-plugins.d.ts
4
4
  /**
@@ -1,7 +1,7 @@
1
1
  import { d as logMultipleWatcherOption } from "./normalize-string-or-regex-TtAGUp42.js";
2
- import { a as PluginDriver, c as RUNTIME_MODULE_ID, i as validateOption, l as VERSION, n as createBundlerOptions, o as LOG_LEVEL_WARN, s as arraify, t as RolldownBuild } from "./rolldown-build-Clh1p2eh.js";
2
+ import { a as validateOption, c as arraify, l as RUNTIME_MODULE_ID, n as createBundlerOptions, o as PluginDriver, r as BindingMagicString, s as LOG_LEVEL_WARN, t as RolldownBuild, u as VERSION } from "./rolldown-build-sRmdtwRU.js";
3
3
  import { t as aggregateBindingErrorsIntoJsError } from "./error-DkAP_6fk.js";
4
- import { BindingMagicString, BindingWatcher, shutdownAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
4
+ import { BindingWatcher, shutdownAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
5
5
  //#region src/api/rolldown/index.ts
6
6
  /**
7
7
  * The API compatible with Rollup's `rollup` function.
@@ -235,4 +235,4 @@ function defineConfig(config) {
235
235
  return config;
236
236
  }
237
237
  //#endregion
238
- export { BindingMagicString, RUNTIME_MODULE_ID, VERSION, build, defineConfig, rolldown, watch };
238
+ export { RUNTIME_MODULE_ID, BindingMagicString as RolldownMagicString, VERSION, build, defineConfig, rolldown, watch };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
1
  import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./shared/logging-C6h4g8dA.mjs";
2
- import { $ as RUNTIME_MODULE_ID, $t as MinifyOptions, A as SourceDescription, At as LoggingFunction, Bt as build, C as PartialResolvedId, Ct as RolldownFileStats, D as ResolvedId, Dt as NormalizedInputOptions, E as ResolveIdResult, Et as NormalizedOutputOptions, Ft as RolldownWatcherWatcherEventMap, Gt as ChunkingContext, Ht as AdvancedChunksGroup, It as WatchOptions, Jt as CodeSplittingOptions, Kt as CodeSplittingGroup, Lt as rolldown, Mt as watch, Nt as RolldownWatcher, O as RolldownPlugin, Ot as TransformOptions, Pt as RolldownWatcherEvent, Q as PreRenderedChunk, Qt as GlobalsFunction, Rt as RolldownBuild, S as ParallelPluginHooks, St as RolldownDirectoryEntry, T as ResolveIdExtraOptions, Tt as InternalModuleFormat, Ut as AdvancedChunksOptions, Vt as AddonFunction, Wt as ChunkFileNamesFunction, Xt as GeneratedCodeOptions, Yt as CommentsOptions, Z as BindingMagicString, Zt as GeneratedCodePreset, _ as ImportKind, _t as PluginContextMeta, a as ExternalOption, an as RenderedChunk, at as TreeshakingOptions, b as ModuleType, bt as ModuleTypeFilter, c as InputOptions, cn as SourceMap, ct as EmittedChunk, d as WatcherFileWatcherOptions, dn as SourcemapIgnoreListOption, dt as GetModuleInfo, en as ModuleFormat, et as VERSION, f as WatcherOptions, ft as PluginContext, g as HookFilterExtension, gt as MinimalPluginContext, h as FunctionPluginHooks, i as RolldownOptions, in as OutputChunk, it as OutputBundle, j as TransformResult, jt as WarningHandlerWithDefault, k as RolldownPluginOption, kt as ChecksOptions, l as ModuleTypes, lt as EmittedFile, m as CustomPluginOptions, mt as DefineParallelPluginResult, n as RolldownOptionsFunction, nn as PreRenderedAsset, nt as ExistingRawSourceMap, o as ExternalOptionFunction, on as RenderedModule, ot as TransformPluginContext, p as AsyncPluginHooks, pt as PluginContextResolveOptions, qt as CodeSplittingNameFunction, r as defineConfig, rn as OutputAsset, rt as SourceMapInput, s as InputOption, sn as RolldownOutput, st as EmittedAsset, t as ConfigExport, tn as OutputOptions, tt as BundleError, u as OptimizationOptions, un as ModuleInfo, ut as EmittedPrebuiltChunk, v as LoadResult, vt as GeneralHookFilter, w as Plugin, wt as RolldownFsModule, x as ObjectHook, xt as BufferEncoding, y as ModuleOptions, yt as HookFilter, zt as BuildOptions } from "./shared/define-config-TEoV5q6D.mjs";
2
+ import { $ as VERSION, $t as MinifyOptions, A as SourceDescription, At as WarningHandlerWithDefault, Bt as build, C as PartialResolvedId, Ct as RolldownFsModule, D as ResolvedId, Dt as TransformOptions, E as ResolveIdResult, Et as NormalizedInputOptions, Ft as RolldownWatcherWatcherEventMap, Gt as ChunkingContext, Ht as AdvancedChunksGroup, It as WatchOptions, Jt as CodeSplittingOptions, Kt as CodeSplittingGroup, Lt as rolldown, Mt as watch, Nt as RolldownWatcher, O as RolldownPlugin, Ot as ChecksOptions, Pt as RolldownWatcherEvent, Q as RUNTIME_MODULE_ID, Qt as GlobalsFunction, Rt as RolldownBuild, S as ParallelPluginHooks, St as RolldownFileStats, T as ResolveIdExtraOptions, Tt as NormalizedOutputOptions, Ut as AdvancedChunksOptions, Vt as AddonFunction, Wt as ChunkFileNamesFunction, Xt as GeneratedCodeOptions, Yt as CommentsOptions, Z as PreRenderedChunk, Zt as GeneratedCodePreset, _ as ImportKind, _t as GeneralHookFilter, a as ExternalOption, an as RenderedChunk, at as TransformPluginContext, b as ModuleType, bt as BufferEncoding, c as InputOptions, cn as SourceMap, ct as EmittedFile, d as WatcherFileWatcherOptions, dn as SourcemapIgnoreListOption, dt as PluginContext, en as ModuleFormat, et as BundleError, f as WatcherOptions, ft as PluginContextResolveOptions, g as HookFilterExtension, gt as PluginContextMeta, h as FunctionPluginHooks, ht as MinimalPluginContext, i as RolldownOptions, in as OutputChunk, it as TreeshakingOptions, j as TransformResult, jt as BindingMagicString, k as RolldownPluginOption, kt as LoggingFunction, l as ModuleTypes, lt as EmittedPrebuiltChunk, m as CustomPluginOptions, n as RolldownOptionsFunction, nn as PreRenderedAsset, nt as SourceMapInput, o as ExternalOptionFunction, on as RenderedModule, ot as EmittedAsset, p as AsyncPluginHooks, pt as DefineParallelPluginResult, qt as CodeSplittingNameFunction, r as defineConfig, rn as OutputAsset, rt as OutputBundle, s as InputOption, sn as RolldownOutput, st as EmittedChunk, t as ConfigExport, tn as OutputOptions, tt as ExistingRawSourceMap, u as OptimizationOptions, un as ModuleInfo, ut as GetModuleInfo, v as LoadResult, vt as HookFilter, w as Plugin, wt as InternalModuleFormat, x as ObjectHook, xt as RolldownDirectoryEntry, y as ModuleOptions, yt as ModuleTypeFilter, zt as BuildOptions } from "./shared/define-config-B1J71V4c.mjs";
3
3
  import { o as PartialNull } from "./shared/utils-6wxe_LMG.mjs";
4
- export { AddonFunction, AdvancedChunksGroup, AdvancedChunksOptions, AsyncPluginHooks, BindingMagicString, BufferEncoding, BuildOptions, BundleError, ChecksOptions, ChunkFileNamesFunction, ChunkingContext, CodeSplittingGroup, CodeSplittingNameFunction, CodeSplittingOptions, CommentsOptions, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedChunk, EmittedFile, EmittedPrebuiltChunk, ExistingRawSourceMap, ExternalOption, ExternalOptionFunction, FunctionPluginHooks, GeneralHookFilter, GeneratedCodeOptions, GeneratedCodePreset, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OptimizationOptions, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PluginContextResolveOptions, PreRenderedAsset, PreRenderedChunk, RUNTIME_MODULE_ID, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownDirectoryEntry, RolldownError, RolldownError as RollupError, RolldownFileStats, RolldownFsModule, RolldownLog, RolldownLog as RollupLog, RolldownLogWithString, RolldownLogWithString as RollupLogWithString, RolldownOptions, RolldownOptionsFunction, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RolldownWatcherWatcherEventMap, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformOptions, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherFileWatcherOptions, WatcherOptions, build, defineConfig, rolldown, watch };
4
+ export { AddonFunction, AdvancedChunksGroup, AdvancedChunksOptions, AsyncPluginHooks, BufferEncoding, BuildOptions, BundleError, ChecksOptions, ChunkFileNamesFunction, ChunkingContext, CodeSplittingGroup, CodeSplittingNameFunction, CodeSplittingOptions, CommentsOptions, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedChunk, EmittedFile, EmittedPrebuiltChunk, ExistingRawSourceMap, ExternalOption, ExternalOptionFunction, FunctionPluginHooks, GeneralHookFilter, GeneratedCodeOptions, GeneratedCodePreset, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OptimizationOptions, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PluginContextResolveOptions, PreRenderedAsset, PreRenderedChunk, RUNTIME_MODULE_ID, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownDirectoryEntry, RolldownError, RolldownError as RollupError, RolldownFileStats, RolldownFsModule, RolldownLog, RolldownLog as RollupLog, RolldownLogWithString, RolldownLogWithString as RollupLogWithString, BindingMagicString as RolldownMagicString, RolldownOptions, RolldownOptionsFunction, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RolldownWatcherWatcherEventMap, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformOptions, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherFileWatcherOptions, WatcherOptions, build, defineConfig, rolldown, watch };
package/dist/index.mjs CHANGED
@@ -1,13 +1,13 @@
1
- import { n as onExit, t as watch } from "./shared/watch-BMFUc4Au.mjs";
1
+ import { n as onExit, t as watch } from "./shared/watch-Cj4uDLQX.mjs";
2
2
  import "./shared/normalize-string-or-regex-CF3Uz6aU.mjs";
3
- import { b as VERSION, y as RUNTIME_MODULE_ID } from "./shared/bindingify-input-options-CxjTlvCV.mjs";
4
- import "./shared/rolldown-build-D_FXM8pA.mjs";
3
+ import { a as BindingMagicString, b as RUNTIME_MODULE_ID, x as VERSION } from "./shared/bindingify-input-options-Cfptl9gw.mjs";
4
+ import "./shared/rolldown-build-DZ7tJkeQ.mjs";
5
5
  import "./shared/error-CQ6njWsV.mjs";
6
6
  import "./shared/parse-DDUnGYGU.mjs";
7
- import { t as rolldown } from "./shared/rolldown-D2p2QuF1.mjs";
7
+ import { t as rolldown } from "./shared/rolldown-BDqeiCX1.mjs";
8
8
  import { t as defineConfig } from "./shared/define-config-DJOr6Iwt.mjs";
9
9
  import { isMainThread } from "node:worker_threads";
10
- import { BindingMagicString, initTraceSubscriber } from "./rolldown-binding.wasi.cjs";
10
+ import { initTraceSubscriber } from "./rolldown-binding.wasi.cjs";
11
11
  //#region src/setup.ts
12
12
  if (isMainThread) {
13
13
  const subscriberGuard = initTraceSubscriber();
@@ -50,4 +50,4 @@ async function build(options) {
50
50
  }
51
51
  }
52
52
  //#endregion
53
- export { BindingMagicString, RUNTIME_MODULE_ID, VERSION, build, defineConfig, rolldown, watch };
53
+ export { RUNTIME_MODULE_ID, BindingMagicString as RolldownMagicString, VERSION, build, defineConfig, rolldown, watch };
@@ -1,5 +1,5 @@
1
1
  import "./shared/normalize-string-or-regex-CF3Uz6aU.mjs";
2
- import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-CxjTlvCV.mjs";
2
+ import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-Cfptl9gw.mjs";
3
3
  import "./shared/error-CQ6njWsV.mjs";
4
4
  import "./shared/parse-DDUnGYGU.mjs";
5
5
  import { parentPort, workerData } from "node:worker_threads";
@@ -1,4 +1,4 @@
1
- import { w as Plugin } from "./shared/define-config-TEoV5q6D.mjs";
1
+ import { w as Plugin } from "./shared/define-config-B1J71V4c.mjs";
2
2
  import { i as MaybePromise } from "./shared/utils-6wxe_LMG.mjs";
3
3
 
4
4
  //#region src/plugin/parallel-plugin-implementation.d.ts
@@ -454,7 +454,7 @@ const win32 = /* @__PURE__ */ mix(";");
454
454
  *
455
455
  * @category Plugin APIs
456
456
  */
457
- const VERSION = "1.0.0-rc.8";
457
+ const VERSION = "1.0.0-rc.9";
458
458
  //#endregion
459
459
  //#region src/constants/index.ts
460
460
  /**
@@ -1955,7 +1955,7 @@ const TransformOptionsSchema = /* @__PURE__ */ object({
1955
1955
  JsxOptionsSchema
1956
1956
  ])),
1957
1957
  target: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string())])), /* @__PURE__ */ description("The JavaScript target environment")),
1958
- define: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())), /* @__PURE__ */ description("Define global variables (syntax: key=value,key2=value2)")),
1958
+ define: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())), /* @__PURE__ */ description("Define global variables (syntax: key:value,key2:value2)")),
1959
1959
  inject: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ tuple([/* @__PURE__ */ string(), /* @__PURE__ */ string()])]))), /* @__PURE__ */ description("Inject import statements on demand")),
1960
1960
  dropLabels: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())), /* @__PURE__ */ description("Remove labeled statements with these label names")),
1961
1961
  plugins: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(TransformPluginsSchema), /* @__PURE__ */ description("Third-party plugins to use"))
@@ -2285,7 +2285,7 @@ const OutputOptionsSchema = /* @__PURE__ */ strictObject({
2285
2285
  MinifyOptionsSchema
2286
2286
  ])), /* @__PURE__ */ description("Minify the bundled file")),
2287
2287
  name: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Name for UMD / IIFE format outputs")),
2288
- globals: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string()), GlobalsFunctionSchema])), /* @__PURE__ */ description("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),
2288
+ globals: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string()), GlobalsFunctionSchema])), /* @__PURE__ */ description("Global variable of UMD / IIFE dependencies (syntax: `key:value`)")),
2289
2289
  paths: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string()), PathsFunctionSchema])), /* @__PURE__ */ description("Maps external module IDs to paths")),
2290
2290
  generatedCode: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ partial(GeneratedCodeOptionsSchema)), /* @__PURE__ */ description("Generated code options")),
2291
2291
  externalLiveBindings: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("external live bindings")),
@@ -2329,7 +2329,7 @@ const OutputCliOverrideSchema = /* @__PURE__ */ strictObject({
2329
2329
  intro: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description(getAddonDescription("top", "inside"))),
2330
2330
  outro: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description(getAddonDescription("bottom", "inside"))),
2331
2331
  esModule: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Always generate `__esModule` marks in non-ESM formats, defaults to `if-default-prop` (use `--no-esModule` to always disable)")),
2332
- globals: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())), /* @__PURE__ */ description("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),
2332
+ globals: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())), /* @__PURE__ */ description("Global variable of UMD / IIFE dependencies (syntax: `key:value`)")),
2333
2333
  codeSplitting: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
2334
2334
  minSize: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Minimum size of the chunk")),
2335
2335
  minShareCount: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Minimum share count of the chunk"))
@@ -2871,6 +2871,14 @@ var RolldownOutputImpl = class extends PlainObjectLike {
2871
2871
  };
2872
2872
  __decorate([lazyProp], RolldownOutputImpl.prototype, "output", null);
2873
2873
  //#endregion
2874
+ //#region src/binding-magic-string.ts
2875
+ Object.defineProperty(BindingMagicString.prototype, "isRolldownMagicString", {
2876
+ value: true,
2877
+ writable: false,
2878
+ configurable: false
2879
+ });
2880
+ const BindingMagicString$1 = BindingMagicString;
2881
+ //#endregion
2874
2882
  //#region src/parse-ast-index.ts
2875
2883
  function wrap(result, filename, sourceText) {
2876
2884
  if (result.errors.length > 0) return normalizeParseError(filename, sourceText, result.errors);
@@ -3513,7 +3521,7 @@ function bindingifyTransform(args) {
3513
3521
  Object.defineProperties(meta, {
3514
3522
  magicString: { get() {
3515
3523
  if (magicStringInstance) return magicStringInstance;
3516
- magicStringInstance = new BindingMagicString(code);
3524
+ magicStringInstance = new BindingMagicString$1(code);
3517
3525
  return magicStringInstance;
3518
3526
  } },
3519
3527
  ast: { get() {
@@ -3547,7 +3555,7 @@ function bindingifyTransform(args) {
3547
3555
  let normalizedCode = void 0;
3548
3556
  let map = ret.map;
3549
3557
  if (typeof ret.code === "string") normalizedCode = ret.code;
3550
- else if (ret.code instanceof BindingMagicString) {
3558
+ else if (ret.code instanceof BindingMagicString$1) {
3551
3559
  let magicString = ret.code;
3552
3560
  normalizedCode = magicString.toString();
3553
3561
  let fallbackSourcemap = ctx.sendMagicString(magicString);
@@ -3636,14 +3644,14 @@ function bindingifyRenderChunk(args) {
3636
3644
  if (args.options.experimental?.nativeMagicString) Object.defineProperty(renderChunkMeta, "magicString", {
3637
3645
  get() {
3638
3646
  if (magicStringInstance) return magicStringInstance;
3639
- magicStringInstance = new BindingMagicString(code);
3647
+ magicStringInstance = new BindingMagicString$1(code);
3640
3648
  return magicStringInstance;
3641
3649
  },
3642
3650
  configurable: true
3643
3651
  });
3644
3652
  const ret = await handler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode), code, transformRenderedChunk(chunk), args.pluginContextData.getOutputOptions(opts), renderChunkMeta);
3645
3653
  if (ret == null) return;
3646
- if (ret instanceof BindingMagicString) {
3654
+ if (ret instanceof BindingMagicString$1) {
3647
3655
  const normalizedCode = ret.toString();
3648
3656
  const generatedMap = ret.generateMap();
3649
3657
  return {
@@ -3658,7 +3666,7 @@ function bindingifyRenderChunk(args) {
3658
3666
  };
3659
3667
  }
3660
3668
  if (typeof ret === "string") return { code: ret };
3661
- if (ret.code instanceof BindingMagicString) {
3669
+ if (ret.code instanceof BindingMagicString$1) {
3662
3670
  const magicString = ret.code;
3663
3671
  const normalizedCode = magicString.toString();
3664
3672
  if (ret.map === null) return { code: normalizedCode };
@@ -5333,4 +5341,4 @@ var RolldownBuild = class RolldownBuild {
5333
5341
  }
5334
5342
  };
5335
5343
  //#endregion
5336
- export { PluginDriver as a, RUNTIME_MODULE_ID as c, validateOption as i, VERSION as l, createBundlerOptions as n, LOG_LEVEL_WARN as o, transformToRollupOutput as r, arraify as s, RolldownBuild as t };
5344
+ export { validateOption as a, arraify as c, transformToRollupOutput as i, RUNTIME_MODULE_ID as l, createBundlerOptions as n, PluginDriver as o, BindingMagicString$1 as r, LOG_LEVEL_WARN as s, RolldownBuild as t, VERSION as u };
@@ -7,7 +7,7 @@ import { BindingAttachDebugInfo, BindingChunkModuleOrderBy, BindingLogLevel, Bin
7
7
  import path from "node:path";
8
8
  import fsp from "node:fs/promises";
9
9
  //#region package.json
10
- var version = "1.0.0-rc.8";
10
+ var version = "1.0.0-rc.9";
11
11
  var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
12
12
  //#endregion
13
13
  //#region src/constants/version.ts
@@ -559,6 +559,14 @@ function collectChangedBundle(changed, bundle) {
559
559
  };
560
560
  }
561
561
  //#endregion
562
+ //#region src/binding-magic-string.ts
563
+ Object.defineProperty(BindingMagicString.prototype, "isRolldownMagicString", {
564
+ value: true,
565
+ writable: false,
566
+ configurable: false
567
+ });
568
+ const BindingMagicString$1 = BindingMagicString;
569
+ //#endregion
562
570
  //#region src/utils/transform-module-info.ts
563
571
  function transformModuleInfo(info, option) {
564
572
  return {
@@ -1070,7 +1078,7 @@ function bindingifyTransform(args) {
1070
1078
  Object.defineProperties(meta, {
1071
1079
  magicString: { get() {
1072
1080
  if (magicStringInstance) return magicStringInstance;
1073
- magicStringInstance = new BindingMagicString(code);
1081
+ magicStringInstance = new BindingMagicString$1(code);
1074
1082
  return magicStringInstance;
1075
1083
  } },
1076
1084
  ast: { get() {
@@ -1104,7 +1112,7 @@ function bindingifyTransform(args) {
1104
1112
  let normalizedCode = void 0;
1105
1113
  let map = ret.map;
1106
1114
  if (typeof ret.code === "string") normalizedCode = ret.code;
1107
- else if (ret.code instanceof BindingMagicString) {
1115
+ else if (ret.code instanceof BindingMagicString$1) {
1108
1116
  let magicString = ret.code;
1109
1117
  normalizedCode = magicString.toString();
1110
1118
  let fallbackSourcemap = ctx.sendMagicString(magicString);
@@ -1193,14 +1201,14 @@ function bindingifyRenderChunk(args) {
1193
1201
  if (args.options.experimental?.nativeMagicString) Object.defineProperty(renderChunkMeta, "magicString", {
1194
1202
  get() {
1195
1203
  if (magicStringInstance) return magicStringInstance;
1196
- magicStringInstance = new BindingMagicString(code);
1204
+ magicStringInstance = new BindingMagicString$1(code);
1197
1205
  return magicStringInstance;
1198
1206
  },
1199
1207
  configurable: true
1200
1208
  });
1201
1209
  const ret = await handler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode), code, transformRenderedChunk(chunk), args.pluginContextData.getOutputOptions(opts), renderChunkMeta);
1202
1210
  if (ret == null) return;
1203
- if (ret instanceof BindingMagicString) {
1211
+ if (ret instanceof BindingMagicString$1) {
1204
1212
  const normalizedCode = ret.toString();
1205
1213
  const generatedMap = ret.generateMap();
1206
1214
  return {
@@ -1215,7 +1223,7 @@ function bindingifyRenderChunk(args) {
1215
1223
  };
1216
1224
  }
1217
1225
  if (typeof ret === "string") return { code: ret };
1218
- if (ret.code instanceof BindingMagicString) {
1226
+ if (ret.code instanceof BindingMagicString$1) {
1219
1227
  const magicString = ret.code;
1220
1228
  const normalizedCode = magicString.toString();
1221
1229
  if (ret.map === null) return { code: normalizedCode };
@@ -2152,4 +2160,4 @@ function bindingifyPreserveEntrySignatures(preserveEntrySignatures) {
2152
2160
  };
2153
2161
  }
2154
2162
  //#endregion
2155
- export { version as S, LOG_LEVEL_WARN as _, transformToRollupOutput as a, VERSION as b, transformAssetSource as c, MinimalPluginContextImpl as d, normalizeHook as f, LOG_LEVEL_INFO as g, LOG_LEVEL_ERROR as h, transformModuleInfo as i, lazyProp as l, LOG_LEVEL_DEBUG as m, PluginContextData as n, transformRenderedChunk as o, normalizeLog as p, bindingifyPlugin as r, __decorate as s, bindingifyInputOptions as t, PlainObjectLike as u, logLevelPriority as v, description as x, RUNTIME_MODULE_ID as y };
2163
+ export { version as C, description as S, LOG_LEVEL_INFO as _, BindingMagicString$1 as a, RUNTIME_MODULE_ID as b, __decorate as c, PlainObjectLike as d, MinimalPluginContextImpl as f, LOG_LEVEL_ERROR as g, LOG_LEVEL_DEBUG as h, transformModuleInfo as i, transformAssetSource as l, normalizeLog as m, PluginContextData as n, transformToRollupOutput as o, normalizeHook as p, bindingifyPlugin as r, transformRenderedChunk as s, bindingifyInputOptions as t, lazyProp as u, LOG_LEVEL_WARN as v, VERSION as x, logLevelPriority as y };
@@ -1,9 +1,9 @@
1
1
  import { Dt as Program } from "./types-Cx3HYorz.mjs";
2
2
  import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./logging-C6h4g8dA.mjs";
3
3
  import { a as NullValue, i as MaybePromise, n as MakeAsync, o as PartialNull, r as MaybeArray, s as StringOrRegExp$1, t as BuiltinPlugin } from "./utils-6wxe_LMG.mjs";
4
- import { BindingHookResolveIdExtraArgs, BindingMagicString, BindingPluginContextResolveOptions, BindingRenderedChunk, BindingTransformHookExtraArgs, ExternalMemoryStatus, JsxOptions, MinifyOptions, ParserOptions, PreRenderedChunk, TransformOptions } from "../binding.cjs";
4
+ import { BindingHookResolveIdExtraArgs, BindingPluginContextResolveOptions, BindingRenderedChunk, BindingTransformHookExtraArgs, ExternalMemoryStatus, JsxOptions, MinifyOptions, ParserOptions, PreRenderedChunk, TransformOptions } from "../binding.cjs";
5
5
  import { BindingWatcherBundler } from "../../binding.cjs";
6
- import { BindingMagicString as BindingMagicString$1, PreRenderedChunk as PreRenderedChunk$1 } from "./binding.cjs";
6
+ import { BindingMagicString, PreRenderedChunk as PreRenderedChunk$1 } from "./binding.cjs";
7
7
 
8
8
  //#region src/types/misc.d.ts
9
9
  /** @inline */
@@ -587,11 +587,11 @@ interface OutputOptions {
587
587
  * Rolldown uses Oxc Minifier under the hood. See Oxc's [minification documentation](https://oxc.rs/docs/guide/usage/minifier#features) for more details.
588
588
  *
589
589
  * - `true`: Enable full minification including code compression and dead code elimination
590
- * - `false`: Disable minification (default)
591
- * - `'dce-only'`: Only perform dead code elimination without code compression
590
+ * - `false`: Disable minification
591
+ * - `'dce-only'`: Only perform dead code elimination without code compression (default)
592
592
  * - `MinifyOptions`: Fine-grained control over minification settings
593
593
  *
594
- * @default false
594
+ * @default 'dce-only'
595
595
  */
596
596
  minify?: boolean | "dce-only" | MinifyOptions$1;
597
597
  /**
@@ -1390,6 +1390,16 @@ interface RolldownWatcher {
1390
1390
  */
1391
1391
  declare function watch(input: WatchOptions | WatchOptions[]): RolldownWatcher;
1392
1392
  //#endregion
1393
+ //#region src/binding-magic-string.d.ts
1394
+ interface BindingMagicString$1 extends BindingMagicString {
1395
+ readonly isRolldownMagicString: true;
1396
+ }
1397
+ type BindingMagicStringConstructor = Omit<typeof BindingMagicString, "prototype"> & {
1398
+ new (...args: ConstructorParameters<typeof BindingMagicString>): BindingMagicString$1;
1399
+ prototype: BindingMagicString$1;
1400
+ };
1401
+ declare const BindingMagicString$1: BindingMagicStringConstructor;
1402
+ //#endregion
1393
1403
  //#region src/log/log-handler.d.ts
1394
1404
  type LoggingFunction = (log: RolldownLog | string | (() => RolldownLog | string)) => void;
1395
1405
  type LoggingFunctionWithPosition = (log: RolldownLog | string | (() => RolldownLog | string), pos?: number | {
@@ -2714,7 +2724,7 @@ type ResolveIdResult = string | NullValue | false | PartialResolvedId;
2714
2724
  type LoadResult = NullValue | string | SourceDescription;
2715
2725
  /** @inline @category Plugin APIs */
2716
2726
  type TransformResult = NullValue | string | (Omit<SourceDescription, "code"> & {
2717
- code?: string | BindingMagicString;
2727
+ code?: string | BindingMagicString$1;
2718
2728
  });
2719
2729
  type RenderedChunkMeta = {
2720
2730
  /**
@@ -2727,7 +2737,7 @@ type RenderedChunkMeta = {
2727
2737
  * Use this to perform string transformations with automatic source map support.
2728
2738
  * This is only available when `experimental.nativeMagicString` is enabled.
2729
2739
  */
2730
- magicString?: BindingMagicString;
2740
+ magicString?: BindingMagicString$1;
2731
2741
  };
2732
2742
  /** @category Plugin APIs */
2733
2743
  interface FunctionPluginHooks {
@@ -2834,7 +2844,7 @@ interface FunctionPluginHooks {
2834
2844
  */
2835
2845
  [DEFINED_HOOK_NAMES.transform]: (this: TransformPluginContext, code: string, id: string, meta: BindingTransformHookExtraArgs & {
2836
2846
  moduleType: ModuleType;
2837
- magicString?: BindingMagicString;
2847
+ magicString?: BindingMagicString$1;
2838
2848
  ast?: Program;
2839
2849
  }) => TransformResult;
2840
2850
  /**
@@ -2887,8 +2897,8 @@ interface FunctionPluginHooks {
2887
2897
  *
2888
2898
  * @group Output Generation Hooks
2889
2899
  */
2890
- [DEFINED_HOOK_NAMES.renderChunk]: (this: PluginContext, code: string, chunk: RenderedChunk, outputOptions: NormalizedOutputOptions, meta: RenderedChunkMeta) => NullValue | string | BindingMagicString | {
2891
- code: string | BindingMagicString;
2900
+ [DEFINED_HOOK_NAMES.renderChunk]: (this: PluginContext, code: string, chunk: RenderedChunk, outputOptions: NormalizedOutputOptions, meta: RenderedChunkMeta) => NullValue | string | BindingMagicString$1 | {
2901
+ code: string | BindingMagicString$1;
2892
2902
  map?: SourceMapInput;
2893
2903
  };
2894
2904
  /**
@@ -3835,4 +3845,4 @@ declare function defineConfig(config: RolldownOptions[]): RolldownOptions[];
3835
3845
  declare function defineConfig(config: RolldownOptionsFunction): RolldownOptionsFunction;
3836
3846
  declare function defineConfig(config: ConfigExport): ConfigExport;
3837
3847
  //#endregion
3838
- export { RUNTIME_MODULE_ID as $, MinifyOptions$1 as $t, SourceDescription as A, LoggingFunction as At, exprInterpreter as B, build as Bt, PartialResolvedId as C, RolldownFileStats as Ct, ResolvedId as D, NormalizedInputOptions as Dt, ResolveIdResult as E, NormalizedOutputOptions as Et, QueryFilterObject as F, RolldownWatcherWatcherEventMap as Ft, interpreterImpl as G, ChunkingContext as Gt, importerId as H, AdvancedChunksGroup as Ht, TopLevelFilterExpression as I, WatchOptions as It, or as J, CodeSplittingOptions as Jt, moduleType as K, CodeSplittingGroup as Kt, and as L, rolldown as Lt, withFilter as M, watch as Mt, FilterExpression as N, RolldownWatcher as Nt, RolldownPlugin as O, TransformOptions$1 as Ot, FilterExpressionKind as P, RolldownWatcherEvent as Pt, PreRenderedChunk$1 as Q, GlobalsFunction as Qt, code as R, RolldownBuild as Rt, ParallelPluginHooks as S, RolldownDirectoryEntry as St, ResolveIdExtraOptions as T, InternalModuleFormat as Tt, include as U, AdvancedChunksOptions as Ut, id as V, AddonFunction as Vt, interpreter as W, ChunkFileNamesFunction as Wt, query as X, GeneratedCodeOptions as Xt, queries as Y, CommentsOptions as Yt, BindingMagicString$1 as Z, GeneratedCodePreset as Zt, ImportKind as _, PluginContextMeta as _t, ExternalOption as a, RenderedChunk as an, TreeshakingOptions as at, ModuleType as b, ModuleTypeFilter as bt, InputOptions as c, SourceMap$1 as cn, EmittedChunk as ct, WatcherFileWatcherOptions as d, SourcemapIgnoreListOption as dn, GetModuleInfo as dt, ModuleFormat as en, VERSION as et, WatcherOptions as f, PluginContext as ft, HookFilterExtension as g, MinimalPluginContext as gt, FunctionPluginHooks as h, defineParallelPlugin as ht, RolldownOptions as i, OutputChunk as in, OutputBundle as it, TransformResult as j, WarningHandlerWithDefault as jt, RolldownPluginOption as k, ChecksOptions as kt, ModuleTypes as l, freeExternalMemory as ln, EmittedFile as lt, CustomPluginOptions as m, DefineParallelPluginResult as mt, RolldownOptionsFunction as n, PreRenderedAsset as nn, ExistingRawSourceMap as nt, ExternalOptionFunction as o, RenderedModule as on, TransformPluginContext as ot, AsyncPluginHooks as p, PluginContextResolveOptions as pt, not as q, CodeSplittingNameFunction as qt, defineConfig as r, OutputAsset as rn, SourceMapInput as rt, InputOption as s, RolldownOutput as sn, EmittedAsset as st, ConfigExport as t, OutputOptions as tn, BundleError as tt, OptimizationOptions as u, ModuleInfo as un, EmittedPrebuiltChunk as ut, LoadResult as v, GeneralHookFilter as vt, Plugin as w, RolldownFsModule as wt, ObjectHook as x, BufferEncoding as xt, ModuleOptions as y, HookFilter as yt, exclude as z, BuildOptions as zt };
3848
+ export { VERSION as $, MinifyOptions$1 as $t, SourceDescription as A, WarningHandlerWithDefault as At, exprInterpreter as B, build as Bt, PartialResolvedId as C, RolldownFsModule as Ct, ResolvedId as D, TransformOptions$1 as Dt, ResolveIdResult as E, NormalizedInputOptions as Et, QueryFilterObject as F, RolldownWatcherWatcherEventMap as Ft, interpreterImpl as G, ChunkingContext as Gt, importerId as H, AdvancedChunksGroup as Ht, TopLevelFilterExpression as I, WatchOptions as It, or as J, CodeSplittingOptions as Jt, moduleType as K, CodeSplittingGroup as Kt, and as L, rolldown as Lt, withFilter as M, watch as Mt, FilterExpression as N, RolldownWatcher as Nt, RolldownPlugin as O, ChecksOptions as Ot, FilterExpressionKind as P, RolldownWatcherEvent as Pt, RUNTIME_MODULE_ID as Q, GlobalsFunction as Qt, code as R, RolldownBuild as Rt, ParallelPluginHooks as S, RolldownFileStats as St, ResolveIdExtraOptions as T, NormalizedOutputOptions as Tt, include as U, AdvancedChunksOptions as Ut, id as V, AddonFunction as Vt, interpreter as W, ChunkFileNamesFunction as Wt, query as X, GeneratedCodeOptions as Xt, queries as Y, CommentsOptions as Yt, PreRenderedChunk$1 as Z, GeneratedCodePreset as Zt, ImportKind as _, GeneralHookFilter as _t, ExternalOption as a, RenderedChunk as an, TransformPluginContext as at, ModuleType as b, BufferEncoding as bt, InputOptions as c, SourceMap$1 as cn, EmittedFile as ct, WatcherFileWatcherOptions as d, SourcemapIgnoreListOption as dn, PluginContext as dt, ModuleFormat as en, BundleError as et, WatcherOptions as f, PluginContextResolveOptions as ft, HookFilterExtension as g, PluginContextMeta as gt, FunctionPluginHooks as h, MinimalPluginContext as ht, RolldownOptions as i, OutputChunk as in, TreeshakingOptions as it, TransformResult as j, BindingMagicString$1 as jt, RolldownPluginOption as k, LoggingFunction as kt, ModuleTypes as l, freeExternalMemory as ln, EmittedPrebuiltChunk as lt, CustomPluginOptions as m, defineParallelPlugin as mt, RolldownOptionsFunction as n, PreRenderedAsset as nn, SourceMapInput as nt, ExternalOptionFunction as o, RenderedModule as on, EmittedAsset as ot, AsyncPluginHooks as p, DefineParallelPluginResult as pt, not as q, CodeSplittingNameFunction as qt, defineConfig as r, OutputAsset as rn, OutputBundle as rt, InputOption as s, RolldownOutput as sn, EmittedChunk as st, ConfigExport as t, OutputOptions as tn, ExistingRawSourceMap as tt, OptimizationOptions as u, ModuleInfo as un, GetModuleInfo as ut, LoadResult as v, HookFilter as vt, Plugin as w, InternalModuleFormat as wt, ObjectHook as x, RolldownDirectoryEntry as xt, ModuleOptions as y, ModuleTypeFilter as yt, exclude as z, BuildOptions as zt };
@@ -1,4 +1,4 @@
1
- import { t as rolldown } from "./rolldown-D2p2QuF1.mjs";
1
+ import { t as rolldown } from "./rolldown-BDqeiCX1.mjs";
2
2
  import path from "node:path";
3
3
  import { readdir } from "node:fs/promises";
4
4
  import { cwd } from "node:process";
@@ -1,4 +1,4 @@
1
- import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-D_FXM8pA.mjs";
1
+ import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-DZ7tJkeQ.mjs";
2
2
  //#region src/api/rolldown/index.ts
3
3
  /**
4
4
  * The API compatible with Rollup's `rollup` function.
@@ -1,6 +1,6 @@
1
1
  import { i as logInputHookInOutputPlugin, n as error } from "./logs-D80CXhvg.mjs";
2
2
  import { n as BuiltinPlugin } from "./normalize-string-or-regex-CF3Uz6aU.mjs";
3
- import { _ as LOG_LEVEL_WARN, a as transformToRollupOutput, b as VERSION, c as transformAssetSource, d as MinimalPluginContextImpl, f as normalizeHook, i as transformModuleInfo, l as lazyProp, m as LOG_LEVEL_DEBUG, o as transformRenderedChunk, p as normalizeLog, s as __decorate, t as bindingifyInputOptions, u as PlainObjectLike, v as logLevelPriority } from "./bindingify-input-options-CxjTlvCV.mjs";
3
+ import { c as __decorate, d as PlainObjectLike, f as MinimalPluginContextImpl, h as LOG_LEVEL_DEBUG, i as transformModuleInfo, l as transformAssetSource, m as normalizeLog, o as transformToRollupOutput, p as normalizeHook, s as transformRenderedChunk, t as bindingifyInputOptions, u as lazyProp, v as LOG_LEVEL_WARN, x as VERSION, y as logLevelPriority } from "./bindingify-input-options-Cfptl9gw.mjs";
4
4
  import { v as unimplemented } from "./composable-filters-B2ByPP8y.mjs";
5
5
  import { i as unwrapBindingResult } from "./error-CQ6njWsV.mjs";
6
6
  import { Worker } from "node:worker_threads";
@@ -1512,7 +1512,7 @@ const TransformOptionsSchema = /* @__PURE__ */ object({
1512
1512
  JsxOptionsSchema
1513
1513
  ])),
1514
1514
  target: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string())])), /* @__PURE__ */ description("The JavaScript target environment")),
1515
- define: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())), /* @__PURE__ */ description("Define global variables (syntax: key=value,key2=value2)")),
1515
+ define: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())), /* @__PURE__ */ description("Define global variables (syntax: key:value,key2:value2)")),
1516
1516
  inject: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ tuple([/* @__PURE__ */ string(), /* @__PURE__ */ string()])]))), /* @__PURE__ */ description("Inject import statements on demand")),
1517
1517
  dropLabels: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())), /* @__PURE__ */ description("Remove labeled statements with these label names")),
1518
1518
  plugins: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(TransformPluginsSchema), /* @__PURE__ */ description("Third-party plugins to use"))
@@ -1842,7 +1842,7 @@ const OutputOptionsSchema = /* @__PURE__ */ strictObject({
1842
1842
  MinifyOptionsSchema
1843
1843
  ])), /* @__PURE__ */ description("Minify the bundled file")),
1844
1844
  name: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Name for UMD / IIFE format outputs")),
1845
- globals: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string()), GlobalsFunctionSchema])), /* @__PURE__ */ description("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),
1845
+ globals: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string()), GlobalsFunctionSchema])), /* @__PURE__ */ description("Global variable of UMD / IIFE dependencies (syntax: `key:value`)")),
1846
1846
  paths: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string()), PathsFunctionSchema])), /* @__PURE__ */ description("Maps external module IDs to paths")),
1847
1847
  generatedCode: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ partial(GeneratedCodeOptionsSchema)), /* @__PURE__ */ description("Generated code options")),
1848
1848
  externalLiveBindings: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("external live bindings")),
@@ -1886,7 +1886,7 @@ const OutputCliOverrideSchema = /* @__PURE__ */ strictObject({
1886
1886
  intro: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description(getAddonDescription("top", "inside"))),
1887
1887
  outro: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description(getAddonDescription("bottom", "inside"))),
1888
1888
  esModule: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Always generate `__esModule` marks in non-ESM formats, defaults to `if-default-prop` (use `--no-esModule` to always disable)")),
1889
- globals: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())), /* @__PURE__ */ description("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),
1889
+ globals: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())), /* @__PURE__ */ description("Global variable of UMD / IIFE dependencies (syntax: `key:value`)")),
1890
1890
  codeSplitting: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
1891
1891
  minSize: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Minimum size of the chunk")),
1892
1892
  minShareCount: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Minimum share count of the chunk"))
@@ -1,7 +1,7 @@
1
1
  import { o as logMultipleWatcherOption } from "./logs-D80CXhvg.mjs";
2
- import { _ as LOG_LEVEL_WARN } from "./bindingify-input-options-CxjTlvCV.mjs";
2
+ import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-Cfptl9gw.mjs";
3
3
  import { h as arraify } from "./composable-filters-B2ByPP8y.mjs";
4
- import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-D_FXM8pA.mjs";
4
+ import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-DZ7tJkeQ.mjs";
5
5
  import { t as aggregateBindingErrorsIntoJsError } from "./error-CQ6njWsV.mjs";
6
6
  import { BindingWatcher, shutdownAsyncRuntime } from "../rolldown-binding.wasi.cjs";
7
7
  //#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rolldown/browser",
3
- "version": "1.0.0-rc.8",
3
+ "version": "1.0.0-rc.9",
4
4
  "description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
5
5
  "keywords": [
6
6
  "bundler",