rolldown 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-setup.mjs +1 -1
- package/dist/cli.mjs +11 -8
- package/dist/config.d.mts +3 -3
- package/dist/config.mjs +9 -6
- package/dist/experimental-index.d.mts +63 -16
- package/dist/experimental-index.mjs +25 -17
- package/dist/filter-index.d.mts +3 -3
- package/dist/filter-index.mjs +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +40 -5
- package/dist/parallel-plugin-worker.mjs +5 -5
- package/dist/parallel-plugin.d.mts +3 -3
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +2 -2
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +4 -3
- package/dist/shared/{binding-BTw1cXhU.d.mts → binding-BKL2JHoJ.d.mts} +173 -94
- package/dist/shared/{binding-DkT6owYZ.mjs → binding-kg77KQCQ.mjs} +36 -36
- package/dist/shared/bindingify-input-options-6nBAYjYP.mjs +1571 -0
- package/dist/shared/constructors-BvaMwihu.d.mts +32 -0
- package/dist/shared/constructors-CwAnOHmv.mjs +68 -0
- package/dist/shared/{define-config-CrMIxA40.d.mts → define-config-9CiSl0uo.d.mts} +31 -57
- package/dist/shared/define-config-DfeZGBEt.mjs +7 -0
- package/dist/shared/{load-config-8K0EpQy3.mjs → load-config-DS8fzWF9.mjs} +1 -1
- package/dist/shared/normalize-string-or-regex-VlPkMWXA.mjs +630 -0
- package/dist/shared/{parse-ast-index-w6oTGOhH.mjs → parse-ast-index-C44ewaWh.mjs} +21 -7
- package/dist/shared/rolldown-CpwN72kC.mjs +10 -0
- package/dist/shared/rolldown-build-D2CkFbcq.mjs +2123 -0
- package/dist/shared/utils-DKydZ4iH.d.mts +62 -0
- package/dist/shared/watch-BWN40jw1.mjs +339 -0
- package/package.json +21 -21
- package/dist/shared/constructors-BGT3rFMD.d.mts +0 -32
- package/dist/shared/constructors-Xd4Pek8a.mjs +0 -68
- package/dist/shared/normalize-string-or-regex-vZ5EI4ro.mjs +0 -47
- package/dist/shared/src-CYkh2Ybc.mjs +0 -4606
- package/dist/shared/utils-BxvnUO-9.d.mts +0 -18
- /package/dist/shared/{misc-DpQNcSw4.mjs → misc-CxyvWjTr.mjs} +0 -0
- /package/dist/shared/{prompt-CFbT7ROl.mjs → prompt-pmGBC3ws.mjs} +0 -0
package/dist/cli-setup.mjs
CHANGED
package/dist/cli.mjs
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import {
|
|
1
|
+
import "./shared/binding-kg77KQCQ.mjs";
|
|
2
|
+
import { n as onExit, t as watch } from "./shared/watch-BWN40jw1.mjs";
|
|
3
3
|
import "./shared/logs-CSQ_UMWp.mjs";
|
|
4
|
-
import "./shared/
|
|
5
|
-
import {
|
|
6
|
-
import "./shared/
|
|
7
|
-
import
|
|
4
|
+
import { t as arraify } from "./shared/misc-CxyvWjTr.mjs";
|
|
5
|
+
import { v as description, y as version } from "./shared/normalize-string-or-regex-VlPkMWXA.mjs";
|
|
6
|
+
import { a as getOutputCliKeys, c as styleText$1, i as getInputCliKeys, o as validateCliOptions, r as getCliSchemaInfo } from "./shared/rolldown-build-D2CkFbcq.mjs";
|
|
7
|
+
import "./shared/bindingify-input-options-6nBAYjYP.mjs";
|
|
8
|
+
import "./shared/parse-ast-index-C44ewaWh.mjs";
|
|
9
|
+
import { t as rolldown } from "./shared/rolldown-CpwN72kC.mjs";
|
|
10
|
+
import { t as loadConfig } from "./shared/load-config-DS8fzWF9.mjs";
|
|
8
11
|
import path, { sep } from "node:path";
|
|
9
12
|
import { formatWithOptions, parseArgs } from "node:util";
|
|
10
13
|
import process$1 from "node:process";
|
|
@@ -949,7 +952,7 @@ function createConsola(options$1 = {}) {
|
|
|
949
952
|
defaults: { level },
|
|
950
953
|
stdout: process.stdout,
|
|
951
954
|
stderr: process.stderr,
|
|
952
|
-
prompt: (...args) => import("./shared/prompt-
|
|
955
|
+
prompt: (...args) => import("./shared/prompt-pmGBC3ws.mjs").then((m) => m.prompt(...args)),
|
|
953
956
|
reporters: options$1.reporters || [options$1.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
|
|
954
957
|
...options$1
|
|
955
958
|
});
|
|
@@ -1236,7 +1239,7 @@ function getClearScreenFunction(options$1) {
|
|
|
1236
1239
|
}
|
|
1237
1240
|
|
|
1238
1241
|
//#endregion
|
|
1239
|
-
//#region \0@oxc-project+runtime@0.
|
|
1242
|
+
//#region \0@oxc-project+runtime@0.99.0/helpers/usingCtx.js
|
|
1240
1243
|
function _usingCtx() {
|
|
1241
1244
|
var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
|
|
1242
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-9CiSl0uo.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,10 +1,13 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { C as version, r as defineConfig } from "./shared/src-CYkh2Ybc.mjs";
|
|
1
|
+
import "./shared/binding-kg77KQCQ.mjs";
|
|
3
2
|
import "./shared/logs-CSQ_UMWp.mjs";
|
|
4
|
-
import "./shared/
|
|
5
|
-
import "./shared/
|
|
6
|
-
import "./shared/
|
|
7
|
-
import
|
|
3
|
+
import "./shared/misc-CxyvWjTr.mjs";
|
|
4
|
+
import { y as version } from "./shared/normalize-string-or-regex-VlPkMWXA.mjs";
|
|
5
|
+
import "./shared/rolldown-build-D2CkFbcq.mjs";
|
|
6
|
+
import "./shared/bindingify-input-options-6nBAYjYP.mjs";
|
|
7
|
+
import "./shared/parse-ast-index-C44ewaWh.mjs";
|
|
8
|
+
import "./shared/rolldown-CpwN72kC.mjs";
|
|
9
|
+
import { t as defineConfig } from "./shared/define-config-DfeZGBEt.mjs";
|
|
10
|
+
import { t as loadConfig } from "./shared/load-config-DS8fzWF9.mjs";
|
|
8
11
|
|
|
9
12
|
//#region src/config.ts
|
|
10
13
|
const VERSION = version;
|
|
@@ -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-9CiSl0uo.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,11 @@
|
|
|
1
|
-
import { t as require_binding } from "./shared/binding-
|
|
2
|
-
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-CYkh2Ybc.mjs";
|
|
1
|
+
import { t as require_binding } from "./shared/binding-kg77KQCQ.mjs";
|
|
3
2
|
import "./shared/logs-CSQ_UMWp.mjs";
|
|
4
|
-
import
|
|
5
|
-
import "./shared/
|
|
6
|
-
import "./shared/
|
|
7
|
-
import {
|
|
3
|
+
import "./shared/misc-CxyvWjTr.mjs";
|
|
4
|
+
import { c as transformToRollupOutput, l as bindingifySourcemap, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-VlPkMWXA.mjs";
|
|
5
|
+
import { l as PluginDriver, n as createBundlerOptions, s as validateOption, t as RolldownBuild } from "./shared/rolldown-build-D2CkFbcq.mjs";
|
|
6
|
+
import { o as normalizeBindingResult, s as unwrapBindingResult } from "./shared/bindingify-input-options-6nBAYjYP.mjs";
|
|
7
|
+
import { i as parseSync, r as parse } from "./shared/parse-ast-index-C44ewaWh.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-CwAnOHmv.mjs";
|
|
8
9
|
import { pathToFileURL } from "node:url";
|
|
9
10
|
|
|
10
11
|
//#region src/api/dev/dev-engine.ts
|
|
@@ -66,8 +67,8 @@ var DevEngine = class DevEngine {
|
|
|
66
67
|
this.#cachedBuildFinishPromise = promise;
|
|
67
68
|
return promise;
|
|
68
69
|
}
|
|
69
|
-
async
|
|
70
|
-
return this.#inner.
|
|
70
|
+
async getBundleState() {
|
|
71
|
+
return this.#inner.getBundleState();
|
|
71
72
|
}
|
|
72
73
|
async ensureLatestBuildOutput() {
|
|
73
74
|
await this.#inner.ensureLatestBuildOutput();
|
|
@@ -186,19 +187,19 @@ function defineParallelPlugin(pluginPath) {
|
|
|
186
187
|
|
|
187
188
|
//#endregion
|
|
188
189
|
//#region src/builtin-plugin/alias-plugin.ts
|
|
189
|
-
function
|
|
190
|
-
return new BuiltinPlugin("builtin:alias", config);
|
|
190
|
+
function viteAliasPlugin(config) {
|
|
191
|
+
return new BuiltinPlugin("builtin:vite-alias", config);
|
|
191
192
|
}
|
|
192
193
|
|
|
193
194
|
//#endregion
|
|
194
195
|
//#region src/builtin-plugin/asset-plugin.ts
|
|
195
|
-
function
|
|
196
|
-
return new BuiltinPlugin("builtin:asset", config);
|
|
196
|
+
function viteAssetPlugin(config) {
|
|
197
|
+
return new BuiltinPlugin("builtin:vite-asset", config);
|
|
197
198
|
}
|
|
198
199
|
|
|
199
200
|
//#endregion
|
|
200
201
|
//#region src/builtin-plugin/transform-plugin.ts
|
|
201
|
-
function
|
|
202
|
+
function viteTransformPlugin(config) {
|
|
202
203
|
if (config) config = {
|
|
203
204
|
...config,
|
|
204
205
|
include: normalizedStringOrRegex(config.include),
|
|
@@ -206,7 +207,7 @@ function transformPlugin(config) {
|
|
|
206
207
|
jsxRefreshInclude: normalizedStringOrRegex(config.jsxRefreshInclude),
|
|
207
208
|
jsxRefreshExclude: normalizedStringOrRegex(config.jsxRefreshExclude)
|
|
208
209
|
};
|
|
209
|
-
return new BuiltinPlugin("builtin:transform", config);
|
|
210
|
+
return new BuiltinPlugin("builtin:vite-transform", config);
|
|
210
211
|
}
|
|
211
212
|
|
|
212
213
|
//#endregion
|
|
@@ -224,6 +225,12 @@ function viteCSSPlugin(config) {
|
|
|
224
225
|
} : void 0);
|
|
225
226
|
}
|
|
226
227
|
|
|
228
|
+
//#endregion
|
|
229
|
+
//#region src/builtin-plugin/vite-html-plugin.ts
|
|
230
|
+
function viteHtmlPlugin(config) {
|
|
231
|
+
return new BuiltinPlugin("builtin:vite-html", config);
|
|
232
|
+
}
|
|
233
|
+
|
|
227
234
|
//#endregion
|
|
228
235
|
//#region src/experimental-index.ts
|
|
229
236
|
var import_binding = require_binding();
|
|
@@ -232,9 +239,10 @@ var import_binding = require_binding();
|
|
|
232
239
|
var BindingRebuildStrategy = import_binding.BindingRebuildStrategy;
|
|
233
240
|
var ResolverFactory = import_binding.ResolverFactory;
|
|
234
241
|
var isolatedDeclaration = import_binding.isolatedDeclaration;
|
|
242
|
+
var isolatedDeclarationSync = import_binding.isolatedDeclarationSync;
|
|
235
243
|
var minify = import_binding.minify;
|
|
244
|
+
var minifySync = import_binding.minifySync;
|
|
236
245
|
var moduleRunnerTransform = import_binding.moduleRunnerTransform;
|
|
237
|
-
var parseAsync = import_binding.parseAsync;
|
|
238
|
-
var parseSync = import_binding.parseSync;
|
|
239
246
|
var transform = import_binding.transform;
|
|
240
|
-
|
|
247
|
+
var transformSync = import_binding.transformSync;
|
|
248
|
+
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-9CiSl0uo.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,4 @@
|
|
|
1
|
-
import { n as isPromiseLike, t as arraify } from "./shared/misc-
|
|
1
|
+
import { n as isPromiseLike, t as arraify } from "./shared/misc-CxyvWjTr.mjs";
|
|
2
2
|
import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/with-filter.ts
|
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-9CiSl0uo.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 };
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,44 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import {
|
|
1
|
+
import { t as require_binding } from "./shared/binding-kg77KQCQ.mjs";
|
|
2
|
+
import { n as onExit, t as watch } from "./shared/watch-BWN40jw1.mjs";
|
|
3
3
|
import "./shared/logs-CSQ_UMWp.mjs";
|
|
4
|
-
import "./shared/
|
|
5
|
-
import "./shared/
|
|
6
|
-
import "./shared/
|
|
4
|
+
import "./shared/misc-CxyvWjTr.mjs";
|
|
5
|
+
import { _ as VERSION } from "./shared/normalize-string-or-regex-VlPkMWXA.mjs";
|
|
6
|
+
import "./shared/rolldown-build-D2CkFbcq.mjs";
|
|
7
|
+
import "./shared/bindingify-input-options-6nBAYjYP.mjs";
|
|
8
|
+
import "./shared/parse-ast-index-C44ewaWh.mjs";
|
|
9
|
+
import { t as rolldown } from "./shared/rolldown-CpwN72kC.mjs";
|
|
10
|
+
import { t as defineConfig } from "./shared/define-config-DfeZGBEt.mjs";
|
|
11
|
+
import { isMainThread } from "node:worker_threads";
|
|
7
12
|
|
|
13
|
+
//#region src/setup.ts
|
|
14
|
+
var import_binding$1 = require_binding();
|
|
15
|
+
if (isMainThread) {
|
|
16
|
+
const subscriberGuard = (0, import_binding$1.initTraceSubscriber)();
|
|
17
|
+
onExit(() => {
|
|
18
|
+
subscriberGuard?.close();
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/api/build.ts
|
|
24
|
+
async function build(options) {
|
|
25
|
+
if (Array.isArray(options)) return Promise.all(options.map((opts) => build(opts)));
|
|
26
|
+
else {
|
|
27
|
+
const { output, write = true, ...inputOptions } = options;
|
|
28
|
+
const build$1 = await rolldown(inputOptions);
|
|
29
|
+
try {
|
|
30
|
+
if (write) return await build$1.write(output);
|
|
31
|
+
else return await build$1.generate(output);
|
|
32
|
+
} finally {
|
|
33
|
+
await build$1.close();
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/index.ts
|
|
40
|
+
var import_binding = require_binding();
|
|
41
|
+
|
|
42
|
+
//#endregion
|
|
8
43
|
var BindingMagicString = import_binding.BindingMagicString;
|
|
9
44
|
export { BindingMagicString, VERSION, build, defineConfig, rolldown, watch };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as require_binding } from "./shared/binding-
|
|
2
|
-
import { l as PluginContextData, u as bindingifyPlugin } from "./shared/src-CYkh2Ybc.mjs";
|
|
1
|
+
import { t as require_binding } from "./shared/binding-kg77KQCQ.mjs";
|
|
3
2
|
import "./shared/logs-CSQ_UMWp.mjs";
|
|
4
|
-
import "./shared/
|
|
5
|
-
import "./shared/
|
|
6
|
-
import "./shared/
|
|
3
|
+
import "./shared/misc-CxyvWjTr.mjs";
|
|
4
|
+
import "./shared/normalize-string-or-regex-VlPkMWXA.mjs";
|
|
5
|
+
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-6nBAYjYP.mjs";
|
|
6
|
+
import "./shared/parse-ast-index-C44ewaWh.mjs";
|
|
7
7
|
import { parentPort, workerData } from "node:worker_threads";
|
|
8
8
|
|
|
9
9
|
//#region src/parallel-plugin-worker.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./shared/binding-
|
|
3
|
-
import {
|
|
1
|
+
import { s as MaybePromise } from "./shared/utils-DKydZ4iH.mjs";
|
|
2
|
+
import "./shared/binding-BKL2JHoJ.mjs";
|
|
3
|
+
import { x as Plugin } from "./shared/define-config-9CiSl0uo.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
6
6
|
type ParallelPluginImplementation = Plugin;
|
package/dist/parse-ast-index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
1
|
+
import "./shared/binding-kg77KQCQ.mjs";
|
|
2
2
|
import "./shared/logs-CSQ_UMWp.mjs";
|
|
3
|
-
import { n as parseAstAsync, t as parseAst } from "./shared/parse-ast-index-
|
|
3
|
+
import { n as parseAstAsync, t as parseAst } from "./shared/parse-ast-index-C44ewaWh.mjs";
|
|
4
4
|
|
|
5
5
|
export { parseAst, parseAstAsync };
|
package/dist/plugins-index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { t as BuiltinPlugin } from "./shared/utils-DKydZ4iH.mjs";
|
|
2
|
+
import { u as BindingReplacePluginConfig } from "./shared/binding-BKL2JHoJ.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-BvaMwihu.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/builtin-plugin/replace-plugin.d.ts
|
|
6
6
|
|
package/dist/plugins-index.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
1
|
+
import "./shared/binding-kg77KQCQ.mjs";
|
|
2
2
|
import "./shared/logs-CSQ_UMWp.mjs";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
3
|
+
import "./shared/misc-CxyvWjTr.mjs";
|
|
4
|
+
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-VlPkMWXA.mjs";
|
|
5
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-CwAnOHmv.mjs";
|
|
5
6
|
|
|
6
7
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
7
8
|
/**
|