@rolldown/browser 1.0.0-beta.50 → 1.0.0-beta.52

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 (48) hide show
  1. package/dist/cli.mjs +11 -7
  2. package/dist/config.d.mts +3 -3
  3. package/dist/config.mjs +9 -5
  4. package/dist/constructors-DW3R_Jog.js +68 -0
  5. package/dist/experimental-index.browser.mjs +19 -13
  6. package/dist/experimental-index.d.mts +63 -16
  7. package/dist/experimental-index.mjs +23 -15
  8. package/dist/filter-index.d.mts +3 -3
  9. package/dist/filter-index.mjs +2 -1
  10. package/dist/index.browser.mjs +161 -2
  11. package/dist/index.d.mts +3 -3
  12. package/dist/index.mjs +36 -4
  13. package/dist/normalize-string-or-regex-BcbPUrYo.js +830 -0
  14. package/dist/parallel-plugin-worker.mjs +5 -4
  15. package/dist/parallel-plugin.d.mts +3 -3
  16. package/dist/parse-ast-index.d.mts +1 -1
  17. package/dist/parse-ast-index.mjs +1 -1
  18. package/dist/plugins-index.browser.mjs +2 -2
  19. package/dist/plugins-index.d.mts +3 -3
  20. package/dist/plugins-index.mjs +3 -2
  21. package/dist/rolldown-binding.wasi-browser.js +5 -2
  22. package/dist/rolldown-binding.wasi.cjs +5 -2
  23. package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
  24. package/dist/{src-dUoCuQap.js → rolldown-build-CUYnBV3u.js} +44 -754
  25. package/dist/shared/{binding-BTup3pHG.d.mts → binding-BKL2JHoJ.d.mts} +173 -94
  26. package/dist/shared/bindingify-input-options-D4i1DYzt.mjs +1568 -0
  27. package/dist/shared/{composable-filters-CBpK2Fbc.mjs → composable-filters-DZ5ToxRJ.mjs} +1 -22
  28. package/dist/shared/constructors-BvaMwihu.d.mts +32 -0
  29. package/dist/shared/constructors-XFp0WhK3.mjs +68 -0
  30. package/dist/shared/{define-config-DiSv-kgF.d.mts → define-config-Buedmg9e.d.mts} +31 -57
  31. package/dist/shared/define-config-DfeZGBEt.mjs +7 -0
  32. package/dist/shared/{load-config-BqnLKlUM.mjs → load-config-C9CjEv2m.mjs} +1 -1
  33. package/dist/shared/misc-5GYLGQ20.mjs +22 -0
  34. package/dist/shared/normalize-string-or-regex-D1mB67Iy.mjs +629 -0
  35. package/dist/shared/{parse-ast-index-DtI4JSVR.mjs → parse-ast-index-BSDTTjWT.mjs} +20 -6
  36. package/dist/shared/rolldown-0ID0Q4xL.mjs +10 -0
  37. package/dist/shared/rolldown-build-BWJGpMD0.mjs +2121 -0
  38. package/dist/shared/utils-DKydZ4iH.d.mts +62 -0
  39. package/dist/shared/watch-CwnSQOS4.mjs +338 -0
  40. package/package.json +5 -1
  41. package/dist/constructors-EhfoQfqh.js +0 -68
  42. package/dist/normalize-string-or-regex-d47jXr3r.js +0 -231
  43. package/dist/shared/constructors-B7IHT8j4.d.mts +0 -32
  44. package/dist/shared/constructors-DcEzB0nc.mjs +0 -68
  45. package/dist/shared/normalize-string-or-regex-CbDij6KB.mjs +0 -46
  46. package/dist/shared/src-D0x2a_iO.mjs +0 -4597
  47. package/dist/shared/utils-BKVJO2vQ.d.mts +0 -18
  48. /package/dist/shared/{prompt-CjFmA1DF.mjs → prompt-pmGBC3ws.mjs} +0 -0
