@ohos-ports/rolldown 1.2.6-beta.0

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 (54) hide show
  1. package/LICENSE +25 -0
  2. package/README.md +11 -0
  3. package/THIRD-PARTY-LICENSE +33 -0
  4. package/bin/cli.mjs +11 -0
  5. package/dist/cli.d.mts +1 -0
  6. package/dist/cli.mjs +1208 -0
  7. package/dist/config.d.mts +26 -0
  8. package/dist/config.mjs +4 -0
  9. package/dist/experimental-default-runtime.mjs +116 -0
  10. package/dist/experimental-index.d.mts +324 -0
  11. package/dist/experimental-index.mjs +383 -0
  12. package/dist/experimental-runtime-base.mjs +95 -0
  13. package/dist/experimental-runtime-types.d.ts +177 -0
  14. package/dist/experimental-runtime.d.ts +177 -0
  15. package/dist/experimental-runtime.mjs +257 -0
  16. package/dist/filter-index.d.mts +196 -0
  17. package/dist/filter-index.mjs +376 -0
  18. package/dist/get-log-filter.d.mts +3 -0
  19. package/dist/get-log-filter.mjs +68 -0
  20. package/dist/index.d.mts +4 -0
  21. package/dist/index.mjs +56 -0
  22. package/dist/parallel-plugin-worker.d.mts +1 -0
  23. package/dist/parallel-plugin-worker.mjs +29 -0
  24. package/dist/parallel-plugin.d.mts +12 -0
  25. package/dist/parallel-plugin.mjs +6 -0
  26. package/dist/parse-ast-index.d.mts +30 -0
  27. package/dist/parse-ast-index.mjs +60 -0
  28. package/dist/plugins-index.d.mts +32 -0
  29. package/dist/plugins-index.mjs +40 -0
  30. package/dist/shared/binding-CtPG-2KR.mjs +675 -0
  31. package/dist/shared/binding-Og__jmUi.d.mts +2065 -0
  32. package/dist/shared/bindingify-input-options-4JJxbZl2.mjs +2416 -0
  33. package/dist/shared/constructors-Qrp2Xr6w.d.mts +35 -0
  34. package/dist/shared/constructors-ltBDfHX1.mjs +69 -0
  35. package/dist/shared/create-bundler-option-DSPiA5F7.mjs +3220 -0
  36. package/dist/shared/define-config-Demdg3_4.mjs +6 -0
  37. package/dist/shared/define-config-Nbz-lniw.d.mts +4101 -0
  38. package/dist/shared/dist-DKbukT1H.mjs +154 -0
  39. package/dist/shared/error-HDibX49O.mjs +85 -0
  40. package/dist/shared/get-log-filter-AjBknEEO.d.mts +34 -0
  41. package/dist/shared/load-config-BMUrE9HH.mjs +137 -0
  42. package/dist/shared/logging-xuHO4mAy.d.mts +50 -0
  43. package/dist/shared/logs-DmYCAKcW.mjs +192 -0
  44. package/dist/shared/misc-DOSKtd97.mjs +29 -0
  45. package/dist/shared/normalize-string-or-regex-DWz4it3p.mjs +68 -0
  46. package/dist/shared/parse-D0g29RgN.mjs +74 -0
  47. package/dist/shared/prompt-CH6TK0bC.mjs +885 -0
  48. package/dist/shared/resolve-tsconfig-CLYpUIZC.mjs +128 -0
  49. package/dist/shared/rolldown-C9Hfg50O.mjs +179 -0
  50. package/dist/shared/transform-DR4CXeQm.d.mts +152 -0
  51. package/dist/shared/watch-UbzgabQn.mjs +377 -0
  52. package/dist/utils-index.d.mts +375 -0
  53. package/dist/utils-index.mjs +2416 -0
  54. package/package.json +159 -0
