@rolldown/browser 1.0.0-rc.6 → 1.0.0-rc.8
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 +618 -196
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +9 -10
- package/dist/{constructors-WyngiSlS.js → constructors-BgL_dmUe.js} +2 -4
- package/dist/{error-D4EjR7H_.js → error-DkAP_6fk.js} +1 -6
- package/dist/experimental-index.browser.mjs +22 -19
- package/dist/experimental-index.d.mts +18 -4
- package/dist/experimental-index.mjs +24 -21
- package/dist/filter-index.d.mts +1 -1
- package/dist/filter-index.mjs +2 -6
- package/dist/get-log-filter.mjs +1 -2
- package/dist/index.browser.mjs +67 -73
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +9 -12
- package/dist/{normalize-string-or-regex-B0X1hEA4.js → normalize-string-or-regex-TtAGUp42.js} +5 -11
- package/dist/parallel-plugin-worker.mjs +6 -8
- package/dist/parallel-plugin.d.mts +1 -1
- package/dist/parallel-plugin.mjs +1 -2
- package/dist/parse-ast-index.mjs +3 -5
- package/dist/plugins-index.browser.mjs +3 -5
- package/dist/plugins-index.mjs +3 -5
- package/dist/rolldown-binding.wasi-browser.js +0 -1
- package/dist/rolldown-binding.wasi.cjs +0 -1
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/{rolldown-build-DwnjyX40.js → rolldown-build-Clh1p2eh.js} +446 -522
- package/dist/shared/{bindingify-input-options-CSIYh5O4.mjs → bindingify-input-options-CxjTlvCV.mjs} +36 -56
- package/dist/shared/{composable-filters-C_jBPRPI.mjs → composable-filters-B2ByPP8y.mjs} +1 -4
- package/dist/shared/{constructors-B2viugwd.mjs → constructors-C7Kkidxk.mjs} +2 -4
- package/dist/shared/{define-config-BMj_QknW.mjs → define-config-DJOr6Iwt.mjs} +1 -2
- package/dist/shared/{define-config-DMEhSrNE.d.mts → define-config-TEoV5q6D.d.mts} +83 -29
- package/dist/shared/{error-DDzqVYr_.mjs → error-CQ6njWsV.mjs} +1 -4
- package/dist/shared/{load-config-CmC4WvoS.mjs → load-config-Cs9h9aXF.mjs} +2 -4
- package/dist/shared/{logs-CCc_0vhs.mjs → logs-D80CXhvg.mjs} +5 -8
- package/dist/shared/{normalize-string-or-regex-FTOVR1Jb.mjs → normalize-string-or-regex-CF3Uz6aU.mjs} +2 -5
- package/dist/shared/{parse-DIZtKd4C.mjs → parse-DDUnGYGU.mjs} +1 -4
- package/dist/shared/{prompt-B56gTa4S.mjs → prompt-BYQIwEjg.mjs} +1 -3
- package/dist/shared/{rolldown-D7O5_axp.mjs → rolldown-D2p2QuF1.mjs} +2 -4
- package/dist/shared/{rolldown-build-BV90HQts.mjs → rolldown-build-D_FXM8pA.mjs} +426 -472
- package/dist/shared/{transform-D49mi4JH.mjs → transform-B_n5An0U.mjs} +2 -5
- package/dist/shared/{watch-COON6c2j.mjs → watch-BMFUc4Au.mjs} +69 -75
- package/dist/{transform-qJgOBSav.js → transform-UkHb5h4g.js} +2 -5
- package/dist/utils-index.browser.mjs +7 -16
- package/dist/utils-index.mjs +8 -17
- package/package.json +1 -1
- package/dist/cli-setup.d.mts +0 -1
- package/dist/cli-setup.mjs +0 -16
package/dist/config.d.mts
CHANGED
package/dist/config.mjs
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import "./shared/normalize-string-or-regex-
|
|
2
|
-
import { b as VERSION } from "./shared/bindingify-input-options-
|
|
3
|
-
import "./shared/rolldown-build-
|
|
4
|
-
import "./shared/error-
|
|
5
|
-
import "./shared/parse-
|
|
6
|
-
import "./shared/rolldown-
|
|
7
|
-
import { t as defineConfig } from "./shared/define-config-
|
|
8
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
9
|
-
|
|
10
|
-
export { VERSION, defineConfig, loadConfig };
|
|
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";
|
|
4
|
+
import "./shared/error-CQ6njWsV.mjs";
|
|
5
|
+
import "./shared/parse-DDUnGYGU.mjs";
|
|
6
|
+
import "./shared/rolldown-D2p2QuF1.mjs";
|
|
7
|
+
import { t as defineConfig } from "./shared/define-config-DJOr6Iwt.mjs";
|
|
8
|
+
import { t as loadConfig } from "./shared/load-config-Cs9h9aXF.mjs";
|
|
9
|
+
export { VERSION, defineConfig, loadConfig };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-
|
|
2
|
-
|
|
1
|
+
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-TtAGUp42.js";
|
|
3
2
|
//#region src/builtin-plugin/constructors.ts
|
|
4
3
|
function viteModulePreloadPolyfillPlugin(config) {
|
|
5
4
|
return new BuiltinPlugin("builtin:vite-module-preload-polyfill", config);
|
|
@@ -59,6 +58,5 @@ function viteReactRefreshWrapperPlugin(config) {
|
|
|
59
58
|
}
|
|
60
59
|
return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:vite-react-refresh-wrapper", config));
|
|
61
60
|
}
|
|
62
|
-
|
|
63
61
|
//#endregion
|
|
64
|
-
export { viteImportGlobPlugin as a, viteModulePreloadPolyfillPlugin as c, viteResolvePlugin as d, viteWasmFallbackPlugin as f, viteDynamicImportVarsPlugin as i, viteReactRefreshWrapperPlugin as l, isolatedDeclarationPlugin as n, viteJsonPlugin as o, viteWebWorkerPostPlugin as p, viteBuildImportAnalysisPlugin as r, viteLoadFallbackPlugin as s, esmExternalRequirePlugin as t, viteReporterPlugin as u };
|
|
62
|
+
export { viteImportGlobPlugin as a, viteModulePreloadPolyfillPlugin as c, viteResolvePlugin as d, viteWasmFallbackPlugin as f, viteDynamicImportVarsPlugin as i, viteReactRefreshWrapperPlugin as l, isolatedDeclarationPlugin as n, viteJsonPlugin as o, viteWebWorkerPostPlugin as p, viteBuildImportAnalysisPlugin as r, viteLoadFallbackPlugin as s, esmExternalRequirePlugin as t, viteReporterPlugin as u };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { parse, parseSync } from "./rolldown-binding.wasi-browser.js";
|
|
2
|
-
|
|
3
2
|
//#region src/types/sourcemap.ts
|
|
4
3
|
function bindingifySourcemap(map) {
|
|
5
4
|
if (map == null) return;
|
|
@@ -14,7 +13,6 @@ function bindingifySourcemap(map) {
|
|
|
14
13
|
debugId: "debugId" in map ? map.debugId : void 0
|
|
15
14
|
} };
|
|
16
15
|
}
|
|
17
|
-
|
|
18
16
|
//#endregion
|
|
19
17
|
//#region ../../node_modules/.pnpm/oxc-parser@0.115.0/node_modules/oxc-parser/src-js/wrap.js
|
|
20
18
|
function wrap(result) {
|
|
@@ -51,7 +49,6 @@ function applyFix(program, fixPath) {
|
|
|
51
49
|
node.value = RegExp(node.regex.pattern, node.regex.flags);
|
|
52
50
|
} catch {}
|
|
53
51
|
}
|
|
54
|
-
|
|
55
52
|
//#endregion
|
|
56
53
|
//#region src/utils/parse.ts
|
|
57
54
|
/**
|
|
@@ -87,7 +84,6 @@ async function parse$1(filename, sourceText, options) {
|
|
|
87
84
|
function parseSync$1(filename, sourceText, options) {
|
|
88
85
|
return wrap(parseSync(filename, sourceText, options));
|
|
89
86
|
}
|
|
90
|
-
|
|
91
87
|
//#endregion
|
|
92
88
|
//#region src/utils/error.ts
|
|
93
89
|
function unwrapBindingResult(container) {
|
|
@@ -157,6 +153,5 @@ function getErrorMessage(e) {
|
|
|
157
153
|
function joinNewLine(s1, s2) {
|
|
158
154
|
return s1.replace(/\n+$/, "") + "\n" + s2.replace(/^\n+/, "");
|
|
159
155
|
}
|
|
160
|
-
|
|
161
156
|
//#endregion
|
|
162
|
-
export { parse$1 as a, unwrapBindingResult as i, normalizeBindingError as n, parseSync$1 as o, normalizeBindingResult as r, bindingifySourcemap as s, aggregateBindingErrorsIntoJsError as t };
|
|
157
|
+
export { parse$1 as a, unwrapBindingResult as i, normalizeBindingError as n, parseSync$1 as o, normalizeBindingResult as r, bindingifySourcemap as s, aggregateBindingErrorsIntoJsError as t };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-
|
|
2
|
-
import { a as PluginDriver, i as validateOption, n as createBundlerOptions, r as transformToRollupOutput, t as RolldownBuild } from "./rolldown-build-
|
|
3
|
-
import { a as parse$2, i as unwrapBindingResult, o as parseSync$2, r as normalizeBindingResult } from "./error-
|
|
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-
|
|
5
|
-
import { a as minifySync$2, i as minify$2, n as transform$1, r as transformSync$1, t as TsconfigCache$1 } from "./transform-
|
|
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";
|
|
3
|
+
import { a as parse$2, i as unwrapBindingResult, o as parseSync$2, r as normalizeBindingResult } from "./error-DkAP_6fk.js";
|
|
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
|
+
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";
|
|
6
6
|
import * as binding from "./rolldown-binding.wasi-browser.js";
|
|
7
|
-
import { BindingBundler, BindingDevEngine, BindingRebuildStrategy, BindingRebuildStrategy as BindingRebuildStrategy$1, ResolverFactory,
|
|
8
|
-
|
|
7
|
+
import { BindingBundler, BindingDevEngine, BindingRebuildStrategy, BindingRebuildStrategy as BindingRebuildStrategy$1, ResolverFactory, isolatedDeclaration, isolatedDeclarationSync, moduleRunnerTransform, resolveTsconfig, shutdownAsyncRuntime, startAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
|
|
9
8
|
//#region src/api/dev/dev-engine.ts
|
|
10
9
|
var DevEngine = class DevEngine {
|
|
11
10
|
#inner;
|
|
@@ -97,11 +96,9 @@ var DevEngine = class DevEngine {
|
|
|
97
96
|
return this.#inner.compileEntry(moduleId, clientId);
|
|
98
97
|
}
|
|
99
98
|
};
|
|
100
|
-
|
|
101
99
|
//#endregion
|
|
102
100
|
//#region src/api/dev/index.ts
|
|
103
101
|
const dev = (...args) => DevEngine.create(...args);
|
|
104
|
-
|
|
105
102
|
//#endregion
|
|
106
103
|
//#region src/types/external-memory-handle.ts
|
|
107
104
|
const symbolForExternalMemoryHandle = "__rolldown_external_memory_handle__";
|
|
@@ -142,7 +139,6 @@ const symbolForExternalMemoryHandle = "__rolldown_external_memory_handle__";
|
|
|
142
139
|
function freeExternalMemory(handle, keepDataAlive = false) {
|
|
143
140
|
return handle[symbolForExternalMemoryHandle](keepDataAlive);
|
|
144
141
|
}
|
|
145
|
-
|
|
146
142
|
//#endregion
|
|
147
143
|
//#region src/api/experimental.ts
|
|
148
144
|
/**
|
|
@@ -183,25 +179,22 @@ const scan = async (rawInputOptions, rawOutputOptions = {}) => {
|
|
|
183
179
|
}
|
|
184
180
|
return cleanupPromise;
|
|
185
181
|
};
|
|
186
|
-
|
|
187
182
|
//#endregion
|
|
188
183
|
//#region src/plugin/parallel-plugin.ts
|
|
189
184
|
function defineParallelPlugin(pluginPath) {
|
|
190
185
|
throw new Error("`defineParallelPlugin` is not supported in browser build");
|
|
191
186
|
}
|
|
192
|
-
|
|
193
187
|
//#endregion
|
|
194
188
|
//#region src/builtin-plugin/alias-plugin.ts
|
|
195
189
|
function viteAliasPlugin(config) {
|
|
196
190
|
return new BuiltinPlugin("builtin:vite-alias", config);
|
|
197
191
|
}
|
|
198
|
-
|
|
199
192
|
//#endregion
|
|
200
193
|
//#region src/builtin-plugin/bundle-analyzer-plugin.ts
|
|
201
194
|
/**
|
|
202
195
|
* A plugin that analyzes bundle composition and generates detailed reports.
|
|
203
196
|
*
|
|
204
|
-
* The plugin outputs a
|
|
197
|
+
* The plugin outputs a file containing detailed information about:
|
|
205
198
|
* - All chunks and their relationships
|
|
206
199
|
* - Modules bundled in each chunk
|
|
207
200
|
* - Import dependencies between chunks
|
|
@@ -231,11 +224,24 @@ function viteAliasPlugin(config) {
|
|
|
231
224
|
* ]
|
|
232
225
|
* }
|
|
233
226
|
* ```
|
|
227
|
+
*
|
|
228
|
+
* @example
|
|
229
|
+
* **LLM-friendly markdown output**
|
|
230
|
+
* ```js
|
|
231
|
+
* import { chunkVisualizePlugin } from 'rolldown/experimental';
|
|
232
|
+
*
|
|
233
|
+
* export default {
|
|
234
|
+
* plugins: [
|
|
235
|
+
* chunkVisualizePlugin({
|
|
236
|
+
* format: 'md'
|
|
237
|
+
* })
|
|
238
|
+
* ]
|
|
239
|
+
* }
|
|
240
|
+
* ```
|
|
234
241
|
*/
|
|
235
242
|
function bundleAnalyzerPlugin(config) {
|
|
236
243
|
return new BuiltinPlugin("builtin:bundle-analyzer", config);
|
|
237
244
|
}
|
|
238
|
-
|
|
239
245
|
//#endregion
|
|
240
246
|
//#region src/builtin-plugin/transform-plugin.ts
|
|
241
247
|
function viteTransformPlugin(config) {
|
|
@@ -248,13 +254,11 @@ function viteTransformPlugin(config) {
|
|
|
248
254
|
yarnPnp: typeof process === "object" && !!process.versions?.pnp
|
|
249
255
|
});
|
|
250
256
|
}
|
|
251
|
-
|
|
252
257
|
//#endregion
|
|
253
258
|
//#region src/builtin-plugin/vite-manifest-plugin.ts
|
|
254
259
|
function viteManifestPlugin(config) {
|
|
255
260
|
return new BuiltinPlugin("builtin:vite-manifest", config);
|
|
256
261
|
}
|
|
257
|
-
|
|
258
262
|
//#endregion
|
|
259
263
|
//#region src/experimental-index.ts
|
|
260
264
|
/**
|
|
@@ -302,6 +306,5 @@ const transform = transform$1;
|
|
|
302
306
|
const transformSync = transformSync$1;
|
|
303
307
|
/** @deprecated Use from `rolldown/utils` instead. */
|
|
304
308
|
const TsconfigCache = TsconfigCache$1;
|
|
305
|
-
|
|
306
309
|
//#endregion
|
|
307
|
-
export { BindingRebuildStrategy, DevEngine, ResolverFactory, TsconfigCache, bundleAnalyzerPlugin,
|
|
310
|
+
export { BindingRebuildStrategy, DevEngine, ResolverFactory, TsconfigCache, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, parse, parseSync, resolveTsconfig, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWebWorkerPostPlugin };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
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";
|
|
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";
|
|
5
5
|
import { BindingBundleAnalyzerPluginConfig, BindingViteManifestPluginConfig, BindingViteTransformPluginConfig } from "../binding.cjs";
|
|
6
6
|
import { BindingBundleState, BindingClientHmrUpdate as BindingClientHmrUpdate$1 } from "../../binding.cjs";
|
|
7
|
-
import { BindingClientHmrUpdate, BindingRebuildStrategy, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions as ResolveOptions, ResolveResult, ResolverFactory,
|
|
7
|
+
import { BindingClientHmrUpdate, BindingRebuildStrategy, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions as ResolveOptions, ResolveResult, ResolverFactory, isolatedDeclaration, isolatedDeclarationSync, moduleRunnerTransform, resolveTsconfig } from "./binding.cjs";
|
|
8
8
|
|
|
9
9
|
//#region src/api/dev/dev-options.d.ts
|
|
10
10
|
type DevOnHmrUpdates = (result: Error | {
|
|
@@ -127,7 +127,7 @@ declare function viteAliasPlugin(config: ViteAliasPluginConfig): BuiltinPlugin;
|
|
|
127
127
|
/**
|
|
128
128
|
* A plugin that analyzes bundle composition and generates detailed reports.
|
|
129
129
|
*
|
|
130
|
-
* The plugin outputs a
|
|
130
|
+
* The plugin outputs a file containing detailed information about:
|
|
131
131
|
* - All chunks and their relationships
|
|
132
132
|
* - Modules bundled in each chunk
|
|
133
133
|
* - Import dependencies between chunks
|
|
@@ -157,6 +157,20 @@ declare function viteAliasPlugin(config: ViteAliasPluginConfig): BuiltinPlugin;
|
|
|
157
157
|
* ]
|
|
158
158
|
* }
|
|
159
159
|
* ```
|
|
160
|
+
*
|
|
161
|
+
* @example
|
|
162
|
+
* **LLM-friendly markdown output**
|
|
163
|
+
* ```js
|
|
164
|
+
* import { chunkVisualizePlugin } from 'rolldown/experimental';
|
|
165
|
+
*
|
|
166
|
+
* export default {
|
|
167
|
+
* plugins: [
|
|
168
|
+
* chunkVisualizePlugin({
|
|
169
|
+
* format: 'md'
|
|
170
|
+
* })
|
|
171
|
+
* ]
|
|
172
|
+
* }
|
|
173
|
+
* ```
|
|
160
174
|
*/
|
|
161
175
|
declare function bundleAnalyzerPlugin(config?: BindingBundleAnalyzerPluginConfig): BuiltinPlugin;
|
|
162
176
|
//#endregion
|
|
@@ -239,4 +253,4 @@ type TsconfigRawOptions = TsconfigRawOptions$1;
|
|
|
239
253
|
/** @deprecated Use from `rolldown/utils` instead. */
|
|
240
254
|
type TsconfigCompilerOptions = TsconfigCompilerOptions$1;
|
|
241
255
|
//#endregion
|
|
242
|
-
export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, MinifyOptions, MinifyResult, ParseResult, ParserOptions, type ResolveOptions, type ResolveResult, ResolverFactory, TransformOptions, TransformResult, TsconfigCache, TsconfigCompilerOptions, TsconfigRawOptions, bundleAnalyzerPlugin,
|
|
256
|
+
export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, MinifyOptions, MinifyResult, ParseResult, ParserOptions, type ResolveOptions, type ResolveResult, ResolverFactory, TransformOptions, TransformResult, TsconfigCache, TsconfigCompilerOptions, TsconfigRawOptions, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, parse, parseSync, resolveTsconfig, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWebWorkerPostPlugin };
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-
|
|
2
|
-
import { a as transformToRollupOutput } from "./shared/bindingify-input-options-
|
|
3
|
-
import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-
|
|
4
|
-
import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-
|
|
5
|
-
import { n as parseSync$2, t as parse$2 } from "./shared/parse-
|
|
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-
|
|
7
|
-
import { a as minifySync$2, i as minify$2, n as transform$1, r as transformSync$1, t as TsconfigCache$1 } from "./shared/transform-
|
|
8
|
-
import { BindingBundler, BindingDevEngine, BindingRebuildStrategy, BindingRebuildStrategy as BindingRebuildStrategy$1, ResolverFactory,
|
|
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";
|
|
4
|
+
import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-CQ6njWsV.mjs";
|
|
5
|
+
import { n as parseSync$2, t as parse$2 } from "./shared/parse-DDUnGYGU.mjs";
|
|
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";
|
|
7
|
+
import { a as minifySync$2, i as minify$2, n as transform$1, r as transformSync$1, t as TsconfigCache$1 } from "./shared/transform-B_n5An0U.mjs";
|
|
8
|
+
import { BindingBundler, BindingDevEngine, BindingRebuildStrategy, BindingRebuildStrategy as BindingRebuildStrategy$1, ResolverFactory, isolatedDeclaration, isolatedDeclarationSync, moduleRunnerTransform, resolveTsconfig, shutdownAsyncRuntime, startAsyncRuntime } from "./rolldown-binding.wasi.cjs";
|
|
9
9
|
import { pathToFileURL } from "node:url";
|
|
10
|
-
|
|
11
10
|
//#region src/api/dev/dev-engine.ts
|
|
12
11
|
var DevEngine = class DevEngine {
|
|
13
12
|
#inner;
|
|
@@ -99,11 +98,9 @@ var DevEngine = class DevEngine {
|
|
|
99
98
|
return this.#inner.compileEntry(moduleId, clientId);
|
|
100
99
|
}
|
|
101
100
|
};
|
|
102
|
-
|
|
103
101
|
//#endregion
|
|
104
102
|
//#region src/api/dev/index.ts
|
|
105
103
|
const dev = (...args) => DevEngine.create(...args);
|
|
106
|
-
|
|
107
104
|
//#endregion
|
|
108
105
|
//#region src/types/external-memory-handle.ts
|
|
109
106
|
const symbolForExternalMemoryHandle = "__rolldown_external_memory_handle__";
|
|
@@ -144,7 +141,6 @@ const symbolForExternalMemoryHandle = "__rolldown_external_memory_handle__";
|
|
|
144
141
|
function freeExternalMemory(handle, keepDataAlive = false) {
|
|
145
142
|
return handle[symbolForExternalMemoryHandle](keepDataAlive);
|
|
146
143
|
}
|
|
147
|
-
|
|
148
144
|
//#endregion
|
|
149
145
|
//#region src/api/experimental.ts
|
|
150
146
|
/**
|
|
@@ -185,7 +181,6 @@ const scan = async (rawInputOptions, rawOutputOptions = {}) => {
|
|
|
185
181
|
}
|
|
186
182
|
return cleanupPromise;
|
|
187
183
|
};
|
|
188
|
-
|
|
189
184
|
//#endregion
|
|
190
185
|
//#region src/plugin/parallel-plugin.ts
|
|
191
186
|
function defineParallelPlugin(pluginPath) {
|
|
@@ -196,19 +191,17 @@ function defineParallelPlugin(pluginPath) {
|
|
|
196
191
|
} };
|
|
197
192
|
};
|
|
198
193
|
}
|
|
199
|
-
|
|
200
194
|
//#endregion
|
|
201
195
|
//#region src/builtin-plugin/alias-plugin.ts
|
|
202
196
|
function viteAliasPlugin(config) {
|
|
203
197
|
return new BuiltinPlugin("builtin:vite-alias", config);
|
|
204
198
|
}
|
|
205
|
-
|
|
206
199
|
//#endregion
|
|
207
200
|
//#region src/builtin-plugin/bundle-analyzer-plugin.ts
|
|
208
201
|
/**
|
|
209
202
|
* A plugin that analyzes bundle composition and generates detailed reports.
|
|
210
203
|
*
|
|
211
|
-
* The plugin outputs a
|
|
204
|
+
* The plugin outputs a file containing detailed information about:
|
|
212
205
|
* - All chunks and their relationships
|
|
213
206
|
* - Modules bundled in each chunk
|
|
214
207
|
* - Import dependencies between chunks
|
|
@@ -238,11 +231,24 @@ function viteAliasPlugin(config) {
|
|
|
238
231
|
* ]
|
|
239
232
|
* }
|
|
240
233
|
* ```
|
|
234
|
+
*
|
|
235
|
+
* @example
|
|
236
|
+
* **LLM-friendly markdown output**
|
|
237
|
+
* ```js
|
|
238
|
+
* import { chunkVisualizePlugin } from 'rolldown/experimental';
|
|
239
|
+
*
|
|
240
|
+
* export default {
|
|
241
|
+
* plugins: [
|
|
242
|
+
* chunkVisualizePlugin({
|
|
243
|
+
* format: 'md'
|
|
244
|
+
* })
|
|
245
|
+
* ]
|
|
246
|
+
* }
|
|
247
|
+
* ```
|
|
241
248
|
*/
|
|
242
249
|
function bundleAnalyzerPlugin(config) {
|
|
243
250
|
return new BuiltinPlugin("builtin:bundle-analyzer", config);
|
|
244
251
|
}
|
|
245
|
-
|
|
246
252
|
//#endregion
|
|
247
253
|
//#region src/builtin-plugin/transform-plugin.ts
|
|
248
254
|
function viteTransformPlugin(config) {
|
|
@@ -255,13 +261,11 @@ function viteTransformPlugin(config) {
|
|
|
255
261
|
yarnPnp: typeof process === "object" && !!process.versions?.pnp
|
|
256
262
|
});
|
|
257
263
|
}
|
|
258
|
-
|
|
259
264
|
//#endregion
|
|
260
265
|
//#region src/builtin-plugin/vite-manifest-plugin.ts
|
|
261
266
|
function viteManifestPlugin(config) {
|
|
262
267
|
return new BuiltinPlugin("builtin:vite-manifest", config);
|
|
263
268
|
}
|
|
264
|
-
|
|
265
269
|
//#endregion
|
|
266
270
|
//#region src/experimental-index.ts
|
|
267
271
|
/**
|
|
@@ -306,6 +310,5 @@ const transform = transform$1;
|
|
|
306
310
|
const transformSync = transformSync$1;
|
|
307
311
|
/** @deprecated Use from `rolldown/utils` instead. */
|
|
308
312
|
const TsconfigCache = TsconfigCache$1;
|
|
309
|
-
|
|
310
313
|
//#endregion
|
|
311
|
-
export { BindingRebuildStrategy, DevEngine, ResolverFactory, TsconfigCache, bundleAnalyzerPlugin,
|
|
314
|
+
export { BindingRebuildStrategy, DevEngine, ResolverFactory, TsconfigCache, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, parse, parseSync, resolveTsconfig, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWebWorkerPostPlugin };
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as
|
|
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";
|
|
2
2
|
|
|
3
3
|
//#region ../pluginutils/dist/filter/filter-vite-plugins.d.ts
|
|
4
4
|
/**
|
package/dist/filter-index.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { a as id, c as interpreter, d as not, f as or, g as isPromiseLike, h as arraify, i as exprInterpreter, l as interpreterImpl, m as query, n as code, o as importerId, p as queries, r as exclude, s as include, t as and, u as moduleType } from "./shared/composable-filters-
|
|
2
|
-
|
|
1
|
+
import { a as id, c as interpreter, d as not, f as or, g as isPromiseLike, h as arraify, i as exprInterpreter, l as interpreterImpl, m as query, n as code, o as importerId, p as queries, r as exclude, s as include, t as and, u as moduleType } from "./shared/composable-filters-B2ByPP8y.mjs";
|
|
3
2
|
//#region ../pluginutils/dist/filter/filter-vite-plugins.js
|
|
4
3
|
/**
|
|
5
4
|
* Filters out Vite plugins that have `apply: 'serve'` set.
|
|
@@ -55,7 +54,6 @@ function filterVitePlugins(plugins) {
|
|
|
55
54
|
}
|
|
56
55
|
return result;
|
|
57
56
|
}
|
|
58
|
-
|
|
59
57
|
//#endregion
|
|
60
58
|
//#region ../pluginutils/dist/filter/simple-filters.js
|
|
61
59
|
/**
|
|
@@ -119,7 +117,6 @@ function makeIdFilterToMatchWithQuery(input) {
|
|
|
119
117
|
function makeRegexIdFilterToMatchWithQuery(input) {
|
|
120
118
|
return new RegExp(input.source.replace(/(?<!\\)\$/g, "(?:\\?.*)?$"), input.flags);
|
|
121
119
|
}
|
|
122
|
-
|
|
123
120
|
//#endregion
|
|
124
121
|
//#region src/plugin/with-filter.ts
|
|
125
122
|
function withFilterImpl(pluginOption, filterObjectList) {
|
|
@@ -182,6 +179,5 @@ function findMatchedFilterObject(pluginName, overrideFilterObjectList) {
|
|
|
182
179
|
}
|
|
183
180
|
return -1;
|
|
184
181
|
}
|
|
185
|
-
|
|
186
182
|
//#endregion
|
|
187
|
-
export { and, code, exactRegex, exclude, exprInterpreter, filterVitePlugins, id, importerId, include, interpreter, interpreterImpl, makeIdFiltersToMatchWithQuery, moduleType, not, or, prefixRegex, queries, query, withFilter };
|
|
183
|
+
export { and, code, exactRegex, exclude, exprInterpreter, filterVitePlugins, id, importerId, include, interpreter, interpreterImpl, makeIdFiltersToMatchWithQuery, moduleType, not, or, prefixRegex, queries, query, withFilter };
|
package/dist/get-log-filter.mjs
CHANGED
package/dist/index.browser.mjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { d as
|
|
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-
|
|
3
|
-
import { t as aggregateBindingErrorsIntoJsError } from "./error-
|
|
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";
|
|
3
|
+
import { t as aggregateBindingErrorsIntoJsError } from "./error-DkAP_6fk.js";
|
|
4
4
|
import { BindingMagicString, BindingWatcher, shutdownAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
|
|
5
|
-
|
|
6
5
|
//#region src/api/rolldown/index.ts
|
|
7
6
|
/**
|
|
8
7
|
* The API compatible with Rollup's `rollup` function.
|
|
@@ -40,7 +39,6 @@ const rolldown = async (input) => {
|
|
|
40
39
|
validateOption("input", input);
|
|
41
40
|
return new RolldownBuild(await PluginDriver.callOptionsHook(input));
|
|
42
41
|
};
|
|
43
|
-
|
|
44
42
|
//#endregion
|
|
45
43
|
//#region src/api/build.ts
|
|
46
44
|
/**
|
|
@@ -75,15 +73,10 @@ async function build(options) {
|
|
|
75
73
|
}
|
|
76
74
|
}
|
|
77
75
|
}
|
|
78
|
-
|
|
79
76
|
//#endregion
|
|
80
77
|
//#region src/api/watch/watch-emitter.ts
|
|
81
78
|
var WatcherEmitter = class {
|
|
82
79
|
listeners = /* @__PURE__ */ new Map();
|
|
83
|
-
timer;
|
|
84
|
-
constructor() {
|
|
85
|
-
this.timer = setInterval(() => {}, 1e9);
|
|
86
|
-
}
|
|
87
80
|
on(event, listener) {
|
|
88
81
|
const listeners = this.listeners.get(event);
|
|
89
82
|
if (listeners) listeners.push(listener);
|
|
@@ -99,58 +92,55 @@ var WatcherEmitter = class {
|
|
|
99
92
|
return this;
|
|
100
93
|
}
|
|
101
94
|
clear(event) {
|
|
102
|
-
|
|
95
|
+
this.listeners.delete(event);
|
|
103
96
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
for (const listener of listeners) await listener();
|
|
110
|
-
break;
|
|
111
|
-
case "event":
|
|
112
|
-
for (const listener of listeners) {
|
|
113
|
-
const code = event.bundleEventKind();
|
|
114
|
-
switch (code) {
|
|
115
|
-
case "BUNDLE_END":
|
|
116
|
-
const { duration, output, result } = event.bundleEndData();
|
|
117
|
-
await listener({
|
|
118
|
-
code: "BUNDLE_END",
|
|
119
|
-
duration,
|
|
120
|
-
output: [output],
|
|
121
|
-
result
|
|
122
|
-
});
|
|
123
|
-
break;
|
|
124
|
-
case "ERROR":
|
|
125
|
-
const data = event.bundleErrorData();
|
|
126
|
-
await listener({
|
|
127
|
-
code: "ERROR",
|
|
128
|
-
error: aggregateBindingErrorsIntoJsError(data.error),
|
|
129
|
-
result: data.result
|
|
130
|
-
});
|
|
131
|
-
break;
|
|
132
|
-
default:
|
|
133
|
-
await listener({ code });
|
|
134
|
-
break;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
break;
|
|
138
|
-
case "change":
|
|
139
|
-
for (const listener of listeners) {
|
|
140
|
-
const { path, kind } = event.watchChangeData();
|
|
141
|
-
await listener(path, { event: kind });
|
|
142
|
-
}
|
|
143
|
-
break;
|
|
144
|
-
default: throw new Error(`Unknown event: ${event}`);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
async close() {
|
|
148
|
-
clearInterval(this.timer);
|
|
97
|
+
/** Async emit — sequential dispatch so side effects from earlier handlers
|
|
98
|
+
* (e.g. `event.result.close()` triggering `closeBundle`) are visible to later handlers. */
|
|
99
|
+
async emit(event, ...args) {
|
|
100
|
+
const handlers = this.listeners.get(event);
|
|
101
|
+
if (handlers?.length) for (const h of handlers) await h(...args);
|
|
149
102
|
}
|
|
103
|
+
async close() {}
|
|
150
104
|
};
|
|
151
|
-
|
|
152
105
|
//#endregion
|
|
153
106
|
//#region src/api/watch/watcher.ts
|
|
107
|
+
function createEventCallback(emitter) {
|
|
108
|
+
return async (event) => {
|
|
109
|
+
switch (event.eventKind()) {
|
|
110
|
+
case "event": {
|
|
111
|
+
const code = event.bundleEventKind();
|
|
112
|
+
if (code === "BUNDLE_END") {
|
|
113
|
+
const { duration, output, result } = event.bundleEndData();
|
|
114
|
+
await emitter.emit("event", {
|
|
115
|
+
code: "BUNDLE_END",
|
|
116
|
+
duration,
|
|
117
|
+
output: [output],
|
|
118
|
+
result
|
|
119
|
+
});
|
|
120
|
+
} else if (code === "ERROR") {
|
|
121
|
+
const data = event.bundleErrorData();
|
|
122
|
+
await emitter.emit("event", {
|
|
123
|
+
code: "ERROR",
|
|
124
|
+
error: aggregateBindingErrorsIntoJsError(data.error),
|
|
125
|
+
result: data.result
|
|
126
|
+
});
|
|
127
|
+
} else await emitter.emit("event", { code });
|
|
128
|
+
break;
|
|
129
|
+
}
|
|
130
|
+
case "change": {
|
|
131
|
+
const { path, kind } = event.watchChangeData();
|
|
132
|
+
await emitter.emit("change", path, { event: kind });
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
case "restart":
|
|
136
|
+
await emitter.emit("restart");
|
|
137
|
+
break;
|
|
138
|
+
case "close":
|
|
139
|
+
await emitter.emit("close");
|
|
140
|
+
break;
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
}
|
|
154
144
|
var Watcher = class {
|
|
155
145
|
closed;
|
|
156
146
|
inner;
|
|
@@ -166,6 +156,7 @@ var Watcher = class {
|
|
|
166
156
|
originClose();
|
|
167
157
|
};
|
|
168
158
|
this.stopWorkers = stopWorkers;
|
|
159
|
+
process.nextTick(() => this.run());
|
|
169
160
|
}
|
|
170
161
|
async close() {
|
|
171
162
|
if (this.closed) return;
|
|
@@ -174,8 +165,9 @@ var Watcher = class {
|
|
|
174
165
|
await this.inner.close();
|
|
175
166
|
shutdownAsyncRuntime();
|
|
176
167
|
}
|
|
177
|
-
|
|
178
|
-
|
|
168
|
+
async run() {
|
|
169
|
+
await this.inner.run();
|
|
170
|
+
this.inner.waitForClose();
|
|
179
171
|
}
|
|
180
172
|
};
|
|
181
173
|
async function createWatcher(emitter, input) {
|
|
@@ -183,20 +175,24 @@ async function createWatcher(emitter, input) {
|
|
|
183
175
|
const bundlerOptions = await Promise.all(options.map((option) => arraify(option.output || {}).map(async (output) => {
|
|
184
176
|
return createBundlerOptions(await PluginDriver.callOptionsHook(option, true), output, true);
|
|
185
177
|
})).flat());
|
|
186
|
-
|
|
187
|
-
|
|
178
|
+
warnMultiplePollingOptions(bundlerOptions);
|
|
179
|
+
const callback = createEventCallback(emitter);
|
|
180
|
+
new Watcher(emitter, new BindingWatcher(bundlerOptions.map((option) => option.bundlerOptions), callback), bundlerOptions.map((option) => option.stopWorkers));
|
|
188
181
|
}
|
|
189
|
-
function
|
|
190
|
-
let
|
|
191
|
-
for (const option of bundlerOptions)
|
|
192
|
-
const
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
182
|
+
function warnMultiplePollingOptions(bundlerOptions) {
|
|
183
|
+
let found = false;
|
|
184
|
+
for (const option of bundlerOptions) {
|
|
185
|
+
const watch = option.inputOptions.watch;
|
|
186
|
+
const watcher = watch && typeof watch === "object" ? watch.watcher ?? watch.notify : void 0;
|
|
187
|
+
if (watcher && (watcher.usePolling != null || watcher.pollInterval != null)) {
|
|
188
|
+
if (found) {
|
|
189
|
+
option.onLog(LOG_LEVEL_WARN, logMultipleWatcherOption());
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
found = true;
|
|
193
|
+
}
|
|
197
194
|
}
|
|
198
195
|
}
|
|
199
|
-
|
|
200
196
|
//#endregion
|
|
201
197
|
//#region src/api/watch/index.ts
|
|
202
198
|
/**
|
|
@@ -233,12 +229,10 @@ function watch(input) {
|
|
|
233
229
|
createWatcher(emitter, input);
|
|
234
230
|
return emitter;
|
|
235
231
|
}
|
|
236
|
-
|
|
237
232
|
//#endregion
|
|
238
233
|
//#region src/utils/define-config.ts
|
|
239
234
|
function defineConfig(config) {
|
|
240
235
|
return config;
|
|
241
236
|
}
|
|
242
|
-
|
|
243
237
|
//#endregion
|
|
244
|
-
export { BindingMagicString, RUNTIME_MODULE_ID, VERSION, build, defineConfig, rolldown, watch };
|
|
238
|
+
export { BindingMagicString, RUNTIME_MODULE_ID, 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
|
|
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";
|
|
3
3
|
import { o as PartialNull } from "./shared/utils-6wxe_LMG.mjs";
|
|
4
|
-
export { AddonFunction, AdvancedChunksGroup, AdvancedChunksOptions, AsyncPluginHooks, BindingMagicString, BufferEncoding, BuildOptions, 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, WatcherOptions, build, defineConfig, rolldown, watch };
|
|
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 };
|