@@ -1,24 +1,3 @@
1
- //#region src/utils/misc.ts
2
- function arraify(value) {
3
- return Array.isArray(value) ? value : [value];
4
- }
5
- function isPromiseLike(value) {
6
- return value && (typeof value === "object" || typeof value === "function") && typeof value.then === "function";
7
- }
8
- function unimplemented(info) {
9
- if (info) throw new Error(`unimplemented: ${info}`);
10
- throw new Error("unimplemented");
11
- }
12
- function unreachable(info) {
13
- if (info) throw new Error(`unreachable: ${info}`);
14
- throw new Error("unreachable");
15
- }
16
- function unsupported(info) {
17
- throw new Error(`UNSUPPORTED: ${info}`);
18
- }
19
- function noop(..._args) {}
20
-
21
- //#endregion
22
1
  //#region ../pluginutils/dist/composable-filters.js
23
2
  var And = class {
24
3
  kind;
@@ -140,4 +119,4 @@ function queries(queryFilter) {
140
119
  }
141
120
 
142
121
  //#endregion
143
- export { include as a, or as c, arraify as d, isPromiseLike as f, unsupported as g, unreachable as h, id as i, queries as l, unimplemented as m, code as n, moduleType as o, noop as p, exclude as r, not as s, and as t, query as u };
122
+ export { include as a, or as c, id as i, queries as l, code as n, moduleType as o, exclude as r, not as s, and as t, query as u };
@@ -0,0 +1,32 @@
1
+ import { t as BuiltinPlugin, u as StringOrRegExp } from "./utils-DKydZ4iH.mjs";
2
+ import { C as BindingViteManifestPluginConfig, D as BindingViteResolvePluginConfig, E as BindingViteReporterPluginConfig, S as BindingViteJsonPluginConfig, T as BindingViteReactRefreshWrapperPluginConfig, _ as BindingViteCssPostPluginConfig, 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-BKL2JHoJ.mjs";
3
+
4
+ //#region src/builtin-plugin/constructors.d.ts
5
+ declare function viteModulePreloadPolyfillPlugin(config?: BindingViteModulePreloadPolyfillPluginConfig): BuiltinPlugin;
6
+ type DynamicImportVarsPluginConfig = Omit<BindingViteDynamicImportVarsPluginConfig, "include" | "exclude"> & {
7
+ include?: StringOrRegExp | StringOrRegExp[];
8
+ exclude?: StringOrRegExp | StringOrRegExp[];
9
+ };
10
+ declare function viteDynamicImportVarsPlugin(config?: DynamicImportVarsPluginConfig): BuiltinPlugin;
11
+ declare function viteImportGlobPlugin(config?: BindingViteImportGlobPluginConfig): BuiltinPlugin;
12
+ declare function viteReporterPlugin(config?: BindingViteReporterPluginConfig): BuiltinPlugin;
13
+ declare function viteManifestPlugin(config?: BindingViteManifestPluginConfig): BuiltinPlugin;
14
+ declare function viteWasmHelperPlugin(config?: BindingViteWasmHelperPluginConfig): BuiltinPlugin;
15
+ declare function viteWasmFallbackPlugin(): BuiltinPlugin;
16
+ declare function viteLoadFallbackPlugin(): BuiltinPlugin;
17
+ declare function viteJsonPlugin(config?: BindingViteJsonPluginConfig): BuiltinPlugin;
18
+ declare function viteBuildImportAnalysisPlugin(config: BindingViteBuildImportAnalysisPluginConfig): BuiltinPlugin;
19
+ declare function viteResolvePlugin(config: BindingViteResolvePluginConfig): BuiltinPlugin;
20
+ declare function isolatedDeclarationPlugin(config?: BindingIsolatedDeclarationPluginConfig): BuiltinPlugin;
21
+ declare function viteWebWorkerPostPlugin(): BuiltinPlugin;
22
+ declare function esmExternalRequirePlugin(config?: BindingEsmExternalRequirePluginConfig): BuiltinPlugin;
23
+ type ViteReactRefreshWrapperPluginConfig = Omit<BindingViteReactRefreshWrapperPluginConfig, "include" | "exclude"> & {
24
+ include?: StringOrRegExp | StringOrRegExp[];
25
+ exclude?: StringOrRegExp | StringOrRegExp[];
26
+ };
27
+ declare function viteReactRefreshWrapperPlugin(config: ViteReactRefreshWrapperPluginConfig): BuiltinPlugin;
28
+ declare function viteCSSPostPlugin(config?: BindingViteCssPostPluginConfig): BuiltinPlugin;
29
+ declare function viteHtmlInlineProxyPlugin(config: BindingViteHtmlInlineProxyPluginConfig): BuiltinPlugin;
30
+ declare function viteAssetImportMetaUrlPlugin(config: BindingViteAssetImportMetaUrlPluginConfig): BuiltinPlugin;
31
+ //#endregion
32
+ export { viteWasmHelperPlugin as _, viteCSSPostPlugin as a, viteImportGlobPlugin as c, viteManifestPlugin as d, viteModulePreloadPolyfillPlugin as f, viteWasmFallbackPlugin as g, viteResolvePlugin as h, viteBuildImportAnalysisPlugin as i, viteJsonPlugin as l, viteReporterPlugin as m, isolatedDeclarationPlugin as n, viteDynamicImportVarsPlugin as o, viteReactRefreshWrapperPlugin as p, viteAssetImportMetaUrlPlugin as r, viteHtmlInlineProxyPlugin as s, esmExternalRequirePlugin as t, viteLoadFallbackPlugin as u, viteWebWorkerPostPlugin as v };
@@ -0,0 +1,68 @@
1
+ import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-D1mB67Iy.mjs";
2
+
3
+ //#region src/builtin-plugin/constructors.ts
4
+ function viteModulePreloadPolyfillPlugin(config) {
5
+ return new BuiltinPlugin("builtin:vite-module-preload-polyfill", config);
6
+ }
7
+ function viteDynamicImportVarsPlugin(config) {
8
+ if (config) {
9
+ config.include = normalizedStringOrRegex(config.include);
10
+ config.exclude = normalizedStringOrRegex(config.exclude);
11
+ }
12
+ return new BuiltinPlugin("builtin:vite-dynamic-import-vars", config);
13
+ }
14
+ function viteImportGlobPlugin(config) {
15
+ return new BuiltinPlugin("builtin:vite-import-glob", config);
16
+ }
17
+ function viteReporterPlugin(config) {
18
+ return new BuiltinPlugin("builtin:vite-reporter", config);
19
+ }
20
+ function viteManifestPlugin(config) {
21
+ return new BuiltinPlugin("builtin:vite-manifest", config);
22
+ }
23
+ function viteWasmHelperPlugin(config) {
24
+ return new BuiltinPlugin("builtin:vite-wasm-helper", config);
25
+ }
26
+ function viteWasmFallbackPlugin() {
27
+ return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:vite-wasm-fallback"));
28
+ }
29
+ function viteLoadFallbackPlugin() {
30
+ return new BuiltinPlugin("builtin:vite-load-fallback");
31
+ }
32
+ function viteJsonPlugin(config) {
33
+ return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:vite-json", config));
34
+ }
35
+ function viteBuildImportAnalysisPlugin(config) {
36
+ return new BuiltinPlugin("builtin:vite-build-import-analysis", config);
37
+ }
38
+ function viteResolvePlugin(config) {
39
+ return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:vite-resolve", config));
40
+ }
41
+ function isolatedDeclarationPlugin(config) {
42
+ return new BuiltinPlugin("builtin:isolated-declaration", config);
43
+ }
44
+ function viteWebWorkerPostPlugin() {
45
+ return new BuiltinPlugin("builtin:vite-web-worker-post");
46
+ }
47
+ function esmExternalRequirePlugin(config) {
48
+ return new BuiltinPlugin("builtin:esm-external-require", config);
49
+ }
50
+ function viteReactRefreshWrapperPlugin(config) {
51
+ if (config) {
52
+ config.include = normalizedStringOrRegex(config.include);
53
+ config.exclude = normalizedStringOrRegex(config.exclude);
54
+ }
55
+ return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:vite-react-refresh-wrapper", config));
56
+ }
57
+ function viteCSSPostPlugin(config) {
58
+ return new BuiltinPlugin("builtin:vite-css-post", config);
59
+ }
60
+ function viteHtmlInlineProxyPlugin(config) {
61
+ return new BuiltinPlugin("builtin:vite-html-inline-proxy", config);
62
+ }
63
+ function viteAssetImportMetaUrlPlugin(config) {
64
+ return new BuiltinPlugin("builtin:vite-asset-import-meta-url", config);
65
+ }
66
+
67
+ //#endregion
68
+ export { viteWasmHelperPlugin as _, viteCSSPostPlugin as a, viteImportGlobPlugin as c, viteManifestPlugin as d, viteModulePreloadPolyfillPlugin as f, viteWasmFallbackPlugin as g, viteResolvePlugin as h, viteBuildImportAnalysisPlugin as i, viteJsonPlugin as l, viteReporterPlugin as m, isolatedDeclarationPlugin as n, viteDynamicImportVarsPlugin as o, viteReactRefreshWrapperPlugin as p, viteAssetImportMetaUrlPlugin as r, viteHtmlInlineProxyPlugin as s, esmExternalRequirePlugin as t, viteLoadFallbackPlugin as u, viteWebWorkerPostPlugin as v };
@@ -1,44 +1,8 @@
1
- import { D as BindingWatcherBundler, L as ParserOptions, M as JsxOptions, N as MinifyOptions$1, O as BindingWatcherEvent, R as PreRenderedChunk, V as TransformOptions$1, d as BindingMagicString, g as BindingRenderedChunk, k as ExternalMemoryStatus, s as BindingHookResolveIdExtraArgs, y as BindingTransformHookExtraArgs } from "./binding-BTup3pHG.mjs";
2
- import { a as NullValue, i as MaybePromise, n as MakeAsync, o as PartialNull, r as MaybeArray, s as StringOrRegExp, t as BuiltinPlugin } from "./utils-BKVJO2vQ.mjs";
1
+ import { a as MakeAsync, c as NullValue, d as LogLevel, f as LogLevelOption, g as RollupLogWithString, h as RollupLog, l as PartialNull, m as RollupError, n as LoggingFunction, o as MaybeArray, p as LogOrStringHandler, r as LoggingFunctionWithPosition, s as MaybePromise, t as BuiltinPlugin, u as StringOrRegExp } from "./utils-DKydZ4iH.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 } from "./binding-BKL2JHoJ.mjs";
3
3
  import { Program } from "@oxc-project/types";
4
4
  import { TopLevelFilterExpression } from "@rolldown/pluginutils";
5
5
 
6
- //#region src/log/logging.d.ts
7
- type LogLevel = "info" | "debug" | "warn";
8
- type LogLevelOption = LogLevel | "silent";
9
- type LogLevelWithError = LogLevel | "error";
10
- interface RollupLog {
11
- binding?: string;
12
- cause?: unknown;
13
- code?: string;
14
- exporter?: string;
15
- frame?: string;
16
- hook?: string;
17
- id?: string;
18
- ids?: string[];
19
- loc?: {
20
- column: number;
21
- file?: string;
22
- line: number;
23
- };
24
- message: string;
25
- meta?: any;
26
- names?: string[];
27
- plugin?: string;
28
- pluginCode?: unknown;
29
- pos?: number;
30
- reexporter?: string;
31
- stack?: string;
32
- url?: string;
33
- }
34
- type RollupLogWithString = RollupLog | string;
35
- interface RollupError extends RollupLog {
36
- name?: string;
37
- stack?: string;
38
- watchFiles?: string[];
39
- }
40
- type LogOrStringHandler = (level: LogLevelWithError, log: RollupLogWithString) => void;
41
- //#endregion
42
6
  //#region src/types/misc.d.ts
43
7
  type SourcemapPathTransformOption = (relativeSourcePath: string, sourcemapPath: string) => string;
44
8
  type SourcemapIgnoreListOption = (relativeSourcePath: string, sourcemapPath: string) => boolean;
@@ -209,7 +173,9 @@ interface GeneratedCodeOptions {
209
173
  * When enabled, generated code will use descriptive variable names that correspond
210
174
  * to the original module names, making it easier to profile and debug the bundled code.
211
175
  *
212
- * @default true when minification is disabled, false when minification is enabled
176
+ * Note: Enabling this option makes the output more difficult to minify effectively.
177
+ *
178
+ * @default false
213
179
  */
214
180
  profilerNames?: boolean;
215
181
  }
@@ -700,14 +666,6 @@ type RolldownWatcher = WatcherEmitter;
700
666
  //#region src/api/watch/index.d.ts
701
667
  declare const watch: (input: WatchOptions | WatchOptions[]) => RolldownWatcher;
702
668
  //#endregion
703
- //#region src/log/log-handler.d.ts
704
- type LoggingFunction = (log: RollupLog | string | (() => RollupLog | string)) => void;
705
- type LoggingFunctionWithPosition = (log: RollupLog | string | (() => RollupLog | string), pos?: number | {
706
- column: number;
707
- line: number;
708
- }) => void;
709
- type WarningHandlerWithDefault = (warning: RollupLog, defaultHandler: LoggingFunction) => void;
710
- //#endregion
711
669
  //#region src/options/normalized-input-options.d.ts
712
670
  interface NormalizedInputOptions {
713
671
  input: string[] | Record<string, string>;
@@ -981,7 +939,7 @@ interface ExistingRawSourceMap {
981
939
  }
982
940
  type SourceMapInput = ExistingRawSourceMap | string | null;
983
941
  //#endregion
984
- //#region src/index.d.ts
942
+ //#region src/version.d.ts
985
943
  declare const VERSION: string;
986
944
  //#endregion
987
945
  //#region src/constants/plugin.d.ts
@@ -1211,6 +1169,11 @@ interface ChecksOptions {
1211
1169
  * @default true
1212
1170
  */
1213
1171
  preferBuiltinFeature?: boolean;
1172
+ /**
1173
+ * Whether to emit warning when detecting could not clean directory
1174
+ * @default true
1175
+ */
1176
+ couldNotCleanDirectory?: boolean;
1214
1177
  }
1215
1178
  //#endregion
1216
1179
  //#region src/options/transform-options.d.ts
@@ -1403,7 +1366,7 @@ interface InputOptions {
1403
1366
  /**
1404
1367
  * > [!WARNING]
1405
1368
  * > `resolve.alias` will not call `resolveId` hooks of other plugin.
1406
- * > If you want to call `resolveId` hooks of other plugin, use `aliasPlugin` from `rolldown/experimental` instead.
1369
+ * > If you want to call `resolveId` hooks of other plugin, use `viteAliasPlugin` from `rolldown/experimental` instead.
1407
1370
  * > You could find more discussion in [this issue](https://github.com/rolldown/rolldown/issues/3615)
1408
1371
  */
1409
1372
  alias?: Record<string, string[] | string | false>;
@@ -1615,16 +1578,27 @@ interface InputOptions {
1615
1578
  optimization?: OptimizationOptions;
1616
1579
  context?: string;
1617
1580
  /**
1618
- * Allows you to specify where to find the TypeScript configuration file.
1581
+ * Configures TypeScript configuration file resolution and usage.
1582
+ *
1583
+ * ## Options
1584
+ *
1585
+ * - `true`: Auto-discovery mode (similar to Vite). For each module, both resolver and transformer
1586
+ * will find the nearest tsconfig.json. If the tsconfig has `references`, the file extension is
1587
+ * allowed, and the tsconfig's `include`/`exclude` patterns don't match the file, the referenced
1588
+ * tsconfigs will be searched for a match. Falls back to the original tsconfig if no match is found.
1589
+ * - `string`: Path to a specific tsconfig.json file (relative to cwd or absolute path).
1590
+ *
1591
+ * ## What's used from tsconfig
1592
+ *
1593
+ * - **Resolver**: Uses `compilerOptions.paths` and `compilerOptions.baseUrl` for path mapping
1594
+ * - **Transformer**: Uses select compiler options (jsx, decorators, typescript, etc.)
1619
1595
  *
1620
- * You may provide:
1621
- * - a relative path to the configuration file. It will be resolved relative to cwd.
1622
- * - an absolute path to the configuration file.
1596
+ * > [!NOTE]
1597
+ * > Priority: Top-level `transform` options always take precedence over tsconfig settings.
1623
1598
  *
1624
- * When a tsconfig path is specified, the module resolver will respect `compilerOptions.paths` from the specified `tsconfig.json`,
1625
- * and the tsconfig options will be merged with the top-level `transform` options, with the `transform` options taking precedence.
1599
+ * @default undefined (no tsconfig resolution)
1626
1600
  */
1627
- tsconfig?: string;
1601
+ tsconfig?: true | string;
1628
1602
  }
1629
1603
  //#endregion
1630
1604
  //#region src/types/rolldown-options.d.ts
@@ -1644,4 +1618,4 @@ declare function defineConfig(config: RolldownOptions[]): RolldownOptions[];
1644
1618
  declare function defineConfig(config: RolldownOptionsFunction): RolldownOptionsFunction;
1645
1619
  declare function defineConfig(config: ConfigExport): ConfigExport;
1646
1620
  //#endregion
1647
- export { NormalizedOutputOptions as $, VERSION as A, LogLevel as At, PluginContext as B, ResolveIdResult as C, RenderedChunk as Ct, SourceDescription as D, freeExternalMemory as Dt, RolldownPluginOption as E, SourceMap as Et, TreeshakingOptions as F, RollupLogWithString as Ft, GeneralHookFilter as G, defineParallelPlugin as H, TransformPluginContext as I, BufferEncoding as J, HookFilter as K, EmittedAsset as L, SourceMapInput as M, LogOrStringHandler as Mt, RolldownOptionsFunction as N, RollupError as Nt, TransformResult as O, ModuleInfo as Ot, OutputBundle as P, RollupLog as Pt, InternalModuleFormat as Q, EmittedFile as R, ResolveIdExtraOptions as S, OutputChunk as St, RolldownPlugin as T, RolldownOutput as Tt, MinimalPluginContext as U, DefineParallelPluginResult as V, PluginContextMeta as W, RolldownFileStats as X, RolldownDirectoryEntry as Y, RolldownFsModule as Z, ModuleType as _, MinifyOptions as _t, InputOption as a, RolldownWatcherEvent as at, PartialResolvedId as b, PreRenderedAsset as bt, OptimizationOptions as c, RolldownBuild as ct, CustomPluginOptions as d, AddonFunction as dt, NormalizedInputOptions as et, FunctionPluginHooks as f, ChunkFileNamesFunction as ft, ModuleOptions as g, GlobalsFunction as gt, LoadResult as h, GeneratedCodePreset as ht, ExternalOption as i, RolldownWatcher as it, ExistingRawSourceMap as j, LogLevelOption as jt, withFilter as k, SourcemapIgnoreListOption as kt, WatcherOptions as l, BuildOptions as lt, ImportKind as m, GeneratedCodeOptions as mt, ConfigExport as n, WarningHandlerWithDefault as nt, InputOptions as o, WatchOptions as ot, HookFilterExtension as p, ChunkingContext as pt, ModuleTypeFilter as q, RolldownOptions as r, watch as rt, ModuleTypes as s, rolldown as st, defineConfig as t, LoggingFunction as tt, AsyncPluginHooks as u, build as ut, ObjectHook as v, ModuleFormat as vt, ResolvedId as w, RenderedModule as wt, Plugin as x, OutputAsset as xt, ParallelPluginHooks as y, OutputOptions as yt, GetModuleInfo as z };
1621
+ export { NormalizedOutputOptions as $, VERSION as A, PluginContext as B, ResolveIdResult as C, RolldownOutput as Ct, SourceDescription as D, SourcemapIgnoreListOption as Dt, RolldownPluginOption as E, ModuleInfo as Et, TreeshakingOptions as F, GeneralHookFilter as G, defineParallelPlugin as H, TransformPluginContext as I, BufferEncoding as J, HookFilter as K, EmittedAsset as L, SourceMapInput as M, RolldownOptionsFunction as N, TransformResult as O, OutputBundle as P, InternalModuleFormat as Q, EmittedFile as R, ResolveIdExtraOptions as S, RenderedModule as St, RolldownPlugin as T, freeExternalMemory as Tt, MinimalPluginContext as U, DefineParallelPluginResult as V, PluginContextMeta as W, RolldownFileStats as X, RolldownDirectoryEntry as Y, RolldownFsModule as Z, ModuleType as _, OutputOptions as _t, InputOption as a, rolldown as at, PartialResolvedId as b, OutputChunk as bt, OptimizationOptions as c, build as ct, CustomPluginOptions as d, ChunkingContext as dt, NormalizedInputOptions as et, FunctionPluginHooks as f, GeneratedCodeOptions as ft, ModuleOptions as g, ModuleFormat as gt, LoadResult as h, MinifyOptions as ht, ExternalOption as i, WatchOptions as it, ExistingRawSourceMap as j, withFilter as k, WatcherOptions as l, AddonFunction as lt, ImportKind as m, GlobalsFunction as mt, ConfigExport as n, RolldownWatcher as nt, InputOptions as o, RolldownBuild as ot, HookFilterExtension as p, GeneratedCodePreset as pt, ModuleTypeFilter as q, RolldownOptions as r, RolldownWatcherEvent as rt, ModuleTypes as s, BuildOptions as st, defineConfig as t, watch as tt, AsyncPluginHooks as u, ChunkFileNamesFunction as ut, ObjectHook as v, PreRenderedAsset as vt, ResolvedId as w, SourceMap as wt, Plugin as x, RenderedChunk as xt, ParallelPluginHooks as y, OutputAsset as yt, GetModuleInfo as z };
@@ -0,0 +1,7 @@
1
+ //#region src/utils/define-config.ts
2
+ function defineConfig(config) {
3
+ return config;
4
+ }
5
+
6
+ //#endregion
7
+ export { defineConfig as t };
@@ -1,4 +1,4 @@
1
- import { o as rolldown } from "./src-D0x2a_iO.mjs";
1
+ import { t as rolldown } from "./rolldown-0ID0Q4xL.mjs";
2
2
  import path from "node:path";
3
3
  import { readdir } from "node:fs/promises";
4
4
  import { pathToFileURL } from "node:url";
@@ -0,0 +1,22 @@
1
+ //#region src/utils/misc.ts
2
+ function arraify(value) {
3
+ return Array.isArray(value) ? value : [value];
4
+ }
5
+ function isPromiseLike(value) {
6
+ return value && (typeof value === "object" || typeof value === "function") && typeof value.then === "function";
7
+ }
8
+ function unimplemented(info) {
9
+ if (info) throw new Error(`unimplemented: ${info}`);
10
+ throw new Error("unimplemented");
11
+ }
12
+ function unreachable(info) {
13
+ if (info) throw new Error(`unreachable: ${info}`);
14
+ throw new Error("unreachable");
15
+ }
16
+ function unsupported(info) {
17
+ throw new Error(`UNSUPPORTED: ${info}`);
18
+ }
19
+ function noop(..._args) {}
20
+
21
+ //#endregion
22
+ export { unreachable as a, unimplemented as i, isPromiseLike as n, unsupported as o, noop as r, arraify as t };