@@ -0,0 +1,26 @@
1
+ import { R as VERSION, r as defineConfig, t as ConfigExport } from "./shared/define-config-Nbz-lniw.mjs";
2
+ //#region src/utils/load-config.d.ts
3
+ type ConfigLoader = "bundle" | "native";
4
+ interface LoadConfigOptions {
5
+ /**
6
+ * How to load the config file.
7
+ * - `'bundle'` (default): bundle the config with Rolldown, then import it.
8
+ * - `'native'`: import the config directly, delegating TypeScript/loader
9
+ * handling to the runtime. Faster, but requires runtime support.
10
+ *
11
+ * @default 'bundle'
12
+ */
13
+ configLoader?: ConfigLoader;
14
+ }
15
+ /**
16
+ * Load config from a file in a way that Rolldown does.
17
+ *
18
+ * @param configPath The path to the config file. If empty, it will look for `rolldown.config` with supported extensions in the current working directory.
19
+ * @param options Loading options. `configLoader` selects `'bundle'` (default) or `'native'`.
20
+ * @returns The loaded config export
21
+ *
22
+ * @category Config
23
+ */
24
+ export declare function loadConfig(configPath: string, options?: LoadConfigOptions): Promise<ConfigExport>;
25
+ //#endregion
26
+ export { VERSION, defineConfig };
@@ -0,0 +1,4 @@
1
+ import { T as VERSION } from "./shared/bindingify-input-options-4JJxbZl2.mjs";
2
+ import { t as defineConfig } from "./shared/define-config-Demdg3_4.mjs";
3
+ import { t as loadConfig } from "./shared/load-config-BMUrE9HH.mjs";
4
+ export { VERSION, defineConfig, loadConfig };
@@ -0,0 +1,116 @@
1
+ // @ts-check
2
+
3
+ /** @import { DevRuntime } from './runtime-extra-dev-common.js' */
4
+
5
+ /** @type {typeof DevRuntime} */
6
+ // @ts-expect-error -- there's no way to declare a variable by JSDoc
7
+ var BaseDevRuntime = DevRuntime;
8
+
9
+ class ModuleHotContext {
10
+ /**
11
+ * @type {{ deps: [string], fn: (moduleExports: Record<string, any>[]) => void }[]}
12
+ */
13
+ acceptCallbacks = [];
14
+ /**
15
+ * @param {string} moduleId
16
+ * @param {InstanceType<BaseDevRuntime>} devRuntime
17
+ */
18
+ constructor(moduleId, devRuntime) {
19
+ this.moduleId = moduleId;
20
+ this.devRuntime = devRuntime;
21
+ }
22
+
23
+ /**
24
+ * @overload
25
+ * @param {(mod: Record<string, any>) => void} cb
26
+ * @returns {void}
27
+ */
28
+ /**
29
+ * @param {...any} args
30
+ * @returns {void}
31
+ */
32
+ accept(...args) {
33
+ if (args.length === 1) {
34
+ const [cb] = /** @type {[(mod: Record<string, any>) => void]} */ (args);
35
+ const acceptingPath = this.moduleId;
36
+ this.acceptCallbacks.push({
37
+ deps: [acceptingPath],
38
+ fn: cb,
39
+ });
40
+ } else if (args.length === 0) {}
41
+ else {
42
+ throw new Error('Invalid arguments for `import.meta.hot.accept`');
43
+ }
44
+ }
45
+
46
+ invalidate() {
47
+ socket.send(JSON.stringify({
48
+ type: 'hmr:invalidate',
49
+ moduleId: this.moduleId,
50
+ }));
51
+ }
52
+ }
53
+
54
+ class DefaultDevRuntime extends BaseDevRuntime {
55
+ /**
56
+ * @type {Map<string, ModuleHotContext>}
57
+ */
58
+ moduleHotContexts = new Map();
59
+ /**
60
+ * @override
61
+ * @param {string} moduleId
62
+ */
63
+ createModuleHotContext(moduleId) {
64
+ const hotContext = new ModuleHotContext(moduleId, this);
65
+ this.moduleHotContexts.set(moduleId, hotContext);
66
+ return hotContext;
67
+ }
68
+ }
69
+
70
+ /** @param {string} url */
71
+ function loadScript(url) {
72
+ var script = document.createElement('script');
73
+ script.src = url;
74
+ script.type = 'module';
75
+ script.onerror = function() {
76
+ console.error('Failed to load script: ' + url);
77
+ };
78
+ document.body.appendChild(script);
79
+ }
80
+
81
+ console.debug('HMR runtime loaded', '$ADDR');
82
+ // Generate client ID immediately at runtime initialization
83
+ // This ensures the client ID is available before any lazy imports
84
+ const clientId = crypto.randomUUID();
85
+ const addr = new URL('ws://$ADDR');
86
+ addr.searchParams.set('clientId', clientId);
87
+
88
+ const socket = new WebSocket(addr);
89
+
90
+ (/** @type {any} */ (globalThis)).__rolldown_runtime__ ??=
91
+ new DefaultDevRuntime(clientId);
92
+
93
+ /** @param {MessageEvent} event */
94
+ socket.onmessage = function(event) {
95
+ const data = JSON.parse(event.data);
96
+ console.debug('Received message:', data);
97
+ if (data.type === 'connected') {
98
+ // Server acknowledged the connection
99
+ console.debug('[hmr]: Connection established with server');
100
+ } else if (data.type === 'hmr:update') {
101
+ if (typeof process === 'object') {
102
+ import(data.path);
103
+ console.debug(`[hmr]: Importing HMR patch: ${data.path}`);
104
+ } else {
105
+ console.debug(`[hmr]: Loading HMR patch: ${data.path}`);
106
+ loadScript(data.url);
107
+ }
108
+ } else if (data.type === 'hmr:reload') {
109
+ console.log('[hmr]: Full reload required, reloading page');
110
+ if (typeof location !== 'undefined') {
111
+ location.reload();
112
+ } else {
113
+ console.log('[hmr]: location is undefined, cannot reload page');
114
+ }
115
+ }
116
+ };
@@ -0,0 +1,324 @@
1
+ import { $ as resetNativeMemoryStats, B as NapiResolveOptions, E as BindingViteManifestPluginConfig, F as IsolatedDeclarationsResult, G as ResolverFactory, P as IsolatedDeclarationsOptions, Q as moduleRunnerTransform, W as ResolveResult, X as isolatedDeclaration, Y as getNativeMemoryStats, Z as isolatedDeclarationSync, b as BindingTsconfigRawOptions, f as BindingModuleInfo, h as BindingRebuildStrategy, i as BindingClientHmrUpdate, j as BindingViteTransformPluginConfig, n as BindingBundleAnalyzerPluginConfig, p as BindingNativeMemoryStats, r as BindingBundleState, u as BindingLazyChunkOutput, y as BindingTsconfigCompilerOptions } from "./shared/binding-Og__jmUi.mjs";
2
+ import { $ as defineParallelPlugin, $t as freeExternalMemory, Ht as OutputOptions, I as BuiltinPlugin, Kt as StringOrRegExp, Zt as RolldownOutput, l as InputOptions, ut as NormalizedOutputOptions } from "./shared/define-config-Nbz-lniw.mjs";
3
+ import { a as MinifyOptions$1, c as minifySync$1, d as parse$1, f as parseSync$1, i as transformSync$1, l as ParseResult$1, m as resolveTsconfig, n as TransformResult$1, o as MinifyResult$1, p as TsconfigCache$1, r as transform$1, s as minify$1, t as TransformOptions$1, u as ParserOptions$1 } from "./shared/transform-DR4CXeQm.mjs";
4
+ import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-Qrp2Xr6w.mjs";
5
+ //#region src/api/dev/dev-options.d.ts
6
+ type DevOnHmrUpdates = (result: Error | {
7
+ updates: BindingClientHmrUpdate[];
8
+ changedFiles: string[];
9
+ }) => void | Promise<void>;
10
+ type DevOnOutput = (result: Error | RolldownOutput) => void | Promise<void>;
11
+ type DevOnAdditionalAssets = (output: RolldownOutput) => void | Promise<void>;
12
+ interface DevWatchOptions {
13
+ /**
14
+ * If `false`, no file system watcher is started, so file changes are never
15
+ * picked up and no rebuild or HMR update is triggered on their own.
16
+ * @default true
17
+ */
18
+ enabled?: boolean;
19
+ /**
20
+ * If `true`, files are not written to disk.
21
+ * @default false
22
+ */
23
+ skipWrite?: boolean;
24
+ /**
25
+ * If `true`, use polling instead of native file system events for watching.
26
+ * @default false
27
+ */
28
+ usePolling?: boolean;
29
+ /**
30
+ * Poll interval in milliseconds (only used when usePolling is true).
31
+ * @default 100
32
+ */
33
+ pollInterval?: number;
34
+ /**
35
+ * If `true`, use debounced watcher. If `false`, use non-debounced watcher for immediate responses.
36
+ * @default true
37
+ */
38
+ useDebounce?: boolean;
39
+ /**
40
+ * Debounce duration in milliseconds (only used when useDebounce is true).
41
+ * @default 10
42
+ */
43
+ debounceDuration?: number;
44
+ /**
45
+ * Whether to compare file contents for poll-based watchers (only used when usePolling is true).
46
+ * When enabled, poll watchers will check file contents to determine if they actually changed.
47
+ * @default false
48
+ */
49
+ compareContentsForPolling?: boolean;
50
+ /**
51
+ * Tick rate in milliseconds for debounced watchers (only used when useDebounce is true).
52
+ * Controls how frequently the debouncer checks for events to process.
53
+ * When not specified, the debouncer will auto-select an appropriate tick rate (1/4 of the debounce duration).
54
+ * @default undefined (auto-select)
55
+ */
56
+ debounceTickRate?: number;
57
+ /**
58
+ * Filter to limit which discovered files are registered with the file watcher.
59
+ *
60
+ * Strings are treated as glob patterns.
61
+ *
62
+ * @default []
63
+ */
64
+ include?: StringOrRegExp | StringOrRegExp[];
65
+ /**
66
+ * Filter to prevent discovered files from being registered with the file watcher.
67
+ *
68
+ * Strings are treated as glob patterns.
69
+ *
70
+ * @default []
71
+ */
72
+ exclude?: StringOrRegExp | StringOrRegExp[];
73
+ }
74
+ interface DevOptions {
75
+ onHmrUpdates?: DevOnHmrUpdates;
76
+ onOutput?: DevOnOutput;
77
+ /**
78
+ * Called with assets emitted while generating an HMR patch or compiling a
79
+ * lazy entry (e.g. an image newly imported by the changed/lazy module).
80
+ *
81
+ * These never go through {@link onOutput}, so a consumer that serves built
82
+ * files (e.g. Vite's bundled dev server) must register this to receive them
83
+ * and write them to its in-memory file store before the client requests them.
84
+ */
85
+ onAdditionalAssets?: DevOnAdditionalAssets;
86
+ /**
87
+ * Strategy for triggering rebuilds after HMR updates.
88
+ * - `'always'`: Always trigger a rebuild after HMR updates
89
+ * - `'never'`: Never trigger rebuild after HMR updates. The server no longer
90
+ * decides full reloads, so there is no `'auto'` upgrade anymore; pull fresh
91
+ * bundle output explicitly (e.g. `ensureLatestBuildOutput`) when needed.
92
+ * @default 'never'
93
+ */
94
+ rebuildStrategy?: "always" | "never";
95
+ watch?: DevWatchOptions;
96
+ }
97
+ //#endregion
98
+ //#region src/api/dev/dev-engine.d.ts
99
+ /**
100
+ * The part of the binding engine the module graph reads from.
101
+ *
102
+ * Typed structurally instead of as `BindingDevEngine`: a public constructor
103
+ * parameter type is emitted into the public dts, and naming the binding class
104
+ * there would pull the whole binding type chain into the public surface.
105
+ */
106
+ interface ModuleGraphSource {
107
+ getModuleInfo(moduleId: string): BindingModuleInfo | null;
108
+ getModuleIds(): Array<string>;
109
+ }
110
+ /** Read-only view over the engine's module graph, kept current across rebuilds. */
111
+ declare class DevEngineModuleGraph {
112
+ #private;
113
+ constructor(inner: ModuleGraphSource);
114
+ /**
115
+ * Get additional information about the module in question.
116
+ *
117
+ * @returns Module information for that module. `null` if the module could not be found.
118
+ */
119
+ getModuleInfo(moduleId: string): BindingModuleInfo | null;
120
+ /**
121
+ * Get all module ids in the current module graph.
122
+ *
123
+ * @returns An array of module ids.
124
+ */
125
+ getModuleIds(): string[];
126
+ }
127
+ export declare class DevEngine {
128
+ #private;
129
+ readonly moduleGraph: DevEngineModuleGraph;
130
+ static create(inputOptions: InputOptions, outputOptions?: OutputOptions, devOptions?: DevOptions): Promise<DevEngine>;
131
+ private constructor();
132
+ run(): Promise<void>;
133
+ ensureCurrentBuildFinish(): Promise<void>;
134
+ getBundleState(): Promise<BindingBundleState>;
135
+ ensureLatestBuildOutput(): Promise<void>;
136
+ triggerFullBuild(): void;
137
+ /**
138
+ * Client-connect signal (the clientId hello): creates the per-client session
139
+ * with an empty ship map. Reconnects arrive as fresh clientIds.
140
+ */
141
+ registerClient(clientId: string): Promise<void>;
142
+ /**
143
+ * Delivery notification from the serving middleware: the response for
144
+ * `filename` completed, so record its modules as shipped to that client.
145
+ */
146
+ notifyPayloadDelivered(filename: string): Promise<void>;
147
+ removeClient(clientId: string): Promise<void>;
148
+ close(): Promise<void>;
149
+ /**
150
+ * Compile a lazy entry module and return HMR-style patch code.
151
+ *
152
+ * This is called when a dynamically imported module is first requested at runtime.
153
+ * The module was previously stubbed with a proxy, and now we need to compile the
154
+ * actual module and its dependencies.
155
+ *
156
+ * @param moduleId - The absolute file path of the module to compile
157
+ * @param clientId - The client ID requesting this compilation
158
+ * @returns The compiled chunk: its code plus the filename whose delivery the
159
+ * serving middleware reports via {@link notifyPayloadDelivered}
160
+ */
161
+ compileEntry(moduleId: string, clientId: string): Promise<BindingLazyChunkOutput>;
162
+ }
163
+ //#endregion
164
+ //#region src/api/dev/index.d.ts
165
+ export declare const dev: typeof DevEngine.create;
166
+ //#endregion
167
+ //#region src/api/experimental.d.ts
168
+ /**
169
+ * This is an experimental API. Its behavior may change in the future.
170
+ *
171
+ * - Calling this API will only execute the `scan/build` stage of rolldown.
172
+ * - `scan` will clean up all resources automatically, but if you want to ensure timely cleanup, you need to wait for the returned promise to resolve.
173
+ *
174
+ * @example To ensure cleanup of resources, use the returned promise to wait for the scan to complete.
175
+ * ```ts
176
+ * import { scan } from 'rolldown/api/experimental';
177
+ *
178
+ * const cleanupPromise = await scan(...);
179
+ * await cleanupPromise;
180
+ * // Now all resources have been cleaned up.
181
+ * ```
182
+ */
183
+ export declare const scan: (rawInputOptions: InputOptions, rawOutputOptions?: {}) => Promise<Promise<void>>;
184
+ //#endregion
185
+ //#region src/builtin-plugin/alias-plugin.d.ts
186
+ type ViteAliasPluginConfig = {
187
+ entries: {
188
+ find: string | RegExp;
189
+ replacement: string;
190
+ }[];
191
+ };
192
+ export declare function viteAliasPlugin(config: ViteAliasPluginConfig): BuiltinPlugin;
193
+ //#endregion
194
+ //#region src/builtin-plugin/bundle-analyzer-plugin.d.ts
195
+ /**
196
+ * A plugin that analyzes bundle composition and generates detailed reports.
197
+ *
198
+ * The plugin outputs a file containing detailed information about:
199
+ * - All chunks and their relationships
200
+ * - Modules bundled in each chunk
201
+ * - Import dependencies between chunks
202
+ * - Reachable modules from each entry point
203
+ *
204
+ * @example
205
+ * ```js
206
+ * import { bundleAnalyzerPlugin } from 'rolldown/experimental';
207
+ *
208
+ * export default {
209
+ * plugins: [
210
+ * bundleAnalyzerPlugin()
211
+ * ]
212
+ * }
213
+ * ```
214
+ *
215
+ * @example
216
+ * **Custom filename**
217
+ * ```js
218
+ * import { bundleAnalyzerPlugin } from 'rolldown/experimental';
219
+ *
220
+ * export default {
221
+ * plugins: [
222
+ * bundleAnalyzerPlugin({
223
+ * fileName: 'bundle-analysis.json'
224
+ * })
225
+ * ]
226
+ * }
227
+ * ```
228
+ *
229
+ * @example
230
+ * **LLM-friendly markdown output**
231
+ * ```js
232
+ * import { bundleAnalyzerPlugin } from 'rolldown/experimental';
233
+ *
234
+ * export default {
235
+ * plugins: [
236
+ * bundleAnalyzerPlugin({
237
+ * format: 'md'
238
+ * })
239
+ * ]
240
+ * }
241
+ * ```
242
+ */
243
+ export declare function bundleAnalyzerPlugin(config?: BindingBundleAnalyzerPluginConfig): BuiltinPlugin;
244
+ //#endregion
245
+ //#region src/builtin-plugin/transform-plugin.d.ts
246
+ type TransformPattern = string | RegExp | readonly (RegExp | string)[];
247
+ type TransformPluginConfig = Omit<BindingViteTransformPluginConfig, "include" | "exclude" | "jsxRefreshInclude" | "jsxRefreshExclude" | "yarnPnp"> & {
248
+ include?: TransformPattern;
249
+ exclude?: TransformPattern;
250
+ jsxRefreshInclude?: TransformPattern;
251
+ jsxRefreshExclude?: TransformPattern;
252
+ };
253
+ export declare function viteTransformPlugin(config: TransformPluginConfig): BuiltinPlugin;
254
+ //#endregion
255
+ //#region src/builtin-plugin/vite-manifest-plugin.d.ts
256
+ type ViteManifestPluginConfig = Omit<BindingViteManifestPluginConfig, "isLegacy"> & {
257
+ isOutputOptionsForLegacyChunks?: (outputOptions: NormalizedOutputOptions) => boolean;
258
+ };
259
+ export declare function viteManifestPlugin(config: ViteManifestPluginConfig): BuiltinPlugin;
260
+ //#endregion
261
+ //#region src/experimental-index.d.ts
262
+ /**
263
+ * In-memory file system for browser builds.
264
+ *
265
+ * This is a re-export of the {@link https://github.com/streamich/memfs | memfs} package used by the WASI runtime.
266
+ * It allows you to read and write files to a virtual filesystem when using rolldown in browser environments.
267
+ *
268
+ * - `fs`: A Node.js-compatible filesystem API (`IFs` from memfs)
269
+ * - `volume`: The underlying `Volume` instance that stores the filesystem state
270
+ *
271
+ * Returns `undefined` in Node.js builds (only available in browser builds via `@rolldown/browser`).
272
+ *
273
+ * @example
274
+ * ```typescript
275
+ * import { memfs } from 'rolldown/experimental';
276
+ *
277
+ * // Write files to virtual filesystem before bundling
278
+ * memfs?.volume.fromJSON({
279
+ * '/src/index.js': 'export const foo = 42;',
280
+ * '/package.json': '{"name": "my-app"}'
281
+ * });
282
+ *
283
+ * // Read files from the virtual filesystem
284
+ * const content = memfs?.fs.readFileSync('/src/index.js', 'utf8');
285
+ * ```
286
+ *
287
+ * @see {@link https://github.com/streamich/memfs} for more information on the memfs API.
288
+ */
289
+ export declare const memfs: {
290
+ fs: any;
291
+ volume: any;
292
+ } | undefined;
293
+ /** @deprecated Use from `rolldown/utils` instead. */
294
+ export declare const parse: typeof parse$1;
295
+ /** @deprecated Use from `rolldown/utils` instead. */
296
+ export declare const parseSync: typeof parseSync$1;
297
+ /** @deprecated Use from `rolldown/utils` instead. */
298
+ export type ParseResult = ParseResult$1;
299
+ /** @deprecated Use from `rolldown/utils` instead. */
300
+ export type ParserOptions = ParserOptions$1;
301
+ /** @deprecated Use from `rolldown/utils` instead. */
302
+ export declare const minify: typeof minify$1;
303
+ /** @deprecated Use from `rolldown/utils` instead. */
304
+ export declare const minifySync: typeof minifySync$1;
305
+ /** @deprecated Use from `rolldown/utils` instead. */
306
+ export type MinifyOptions = MinifyOptions$1;
307
+ /** @deprecated Use from `rolldown/utils` instead. */
308
+ export type MinifyResult = MinifyResult$1;
309
+ /** @deprecated Use from `rolldown/utils` instead. */
310
+ export declare const transform: typeof transform$1;
311
+ /** @deprecated Use from `rolldown/utils` instead. */
312
+ export declare const transformSync: typeof transformSync$1;
313
+ /** @deprecated Use from `rolldown/utils` instead. */
314
+ export type TransformOptions = TransformOptions$1;
315
+ /** @deprecated Use from `rolldown/utils` instead. */
316
+ export type TransformResult = TransformResult$1;
317
+ /** @deprecated Use from `rolldown/utils` instead. */
318
+ export declare const TsconfigCache: typeof TsconfigCache$1;
319
+ /** @deprecated Use from `rolldown/utils` instead. */
320
+ export type TsconfigRawOptions = BindingTsconfigRawOptions;
321
+ /** @deprecated Use from `rolldown/utils` instead. */
322
+ export type TsconfigCompilerOptions = BindingTsconfigCompilerOptions;
323
+ //#endregion
324
+ export { type BindingClientHmrUpdate, type BindingNativeMemoryStats, BindingRebuildStrategy, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, defineParallelPlugin, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, getNativeMemoryStats, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, moduleRunnerTransform, oxcRuntimePlugin, resetNativeMemoryStats, resolveTsconfig, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteWebWorkerPostPlugin };