@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.
- package/dist/cli.mjs +11 -7
- package/dist/config.d.mts +3 -3
- package/dist/config.mjs +9 -5
- package/dist/constructors-DW3R_Jog.js +68 -0
- package/dist/experimental-index.browser.mjs +19 -13
- package/dist/experimental-index.d.mts +63 -16
- package/dist/experimental-index.mjs +23 -15
- package/dist/filter-index.d.mts +3 -3
- package/dist/filter-index.mjs +2 -1
- package/dist/index.browser.mjs +161 -2
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +36 -4
- package/dist/normalize-string-or-regex-BcbPUrYo.js +830 -0
- package/dist/parallel-plugin-worker.mjs +5 -4
- package/dist/parallel-plugin.d.mts +3 -3
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/plugins-index.browser.mjs +2 -2
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +3 -2
- package/dist/rolldown-binding.wasi-browser.js +5 -2
- package/dist/rolldown-binding.wasi.cjs +5 -2
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/{src-dUoCuQap.js → rolldown-build-CUYnBV3u.js} +44 -754
- package/dist/shared/{binding-BTup3pHG.d.mts → binding-BKL2JHoJ.d.mts} +173 -94
- package/dist/shared/bindingify-input-options-D4i1DYzt.mjs +1568 -0
- package/dist/shared/{composable-filters-CBpK2Fbc.mjs → composable-filters-DZ5ToxRJ.mjs} +1 -22
- package/dist/shared/constructors-BvaMwihu.d.mts +32 -0
- package/dist/shared/constructors-XFp0WhK3.mjs +68 -0
- package/dist/shared/{define-config-DiSv-kgF.d.mts → define-config-Buedmg9e.d.mts} +31 -57
- package/dist/shared/define-config-DfeZGBEt.mjs +7 -0
- package/dist/shared/{load-config-BqnLKlUM.mjs → load-config-C9CjEv2m.mjs} +1 -1
- package/dist/shared/misc-5GYLGQ20.mjs +22 -0
- package/dist/shared/normalize-string-or-regex-D1mB67Iy.mjs +629 -0
- package/dist/shared/{parse-ast-index-DtI4JSVR.mjs → parse-ast-index-BSDTTjWT.mjs} +20 -6
- package/dist/shared/rolldown-0ID0Q4xL.mjs +10 -0
- package/dist/shared/rolldown-build-BWJGpMD0.mjs +2121 -0
- package/dist/shared/utils-DKydZ4iH.d.mts +62 -0
- package/dist/shared/watch-CwnSQOS4.mjs +338 -0
- package/package.json +5 -1
- package/dist/constructors-EhfoQfqh.js +0 -68
- package/dist/normalize-string-or-regex-d47jXr3r.js +0 -231
- package/dist/shared/constructors-B7IHT8j4.d.mts +0 -32
- package/dist/shared/constructors-DcEzB0nc.mjs +0 -68
- package/dist/shared/normalize-string-or-regex-CbDij6KB.mjs +0 -46
- package/dist/shared/src-D0x2a_iO.mjs +0 -4597
- package/dist/shared/utils-BKVJO2vQ.d.mts +0 -18
- /package/dist/shared/{prompt-CjFmA1DF.mjs → prompt-pmGBC3ws.mjs} +0 -0
package/dist/cli.mjs
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as onExit, t as watch } from "./shared/watch-CwnSQOS4.mjs";
|
|
2
2
|
import "./shared/logs-CPsamAuj.mjs";
|
|
3
|
-
import "./shared/
|
|
4
|
-
import {
|
|
5
|
-
import "./shared/
|
|
6
|
-
import
|
|
3
|
+
import { t as arraify } from "./shared/misc-5GYLGQ20.mjs";
|
|
4
|
+
import { v as description, y as version } from "./shared/normalize-string-or-regex-D1mB67Iy.mjs";
|
|
5
|
+
import { a as getOutputCliKeys, c as styleText$1, i as getInputCliKeys, o as validateCliOptions, r as getCliSchemaInfo } from "./shared/rolldown-build-BWJGpMD0.mjs";
|
|
6
|
+
import "./shared/bindingify-input-options-D4i1DYzt.mjs";
|
|
7
|
+
import "./shared/parse-ast-index-BSDTTjWT.mjs";
|
|
8
|
+
import "./shared/composable-filters-DZ5ToxRJ.mjs";
|
|
9
|
+
import { t as rolldown } from "./shared/rolldown-0ID0Q4xL.mjs";
|
|
10
|
+
import { t as loadConfig } from "./shared/load-config-C9CjEv2m.mjs";
|
|
7
11
|
import path, { sep } from "node:path";
|
|
8
12
|
import { formatWithOptions, parseArgs } from "node:util";
|
|
9
13
|
import process$1 from "node:process";
|
|
@@ -948,7 +952,7 @@ function createConsola(options$1 = {}) {
|
|
|
948
952
|
defaults: { level },
|
|
949
953
|
stdout: process.stdout,
|
|
950
954
|
stderr: process.stderr,
|
|
951
|
-
prompt: (...args) => import("./shared/prompt-
|
|
955
|
+
prompt: (...args) => import("./shared/prompt-pmGBC3ws.mjs").then((m) => m.prompt(...args)),
|
|
952
956
|
reporters: options$1.reporters || [options$1.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
|
|
953
957
|
...options$1
|
|
954
958
|
});
|
|
@@ -1235,7 +1239,7 @@ function getClearScreenFunction(options$1) {
|
|
|
1235
1239
|
}
|
|
1236
1240
|
|
|
1237
1241
|
//#endregion
|
|
1238
|
-
//#region \0@oxc-project+runtime@0.
|
|
1242
|
+
//#region \0@oxc-project+runtime@0.99.0/helpers/usingCtx.js
|
|
1239
1243
|
function _usingCtx() {
|
|
1240
1244
|
var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
|
|
1241
1245
|
var n$2 = Error();
|
package/dist/config.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "./shared/binding-
|
|
3
|
-
import "./shared/
|
|
1
|
+
import "./shared/utils-DKydZ4iH.mjs";
|
|
2
|
+
import "./shared/binding-BKL2JHoJ.mjs";
|
|
3
|
+
import { n as ConfigExport, t as defineConfig } from "./shared/define-config-Buedmg9e.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/utils/load-config.d.ts
|
|
6
6
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
package/dist/config.mjs
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { C as version, r as defineConfig } from "./shared/src-D0x2a_iO.mjs";
|
|
2
1
|
import "./shared/logs-CPsamAuj.mjs";
|
|
3
|
-
import "./shared/
|
|
4
|
-
import "./shared/
|
|
5
|
-
import "./shared/
|
|
6
|
-
import
|
|
2
|
+
import "./shared/misc-5GYLGQ20.mjs";
|
|
3
|
+
import { y as version } from "./shared/normalize-string-or-regex-D1mB67Iy.mjs";
|
|
4
|
+
import "./shared/rolldown-build-BWJGpMD0.mjs";
|
|
5
|
+
import "./shared/bindingify-input-options-D4i1DYzt.mjs";
|
|
6
|
+
import "./shared/parse-ast-index-BSDTTjWT.mjs";
|
|
7
|
+
import "./shared/composable-filters-DZ5ToxRJ.mjs";
|
|
8
|
+
import "./shared/rolldown-0ID0Q4xL.mjs";
|
|
9
|
+
import { t as defineConfig } from "./shared/define-config-DfeZGBEt.mjs";
|
|
10
|
+
import { t as loadConfig } from "./shared/load-config-C9CjEv2m.mjs";
|
|
7
11
|
|
|
8
12
|
//#region src/config.ts
|
|
9
13
|
const VERSION = version;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-BcbPUrYo.js";
|
|
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,7 +1,7 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { n as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { BindingBundler, BindingDevEngine, BindingRebuildStrategy, BindingRebuildStrategy as BindingRebuildStrategy$1, ResolverFactory, isolatedDeclaration,
|
|
1
|
+
import { c as transformToRollupOutput, l as bindingifySourcemap, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-BcbPUrYo.js";
|
|
2
|
+
import { a as unwrapBindingResult, c as validateOption, i as normalizeBindingResult, l as PluginDriver, n as createBundlerOptions, o as parse, s as parseSync, t as RolldownBuild } from "./rolldown-build-CUYnBV3u.js";
|
|
3
|
+
import { _ as viteWasmHelperPlugin, a as viteCSSPostPlugin, c as viteImportGlobPlugin, d as viteManifestPlugin, f as viteModulePreloadPolyfillPlugin, g as viteWasmFallbackPlugin, h as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteJsonPlugin, m as viteReporterPlugin, n as isolatedDeclarationPlugin, o as viteDynamicImportVarsPlugin, p as viteReactRefreshWrapperPlugin, r as viteAssetImportMetaUrlPlugin, s as viteHtmlInlineProxyPlugin, u as viteLoadFallbackPlugin, v as viteWebWorkerPostPlugin } from "./constructors-DW3R_Jog.js";
|
|
4
|
+
import { BindingBundler, BindingDevEngine, BindingRebuildStrategy, BindingRebuildStrategy as BindingRebuildStrategy$1, ResolverFactory, isolatedDeclaration, isolatedDeclarationSync, minify, minifySync, moduleRunnerTransform, shutdownAsyncRuntime, startAsyncRuntime, transform, transformSync } from "./rolldown-binding.wasi-browser.js";
|
|
5
5
|
|
|
6
6
|
//#region src/api/dev/dev-engine.ts
|
|
7
7
|
var DevEngine = class DevEngine {
|
|
@@ -61,8 +61,8 @@ var DevEngine = class DevEngine {
|
|
|
61
61
|
this.#cachedBuildFinishPromise = promise;
|
|
62
62
|
return promise;
|
|
63
63
|
}
|
|
64
|
-
async
|
|
65
|
-
return this.#inner.
|
|
64
|
+
async getBundleState() {
|
|
65
|
+
return this.#inner.getBundleState();
|
|
66
66
|
}
|
|
67
67
|
async ensureLatestBuildOutput() {
|
|
68
68
|
await this.#inner.ensureLatestBuildOutput();
|
|
@@ -175,19 +175,19 @@ function defineParallelPlugin(pluginPath) {
|
|
|
175
175
|
|
|
176
176
|
//#endregion
|
|
177
177
|
//#region src/builtin-plugin/alias-plugin.ts
|
|
178
|
-
function
|
|
179
|
-
return new BuiltinPlugin("builtin:alias", config);
|
|
178
|
+
function viteAliasPlugin(config) {
|
|
179
|
+
return new BuiltinPlugin("builtin:vite-alias", config);
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
//#endregion
|
|
183
183
|
//#region src/builtin-plugin/asset-plugin.ts
|
|
184
|
-
function
|
|
185
|
-
return new BuiltinPlugin("builtin:asset", config);
|
|
184
|
+
function viteAssetPlugin(config) {
|
|
185
|
+
return new BuiltinPlugin("builtin:vite-asset", config);
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
//#endregion
|
|
189
189
|
//#region src/builtin-plugin/transform-plugin.ts
|
|
190
|
-
function
|
|
190
|
+
function viteTransformPlugin(config) {
|
|
191
191
|
if (config) config = {
|
|
192
192
|
...config,
|
|
193
193
|
include: normalizedStringOrRegex(config.include),
|
|
@@ -195,7 +195,7 @@ function transformPlugin(config) {
|
|
|
195
195
|
jsxRefreshInclude: normalizedStringOrRegex(config.jsxRefreshInclude),
|
|
196
196
|
jsxRefreshExclude: normalizedStringOrRegex(config.jsxRefreshExclude)
|
|
197
197
|
};
|
|
198
|
-
return new BuiltinPlugin("builtin:transform", config);
|
|
198
|
+
return new BuiltinPlugin("builtin:vite-transform", config);
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
//#endregion
|
|
@@ -214,4 +214,10 @@ function viteCSSPlugin(config) {
|
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
//#endregion
|
|
217
|
-
|
|
217
|
+
//#region src/builtin-plugin/vite-html-plugin.ts
|
|
218
|
+
function viteHtmlPlugin(config) {
|
|
219
|
+
return new BuiltinPlugin("builtin:vite-html", config);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
//#endregion
|
|
223
|
+
export { BindingRebuildStrategy, DevEngine, ResolverFactory, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, minify, minifySync, moduleRunnerTransform, parse, parseSync, scan, transform, transformSync, viteAliasPlugin, viteAssetImportMetaUrlPlugin, viteAssetPlugin, viteBuildImportAnalysisPlugin, viteCSSPlugin, viteCSSPostPlugin, viteHtmlInlineProxyPlugin, viteHtmlPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWasmHelperPlugin, viteWebWorkerPostPlugin };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { _ as
|
|
1
|
+
import { t as BuiltinPlugin } from "./shared/utils-DKydZ4iH.mjs";
|
|
2
|
+
import { B as ParserOptions, G as TransformResult, H as ResolveResult, I as MinifyOptions, J as minify, K as isolatedDeclaration, L as MinifyResult, N as IsolatedDeclarationsOptions, O as BindingViteTransformPluginConfig, P as IsolatedDeclarationsResult, Q as transformSync, R as NapiResolveOptions, U as ResolverFactory, W as TransformOptions, X as moduleRunnerTransform, Y as minifySync, Z as transform, b as BindingViteHtmlPluginConfig, c as BindingRebuildStrategy, f as BindingUrlResolver, g as BindingViteCssPluginConfig, m as BindingViteAssetPluginConfig, n as BindingBundleState, q as isolatedDeclarationSync, r as BindingClientHmrUpdate, z as ParseResult } from "./shared/binding-BKL2JHoJ.mjs";
|
|
3
|
+
import { Ct as RolldownOutput, H as defineParallelPlugin, M as SourceMapInput, P as OutputBundle, Tt as freeExternalMemory, U as MinimalPluginContext, _t as OutputOptions, bt as OutputChunk, o as InputOptions } from "./shared/define-config-Buedmg9e.mjs";
|
|
4
|
+
import { _ as viteWasmHelperPlugin, a as viteCSSPostPlugin, c as viteImportGlobPlugin, d as viteManifestPlugin, f as viteModulePreloadPolyfillPlugin, g as viteWasmFallbackPlugin, h as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteJsonPlugin, m as viteReporterPlugin, n as isolatedDeclarationPlugin, o as viteDynamicImportVarsPlugin, p as viteReactRefreshWrapperPlugin, r as viteAssetImportMetaUrlPlugin, s as viteHtmlInlineProxyPlugin, u as viteLoadFallbackPlugin, v as viteWebWorkerPostPlugin } from "./shared/constructors-BvaMwihu.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/api/dev/dev-options.d.ts
|
|
7
7
|
type DevOnHmrUpdates = (result: Error | {
|
|
@@ -70,7 +70,7 @@ declare class DevEngine {
|
|
|
70
70
|
private constructor();
|
|
71
71
|
run(): Promise<void>;
|
|
72
72
|
ensureCurrentBuildFinish(): Promise<void>;
|
|
73
|
-
|
|
73
|
+
getBundleState(): Promise<BindingBundleState>;
|
|
74
74
|
ensureLatestBuildOutput(): Promise<void>;
|
|
75
75
|
invalidate(file: string, firstInvalidatedBy?: string): Promise<BindingClientHmrUpdate[]>;
|
|
76
76
|
registerModules(clientId: string, modules: string[]): void;
|
|
@@ -99,28 +99,37 @@ declare const dev: typeof DevEngine.create;
|
|
|
99
99
|
*/
|
|
100
100
|
declare const scan: (rawInputOptions: InputOptions, rawOutputOptions?: {}) => Promise<Promise<void>>;
|
|
101
101
|
//#endregion
|
|
102
|
+
//#region src/utils/parse.d.ts
|
|
103
|
+
/**
|
|
104
|
+
* Parse asynchronously.
|
|
105
|
+
*
|
|
106
|
+
* Note: This function can be slower than `parseSync` due to the overhead of spawning a thread.
|
|
107
|
+
*/
|
|
108
|
+
declare function parse(filename: string, sourceText: string, options?: ParserOptions | null): Promise<ParseResult>;
|
|
109
|
+
/** Parse synchronously. */
|
|
110
|
+
declare function parseSync(filename: string, sourceText: string, options?: ParserOptions | null): ParseResult;
|
|
111
|
+
//#endregion
|
|
102
112
|
//#region src/builtin-plugin/alias-plugin.d.ts
|
|
103
|
-
type
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
entries: AliasPluginAlias[];
|
|
113
|
+
type ViteAliasPluginConfig = {
|
|
114
|
+
entries: {
|
|
115
|
+
find: string | RegExp;
|
|
116
|
+
replacement: string;
|
|
117
|
+
}[];
|
|
109
118
|
};
|
|
110
|
-
declare function
|
|
119
|
+
declare function viteAliasPlugin(config: ViteAliasPluginConfig): BuiltinPlugin;
|
|
111
120
|
//#endregion
|
|
112
121
|
//#region src/builtin-plugin/asset-plugin.d.ts
|
|
113
|
-
declare function
|
|
122
|
+
declare function viteAssetPlugin(config: BindingViteAssetPluginConfig): BuiltinPlugin;
|
|
114
123
|
//#endregion
|
|
115
124
|
//#region src/builtin-plugin/transform-plugin.d.ts
|
|
116
125
|
type TransformPattern = string | RegExp | readonly (RegExp | string)[];
|
|
117
|
-
type TransformPluginConfig = Omit<
|
|
126
|
+
type TransformPluginConfig = Omit<BindingViteTransformPluginConfig, "include" | "exclude" | "jsxRefreshInclude" | "jsxRefreshExclude"> & {
|
|
118
127
|
include?: TransformPattern;
|
|
119
128
|
exclude?: TransformPattern;
|
|
120
129
|
jsxRefreshInclude?: TransformPattern;
|
|
121
130
|
jsxRefreshExclude?: TransformPattern;
|
|
122
131
|
};
|
|
123
|
-
declare function
|
|
132
|
+
declare function viteTransformPlugin(config?: TransformPluginConfig): BuiltinPlugin;
|
|
124
133
|
//#endregion
|
|
125
134
|
//#region src/builtin-plugin/vite-css-plugin.d.ts
|
|
126
135
|
type ViteCssPluginConfig = Omit<BindingViteCssPluginConfig, "compileCSS"> & {
|
|
@@ -133,4 +142,42 @@ type ViteCssPluginConfig = Omit<BindingViteCssPluginConfig, "compileCSS"> & {
|
|
|
133
142
|
};
|
|
134
143
|
declare function viteCSSPlugin(config?: ViteCssPluginConfig): BuiltinPlugin;
|
|
135
144
|
//#endregion
|
|
136
|
-
|
|
145
|
+
//#region src/builtin-plugin/vite-html-plugin.d.ts
|
|
146
|
+
interface HtmlTagDescriptor {
|
|
147
|
+
tag: string;
|
|
148
|
+
/**
|
|
149
|
+
* attribute values will be escaped automatically if needed
|
|
150
|
+
*/
|
|
151
|
+
attrs?: Record<string, string | boolean | undefined>;
|
|
152
|
+
children?: string | HtmlTagDescriptor[];
|
|
153
|
+
/**
|
|
154
|
+
* default: 'head-prepend'
|
|
155
|
+
*/
|
|
156
|
+
injectTo?: "head" | "body" | "head-prepend" | "body-prepend";
|
|
157
|
+
}
|
|
158
|
+
type IndexHtmlTransformResult = string | HtmlTagDescriptor[] | {
|
|
159
|
+
html: string;
|
|
160
|
+
tags: HtmlTagDescriptor[];
|
|
161
|
+
};
|
|
162
|
+
type IndexHtmlTransformHook = (this: MinimalPluginContext, html: string, ctx: IndexHtmlTransformContext) => IndexHtmlTransformResult | void | Promise<IndexHtmlTransformResult | void>;
|
|
163
|
+
interface IndexHtmlTransformContext {
|
|
164
|
+
/**
|
|
165
|
+
* public path when served
|
|
166
|
+
*/
|
|
167
|
+
path: string;
|
|
168
|
+
/**
|
|
169
|
+
* filename on disk
|
|
170
|
+
*/
|
|
171
|
+
filename: string;
|
|
172
|
+
bundle?: OutputBundle;
|
|
173
|
+
chunk?: OutputChunk;
|
|
174
|
+
}
|
|
175
|
+
interface ViteHtmlPluginOptions extends Omit<BindingViteHtmlPluginConfig, "transformIndexHtml"> {
|
|
176
|
+
preHooks: IndexHtmlTransformHook[];
|
|
177
|
+
normalHooks: IndexHtmlTransformHook[];
|
|
178
|
+
postHooks: IndexHtmlTransformHook[];
|
|
179
|
+
applyHtmlTransforms: (html: string, hooks: IndexHtmlTransformHook[], pluginContext: MinimalPluginContext, ctx: IndexHtmlTransformContext) => Promise<string>;
|
|
180
|
+
}
|
|
181
|
+
declare function viteHtmlPlugin(config?: ViteHtmlPluginOptions): BuiltinPlugin;
|
|
182
|
+
//#endregion
|
|
183
|
+
export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, type MinifyOptions, type MinifyResult, type ParseResult, type ParserOptions, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, type TransformOptions, type TransformResult, type ViteHtmlPluginOptions, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, minify, minifySync, moduleRunnerTransform, parse, parseSync, scan, transform, transformSync, viteAliasPlugin, viteAssetImportMetaUrlPlugin, viteAssetPlugin, viteBuildImportAnalysisPlugin, viteCSSPlugin, viteCSSPostPlugin, viteHtmlInlineProxyPlugin, viteHtmlPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWasmHelperPlugin, viteWebWorkerPostPlugin };
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { c as createBundlerOptions, d as normalizeBindingResult, f as unwrapBindingResult, m as bindingifySourcemap, p as transformToRollupOutput, s as RolldownBuild, x as PluginDriver, y as validateOption } from "./shared/src-D0x2a_iO.mjs";
|
|
2
1
|
import "./shared/logs-CPsamAuj.mjs";
|
|
3
|
-
import
|
|
4
|
-
import "./shared/
|
|
5
|
-
import "./shared/
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
2
|
+
import "./shared/misc-5GYLGQ20.mjs";
|
|
3
|
+
import { c as transformToRollupOutput, l as bindingifySourcemap, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-D1mB67Iy.mjs";
|
|
4
|
+
import { l as PluginDriver, n as createBundlerOptions, s as validateOption, t as RolldownBuild } from "./shared/rolldown-build-BWJGpMD0.mjs";
|
|
5
|
+
import { o as normalizeBindingResult, s as unwrapBindingResult } from "./shared/bindingify-input-options-D4i1DYzt.mjs";
|
|
6
|
+
import { i as parseSync, r as parse } from "./shared/parse-ast-index-BSDTTjWT.mjs";
|
|
7
|
+
import "./shared/composable-filters-DZ5ToxRJ.mjs";
|
|
8
|
+
import { _ as viteWasmHelperPlugin, a as viteCSSPostPlugin, c as viteImportGlobPlugin, d as viteManifestPlugin, f as viteModulePreloadPolyfillPlugin, g as viteWasmFallbackPlugin, h as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteJsonPlugin, m as viteReporterPlugin, n as isolatedDeclarationPlugin, o as viteDynamicImportVarsPlugin, p as viteReactRefreshWrapperPlugin, r as viteAssetImportMetaUrlPlugin, s as viteHtmlInlineProxyPlugin, u as viteLoadFallbackPlugin, v as viteWebWorkerPostPlugin } from "./shared/constructors-XFp0WhK3.mjs";
|
|
9
|
+
import { BindingBundler, BindingDevEngine, BindingRebuildStrategy, BindingRebuildStrategy as BindingRebuildStrategy$1, ResolverFactory, isolatedDeclaration, isolatedDeclarationSync, minify, minifySync, moduleRunnerTransform, shutdownAsyncRuntime, startAsyncRuntime, transform, transformSync } from "./rolldown-binding.wasi.cjs";
|
|
8
10
|
import { pathToFileURL } from "node:url";
|
|
9
11
|
|
|
10
12
|
//#region src/api/dev/dev-engine.ts
|
|
@@ -65,8 +67,8 @@ var DevEngine = class DevEngine {
|
|
|
65
67
|
this.#cachedBuildFinishPromise = promise;
|
|
66
68
|
return promise;
|
|
67
69
|
}
|
|
68
|
-
async
|
|
69
|
-
return this.#inner.
|
|
70
|
+
async getBundleState() {
|
|
71
|
+
return this.#inner.getBundleState();
|
|
70
72
|
}
|
|
71
73
|
async ensureLatestBuildOutput() {
|
|
72
74
|
await this.#inner.ensureLatestBuildOutput();
|
|
@@ -184,19 +186,19 @@ function defineParallelPlugin(pluginPath) {
|
|
|
184
186
|
|
|
185
187
|
//#endregion
|
|
186
188
|
//#region src/builtin-plugin/alias-plugin.ts
|
|
187
|
-
function
|
|
188
|
-
return new BuiltinPlugin("builtin:alias", config);
|
|
189
|
+
function viteAliasPlugin(config) {
|
|
190
|
+
return new BuiltinPlugin("builtin:vite-alias", config);
|
|
189
191
|
}
|
|
190
192
|
|
|
191
193
|
//#endregion
|
|
192
194
|
//#region src/builtin-plugin/asset-plugin.ts
|
|
193
|
-
function
|
|
194
|
-
return new BuiltinPlugin("builtin:asset", config);
|
|
195
|
+
function viteAssetPlugin(config) {
|
|
196
|
+
return new BuiltinPlugin("builtin:vite-asset", config);
|
|
195
197
|
}
|
|
196
198
|
|
|
197
199
|
//#endregion
|
|
198
200
|
//#region src/builtin-plugin/transform-plugin.ts
|
|
199
|
-
function
|
|
201
|
+
function viteTransformPlugin(config) {
|
|
200
202
|
if (config) config = {
|
|
201
203
|
...config,
|
|
202
204
|
include: normalizedStringOrRegex(config.include),
|
|
@@ -204,7 +206,7 @@ function transformPlugin(config) {
|
|
|
204
206
|
jsxRefreshInclude: normalizedStringOrRegex(config.jsxRefreshInclude),
|
|
205
207
|
jsxRefreshExclude: normalizedStringOrRegex(config.jsxRefreshExclude)
|
|
206
208
|
};
|
|
207
|
-
return new BuiltinPlugin("builtin:transform", config);
|
|
209
|
+
return new BuiltinPlugin("builtin:vite-transform", config);
|
|
208
210
|
}
|
|
209
211
|
|
|
210
212
|
//#endregion
|
|
@@ -223,4 +225,10 @@ function viteCSSPlugin(config) {
|
|
|
223
225
|
}
|
|
224
226
|
|
|
225
227
|
//#endregion
|
|
226
|
-
|
|
228
|
+
//#region src/builtin-plugin/vite-html-plugin.ts
|
|
229
|
+
function viteHtmlPlugin(config) {
|
|
230
|
+
return new BuiltinPlugin("builtin:vite-html", config);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
//#endregion
|
|
234
|
+
export { BindingRebuildStrategy, DevEngine, ResolverFactory, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, minify, minifySync, moduleRunnerTransform, parse, parseSync, scan, transform, transformSync, viteAliasPlugin, viteAssetImportMetaUrlPlugin, viteAssetPlugin, viteBuildImportAnalysisPlugin, viteCSSPlugin, viteCSSPostPlugin, viteHtmlInlineProxyPlugin, viteHtmlPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWasmHelperPlugin, viteWebWorkerPostPlugin };
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "./shared/binding-
|
|
3
|
-
import "./shared/
|
|
1
|
+
import "./shared/utils-DKydZ4iH.mjs";
|
|
2
|
+
import "./shared/binding-BKL2JHoJ.mjs";
|
|
3
|
+
import { k as withFilter } from "./shared/define-config-Buedmg9e.mjs";
|
|
4
4
|
import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
|
|
5
5
|
export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
|
package/dist/filter-index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as isPromiseLike, t as arraify } from "./shared/misc-5GYLGQ20.mjs";
|
|
2
|
+
import { a as include, c as or, i as id, l as queries, n as code, o as moduleType, r as exclude, s as not, t as and, u as query } from "./shared/composable-filters-DZ5ToxRJ.mjs";
|
|
2
3
|
|
|
3
4
|
//#region src/plugin/with-filter.ts
|
|
4
5
|
function withFilterImpl(pluginOption, filterObjectList) {
|
package/dist/index.browser.mjs
CHANGED
|
@@ -1,4 +1,163 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./
|
|
1
|
+
import { M as logMultiplyNotifyOption, S as LOG_LEVEL_WARN, _ as VERSION, w as arraify } from "./normalize-string-or-regex-BcbPUrYo.js";
|
|
2
|
+
import { c as validateOption, l as PluginDriver, n as createBundlerOptions, r as aggregateBindingErrorsIntoJsError, t as RolldownBuild } from "./rolldown-build-CUYnBV3u.js";
|
|
3
|
+
import { BindingMagicString, BindingWatcher, shutdownAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
|
|
3
4
|
|
|
5
|
+
//#region src/api/rolldown/index.ts
|
|
6
|
+
const rolldown = async (input) => {
|
|
7
|
+
validateOption("input", input);
|
|
8
|
+
return new RolldownBuild(await PluginDriver.callOptionsHook(input));
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/api/build.ts
|
|
13
|
+
async function build(options) {
|
|
14
|
+
if (Array.isArray(options)) return Promise.all(options.map((opts) => build(opts)));
|
|
15
|
+
else {
|
|
16
|
+
const { output, write = true, ...inputOptions } = options;
|
|
17
|
+
const build$1 = await rolldown(inputOptions);
|
|
18
|
+
try {
|
|
19
|
+
if (write) return await build$1.write(output);
|
|
20
|
+
else return await build$1.generate(output);
|
|
21
|
+
} finally {
|
|
22
|
+
await build$1.close();
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/api/watch/watch-emitter.ts
|
|
29
|
+
var WatcherEmitter = class {
|
|
30
|
+
listeners = /* @__PURE__ */ new Map();
|
|
31
|
+
timer;
|
|
32
|
+
constructor() {
|
|
33
|
+
this.timer = setInterval(() => {}, 1e9);
|
|
34
|
+
}
|
|
35
|
+
on(event, listener) {
|
|
36
|
+
const listeners = this.listeners.get(event);
|
|
37
|
+
if (listeners) listeners.push(listener);
|
|
38
|
+
else this.listeners.set(event, [listener]);
|
|
39
|
+
return this;
|
|
40
|
+
}
|
|
41
|
+
off(event, listener) {
|
|
42
|
+
const listeners = this.listeners.get(event);
|
|
43
|
+
if (listeners) {
|
|
44
|
+
const index = listeners.indexOf(listener);
|
|
45
|
+
if (index !== -1) listeners.splice(index, 1);
|
|
46
|
+
}
|
|
47
|
+
return this;
|
|
48
|
+
}
|
|
49
|
+
clear(event) {
|
|
50
|
+
if (this.listeners.has(event)) this.listeners.delete(event);
|
|
51
|
+
}
|
|
52
|
+
async onEvent(event) {
|
|
53
|
+
const listeners = this.listeners.get(event.eventKind());
|
|
54
|
+
if (listeners) switch (event.eventKind()) {
|
|
55
|
+
case "close":
|
|
56
|
+
case "restart":
|
|
57
|
+
for (const listener of listeners) await listener();
|
|
58
|
+
break;
|
|
59
|
+
case "event":
|
|
60
|
+
for (const listener of listeners) {
|
|
61
|
+
const code = event.bundleEventKind();
|
|
62
|
+
switch (code) {
|
|
63
|
+
case "BUNDLE_END":
|
|
64
|
+
const { duration, output, result } = event.bundleEndData();
|
|
65
|
+
await listener({
|
|
66
|
+
code: "BUNDLE_END",
|
|
67
|
+
duration,
|
|
68
|
+
output: [output],
|
|
69
|
+
result
|
|
70
|
+
});
|
|
71
|
+
break;
|
|
72
|
+
case "ERROR":
|
|
73
|
+
const data = event.bundleErrorData();
|
|
74
|
+
await listener({
|
|
75
|
+
code: "ERROR",
|
|
76
|
+
error: aggregateBindingErrorsIntoJsError(data.error),
|
|
77
|
+
result: data.result
|
|
78
|
+
});
|
|
79
|
+
break;
|
|
80
|
+
default:
|
|
81
|
+
await listener({ code });
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
break;
|
|
86
|
+
case "change":
|
|
87
|
+
for (const listener of listeners) {
|
|
88
|
+
const { path, kind } = event.watchChangeData();
|
|
89
|
+
await listener(path, { event: kind });
|
|
90
|
+
}
|
|
91
|
+
break;
|
|
92
|
+
default: throw new Error(`Unknown event: ${event}`);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
async close() {
|
|
96
|
+
clearInterval(this.timer);
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
//#endregion
|
|
101
|
+
//#region src/api/watch/watcher.ts
|
|
102
|
+
var Watcher = class {
|
|
103
|
+
closed;
|
|
104
|
+
inner;
|
|
105
|
+
emitter;
|
|
106
|
+
stopWorkers;
|
|
107
|
+
constructor(emitter, inner, stopWorkers) {
|
|
108
|
+
this.closed = false;
|
|
109
|
+
this.inner = inner;
|
|
110
|
+
this.emitter = emitter;
|
|
111
|
+
const originClose = emitter.close.bind(emitter);
|
|
112
|
+
emitter.close = async () => {
|
|
113
|
+
await this.close();
|
|
114
|
+
originClose();
|
|
115
|
+
};
|
|
116
|
+
this.stopWorkers = stopWorkers;
|
|
117
|
+
}
|
|
118
|
+
async close() {
|
|
119
|
+
if (this.closed) return;
|
|
120
|
+
this.closed = true;
|
|
121
|
+
for (const stop of this.stopWorkers) await stop?.();
|
|
122
|
+
await this.inner.close();
|
|
123
|
+
shutdownAsyncRuntime();
|
|
124
|
+
}
|
|
125
|
+
start() {
|
|
126
|
+
process.nextTick(() => this.inner.start(this.emitter.onEvent.bind(this.emitter)));
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
async function createWatcher(emitter, input) {
|
|
130
|
+
const options = arraify(input);
|
|
131
|
+
const bundlerOptions = await Promise.all(options.map((option) => arraify(option.output || {}).map(async (output) => {
|
|
132
|
+
return createBundlerOptions(await PluginDriver.callOptionsHook(option, true), output, true);
|
|
133
|
+
})).flat());
|
|
134
|
+
const notifyOptions = getValidNotifyOption(bundlerOptions);
|
|
135
|
+
new Watcher(emitter, new BindingWatcher(bundlerOptions.map((option) => option.bundlerOptions), notifyOptions), bundlerOptions.map((option) => option.stopWorkers)).start();
|
|
136
|
+
}
|
|
137
|
+
function getValidNotifyOption(bundlerOptions) {
|
|
138
|
+
let result;
|
|
139
|
+
for (const option of bundlerOptions) if (option.inputOptions.watch) {
|
|
140
|
+
const notifyOption = option.inputOptions.watch.notify;
|
|
141
|
+
if (notifyOption) if (result) {
|
|
142
|
+
option.onLog(LOG_LEVEL_WARN, logMultiplyNotifyOption());
|
|
143
|
+
return result;
|
|
144
|
+
} else result = notifyOption;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
//#endregion
|
|
149
|
+
//#region src/api/watch/index.ts
|
|
150
|
+
const watch = (input) => {
|
|
151
|
+
const emitter = new WatcherEmitter();
|
|
152
|
+
createWatcher(emitter, input);
|
|
153
|
+
return emitter;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
//#endregion
|
|
157
|
+
//#region src/utils/define-config.ts
|
|
158
|
+
function defineConfig(config) {
|
|
159
|
+
return config;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
//#endregion
|
|
4
163
|
export { BindingMagicString, VERSION, build, defineConfig, rolldown, watch };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { o as
|
|
1
|
+
import { d as LogLevel, f as LogLevelOption, g as RollupLogWithString, h as RollupLog, i as WarningHandlerWithDefault, l as PartialNull, m as RollupError, n as LoggingFunction, p as LogOrStringHandler } from "./shared/utils-DKydZ4iH.mjs";
|
|
2
|
+
import { V as PreRenderedChunk, s as BindingMagicString } from "./shared/binding-BKL2JHoJ.mjs";
|
|
3
|
+
import { $ as NormalizedOutputOptions, A as VERSION, B as PluginContext, C as ResolveIdResult, Ct as RolldownOutput, D as SourceDescription, Dt as SourcemapIgnoreListOption, E as RolldownPluginOption, Et as ModuleInfo, F as TreeshakingOptions, G as GeneralHookFilter, I as TransformPluginContext, J as BufferEncoding, K as HookFilter, L as EmittedAsset, M as SourceMapInput, N as RolldownOptionsFunction, O as TransformResult, P as OutputBundle, Q as InternalModuleFormat, R as EmittedFile, S as ResolveIdExtraOptions, St as RenderedModule, T as RolldownPlugin, U as MinimalPluginContext, V as DefineParallelPluginResult, W as PluginContextMeta, X as RolldownFileStats, Y as RolldownDirectoryEntry, Z as RolldownFsModule, _ as ModuleType, _t as OutputOptions, a as InputOption, at as rolldown, b as PartialResolvedId, bt as OutputChunk, c as OptimizationOptions, ct as build, d as CustomPluginOptions, dt as ChunkingContext, et as NormalizedInputOptions, f as FunctionPluginHooks, ft as GeneratedCodeOptions, g as ModuleOptions, gt as ModuleFormat, h as LoadResult, ht as MinifyOptions, i as ExternalOption, it as WatchOptions, j as ExistingRawSourceMap, l as WatcherOptions, lt as AddonFunction, m as ImportKind, mt as GlobalsFunction, n as ConfigExport, nt as RolldownWatcher, o as InputOptions, ot as RolldownBuild, p as HookFilterExtension, pt as GeneratedCodePreset, q as ModuleTypeFilter, r as RolldownOptions, rt as RolldownWatcherEvent, s as ModuleTypes, st as BuildOptions, t as defineConfig, tt as watch, u as AsyncPluginHooks, ut as ChunkFileNamesFunction, v as ObjectHook, vt as PreRenderedAsset, w as ResolvedId, wt as SourceMap, x as Plugin, xt as RenderedChunk, y as ParallelPluginHooks, yt as OutputAsset, z as GetModuleInfo } from "./shared/define-config-Buedmg9e.mjs";
|
|
4
4
|
export { AddonFunction, AsyncPluginHooks, BindingMagicString, BufferEncoding, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, 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, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownDirectoryEntry, RolldownFileStats, RolldownFsModule, RolldownOptions, RolldownOptionsFunction, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
|