rolldown 1.0.0-beta.52 → 1.0.0-beta.54
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 -12
- package/dist/config.d.mts +2 -3
- package/dist/config.mjs +7 -9
- package/dist/experimental-index.d.mts +23 -12
- package/dist/experimental-index.mjs +28 -17
- package/dist/filter-index.d.mts +2 -3
- package/dist/index.d.mts +3 -4
- package/dist/index.mjs +7 -9
- package/dist/parallel-plugin-worker.mjs +4 -6
- package/dist/parallel-plugin.d.mts +2 -3
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +2 -3
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +3 -5
- package/dist/shared/{binding-kg77KQCQ.mjs → binding-BgawCXFG.mjs} +26 -26
- package/dist/shared/{binding-BKL2JHoJ.d.mts → binding-yIBVkeOE.d.mts} +107 -21
- package/dist/shared/{bindingify-input-options-6nBAYjYP.mjs → bindingify-input-options-DvsExmEF.mjs} +22 -9
- package/dist/shared/constructors-BgO0Ou3T.d.mts +30 -0
- package/dist/shared/{constructors-CwAnOHmv.mjs → constructors-DqAPGbqJ.mjs} +9 -10
- package/dist/shared/{define-config-9CiSl0uo.d.mts → define-config-COJu-A7R.d.mts} +78 -5
- package/dist/shared/{load-config-DS8fzWF9.mjs → load-config--qXpT-nH.mjs} +1 -1
- package/dist/shared/{normalize-string-or-regex-VlPkMWXA.mjs → normalize-string-or-regex-CF1OWLn9.mjs} +44 -5
- package/dist/shared/{parse-ast-index-C44ewaWh.mjs → parse-ast-index-DeJDe-DO.mjs} +2 -2
- package/dist/shared/{rolldown-CpwN72kC.mjs → rolldown-BsTgRBvz.mjs} +1 -1
- package/dist/shared/{rolldown-build-D2CkFbcq.mjs → rolldown-build-DtYoS8Tq.mjs} +337 -190
- package/dist/shared/{watch-BWN40jw1.mjs → watch-CfGzq0YA.mjs} +17 -5
- package/package.json +20 -22
- package/dist/shared/constructors-BvaMwihu.d.mts +0 -32
- package/dist/shared/utils-DKydZ4iH.d.mts +0 -62
package/dist/cli-setup.mjs
CHANGED
package/dist/cli.mjs
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
3
|
-
import "./shared/logs-CSQ_UMWp.mjs";
|
|
1
|
+
import "./shared/binding-BgawCXFG.mjs";
|
|
2
|
+
import { n as onExit, t as watch } from "./shared/watch-CfGzq0YA.mjs";
|
|
4
3
|
import { t as arraify } from "./shared/misc-CxyvWjTr.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { a as getOutputCliKeys, c as styleText$1, i as getInputCliKeys, o as validateCliOptions, r as getCliSchemaInfo } from "./shared/rolldown-build-
|
|
7
|
-
import "./shared/bindingify-input-options-
|
|
8
|
-
import "./shared/parse-ast-index-
|
|
9
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
10
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
4
|
+
import { b as description, x as version } from "./shared/normalize-string-or-regex-CF1OWLn9.mjs";
|
|
5
|
+
import { a as getOutputCliKeys, c as styleText$1, i as getInputCliKeys, o as validateCliOptions, r as getCliSchemaInfo } from "./shared/rolldown-build-DtYoS8Tq.mjs";
|
|
6
|
+
import "./shared/bindingify-input-options-DvsExmEF.mjs";
|
|
7
|
+
import "./shared/parse-ast-index-DeJDe-DO.mjs";
|
|
8
|
+
import { t as rolldown } from "./shared/rolldown-BsTgRBvz.mjs";
|
|
9
|
+
import { t as loadConfig } from "./shared/load-config--qXpT-nH.mjs";
|
|
11
10
|
import path, { sep } from "node:path";
|
|
12
11
|
import { formatWithOptions, parseArgs } from "node:util";
|
|
13
12
|
import process$1 from "node:process";
|
|
@@ -1163,14 +1162,14 @@ function parseCliArguments() {
|
|
|
1163
1162
|
writable: true
|
|
1164
1163
|
});
|
|
1165
1164
|
} else if (type === "object" && typeof option.value === "string") {
|
|
1166
|
-
const
|
|
1165
|
+
const pairs = option.value.split(",").map((x) => x.split("="));
|
|
1167
1166
|
if (!values[option.name]) Object.defineProperty(values, option.name, {
|
|
1168
1167
|
value: {},
|
|
1169
1168
|
enumerable: true,
|
|
1170
1169
|
configurable: true,
|
|
1171
1170
|
writable: true
|
|
1172
1171
|
});
|
|
1173
|
-
if (key && value) Object.defineProperty(values[option.name], key, {
|
|
1172
|
+
for (const [key, value] of pairs) if (key && value) Object.defineProperty(values[option.name], key, {
|
|
1174
1173
|
value,
|
|
1175
1174
|
enumerable: true,
|
|
1176
1175
|
configurable: true,
|
|
@@ -1239,7 +1238,7 @@ function getClearScreenFunction(options$1) {
|
|
|
1239
1238
|
}
|
|
1240
1239
|
|
|
1241
1240
|
//#endregion
|
|
1242
|
-
//#region \0@oxc-project+runtime@0.
|
|
1241
|
+
//#region \0@oxc-project+runtime@0.102.0/helpers/usingCtx.js
|
|
1243
1242
|
function _usingCtx() {
|
|
1244
1243
|
var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
|
|
1245
1244
|
var n$2 = Error();
|
package/dist/config.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import "./shared/
|
|
2
|
-
import "./shared/binding-
|
|
3
|
-
import { n as ConfigExport, t as defineConfig } from "./shared/define-config-9CiSl0uo.mjs";
|
|
1
|
+
import { n as ConfigExport, t as defineConfig } from "./shared/define-config-COJu-A7R.mjs";
|
|
2
|
+
import "./shared/binding-yIBVkeOE.mjs";
|
|
4
3
|
|
|
5
4
|
//#region src/utils/load-config.d.ts
|
|
6
5
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
package/dist/config.mjs
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import "./shared/
|
|
3
|
-
import "./shared/
|
|
4
|
-
import
|
|
5
|
-
import "./shared/
|
|
6
|
-
import "./shared/
|
|
7
|
-
import "./shared/parse-ast-index-C44ewaWh.mjs";
|
|
8
|
-
import "./shared/rolldown-CpwN72kC.mjs";
|
|
1
|
+
import "./shared/binding-BgawCXFG.mjs";
|
|
2
|
+
import { x as version } from "./shared/normalize-string-or-regex-CF1OWLn9.mjs";
|
|
3
|
+
import "./shared/rolldown-build-DtYoS8Tq.mjs";
|
|
4
|
+
import "./shared/bindingify-input-options-DvsExmEF.mjs";
|
|
5
|
+
import "./shared/parse-ast-index-DeJDe-DO.mjs";
|
|
6
|
+
import "./shared/rolldown-BsTgRBvz.mjs";
|
|
9
7
|
import { t as defineConfig } from "./shared/define-config-DfeZGBEt.mjs";
|
|
10
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
8
|
+
import { t as loadConfig } from "./shared/load-config--qXpT-nH.mjs";
|
|
11
9
|
|
|
12
10
|
//#region src/config.ts
|
|
13
11
|
const VERSION = version;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { B as ParserOptions, G as TransformResult, H as ResolveResult, I as MinifyOptions, J as
|
|
3
|
-
import {
|
|
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";
|
|
1
|
+
import { A as BuiltinPlugin, At as RolldownOutput, Dt as OutputChunk, F as OutputBundle, G as MinimalPluginContext, Mt as freeExternalMemory, N as SourceMapInput, W as defineParallelPlugin, o as InputOptions, tt as NormalizedOutputOptions, xt as OutputOptions } from "./shared/define-config-COJu-A7R.mjs";
|
|
2
|
+
import { $ as transformSync, B as ParserOptions, C as BindingViteManifestPluginConfig, G as TransformResult, H as ResolveResult, I as MinifyOptions, J as isolatedDeclarationSync, K as createTokioRuntime, L as MinifyResult, N as IsolatedDeclarationsOptions, O as BindingViteTransformPluginConfig, P as IsolatedDeclarationsResult, Q as transform, R as NapiResolveOptions, U as ResolverFactory, W as TransformOptions, X as minifySync, Y as minify, Z as moduleRunnerTransform, _ as BindingViteCssPostPluginConfig, b as BindingViteHtmlPluginConfig, c as BindingRebuildStrategy, f as BindingUrlResolver, g as BindingViteCssPluginConfig, m as BindingViteAssetPluginConfig, n as BindingBundleState, q as isolatedDeclaration, r as BindingClientHmrUpdate, z as ParseResult } from "./shared/binding-yIBVkeOE.mjs";
|
|
3
|
+
import { a as viteDynamicImportVarsPlugin, c as viteJsonPlugin, d as viteReactRefreshWrapperPlugin, f as viteReporterPlugin, g as viteWebWorkerPostPlugin, h as viteWasmHelperPlugin, i as viteBuildImportAnalysisPlugin, l as viteLoadFallbackPlugin, m as viteWasmFallbackPlugin, n as isolatedDeclarationPlugin, o as viteHtmlInlineProxyPlugin, p as viteResolvePlugin, r as viteAssetImportMetaUrlPlugin, s as viteImportGlobPlugin, u as viteModulePreloadPolyfillPlugin } from "./shared/constructors-BgO0Ou3T.mjs";
|
|
5
4
|
|
|
6
5
|
//#region src/api/dev/dev-options.d.ts
|
|
7
6
|
type DevOnHmrUpdates = (result: Error | {
|
|
@@ -73,8 +72,8 @@ declare class DevEngine {
|
|
|
73
72
|
getBundleState(): Promise<BindingBundleState>;
|
|
74
73
|
ensureLatestBuildOutput(): Promise<void>;
|
|
75
74
|
invalidate(file: string, firstInvalidatedBy?: string): Promise<BindingClientHmrUpdate[]>;
|
|
76
|
-
registerModules(clientId: string, modules: string[]): void
|
|
77
|
-
removeClient(clientId: string): void
|
|
75
|
+
registerModules(clientId: string, modules: string[]): Promise<void>;
|
|
76
|
+
removeClient(clientId: string): Promise<void>;
|
|
78
77
|
close(): Promise<void>;
|
|
79
78
|
}
|
|
80
79
|
//#endregion
|
|
@@ -123,13 +122,13 @@ declare function viteAssetPlugin(config: BindingViteAssetPluginConfig): BuiltinP
|
|
|
123
122
|
//#endregion
|
|
124
123
|
//#region src/builtin-plugin/transform-plugin.d.ts
|
|
125
124
|
type TransformPattern = string | RegExp | readonly (RegExp | string)[];
|
|
126
|
-
type TransformPluginConfig = Omit<BindingViteTransformPluginConfig, "include" | "exclude" | "jsxRefreshInclude" | "jsxRefreshExclude"> & {
|
|
125
|
+
type TransformPluginConfig = Omit<BindingViteTransformPluginConfig, "include" | "exclude" | "jsxRefreshInclude" | "jsxRefreshExclude" | "yarnPnp"> & {
|
|
127
126
|
include?: TransformPattern;
|
|
128
127
|
exclude?: TransformPattern;
|
|
129
128
|
jsxRefreshInclude?: TransformPattern;
|
|
130
129
|
jsxRefreshExclude?: TransformPattern;
|
|
131
130
|
};
|
|
132
|
-
declare function viteTransformPlugin(config
|
|
131
|
+
declare function viteTransformPlugin(config: TransformPluginConfig): BuiltinPlugin;
|
|
133
132
|
//#endregion
|
|
134
133
|
//#region src/builtin-plugin/vite-css-plugin.d.ts
|
|
135
134
|
type ViteCssPluginConfig = Omit<BindingViteCssPluginConfig, "compileCSS"> & {
|
|
@@ -140,7 +139,13 @@ type ViteCssPluginConfig = Omit<BindingViteCssPluginConfig, "compileCSS"> & {
|
|
|
140
139
|
deps?: Set<string>;
|
|
141
140
|
}>;
|
|
142
141
|
};
|
|
143
|
-
declare function viteCSSPlugin(config
|
|
142
|
+
declare function viteCSSPlugin(config: ViteCssPluginConfig): BuiltinPlugin;
|
|
143
|
+
//#endregion
|
|
144
|
+
//#region src/builtin-plugin/vite-css-post-plugin.d.ts
|
|
145
|
+
type ViteCssPostPluginConfig = Omit<BindingViteCssPostPluginConfig, "cssScopeTo" | "isLegacy"> & {
|
|
146
|
+
isOutputOptionsForLegacyChunks?: (outputOptions: NormalizedOutputOptions) => boolean;
|
|
147
|
+
};
|
|
148
|
+
declare function viteCSSPostPlugin(config: ViteCssPostPluginConfig): BuiltinPlugin;
|
|
144
149
|
//#endregion
|
|
145
150
|
//#region src/builtin-plugin/vite-html-plugin.d.ts
|
|
146
151
|
interface HtmlTagDescriptor {
|
|
@@ -172,12 +177,18 @@ interface IndexHtmlTransformContext {
|
|
|
172
177
|
bundle?: OutputBundle;
|
|
173
178
|
chunk?: OutputChunk;
|
|
174
179
|
}
|
|
175
|
-
interface ViteHtmlPluginOptions extends Omit<BindingViteHtmlPluginConfig, "transformIndexHtml"> {
|
|
180
|
+
interface ViteHtmlPluginOptions extends Omit<BindingViteHtmlPluginConfig, "transformIndexHtml" | "setModuleSideEffects"> {
|
|
176
181
|
preHooks: IndexHtmlTransformHook[];
|
|
177
182
|
normalHooks: IndexHtmlTransformHook[];
|
|
178
183
|
postHooks: IndexHtmlTransformHook[];
|
|
179
184
|
applyHtmlTransforms: (html: string, hooks: IndexHtmlTransformHook[], pluginContext: MinimalPluginContext, ctx: IndexHtmlTransformContext) => Promise<string>;
|
|
180
185
|
}
|
|
181
|
-
declare function viteHtmlPlugin(config
|
|
186
|
+
declare function viteHtmlPlugin(config: ViteHtmlPluginOptions): BuiltinPlugin;
|
|
187
|
+
//#endregion
|
|
188
|
+
//#region src/builtin-plugin/vite-manifest-plugin.d.ts
|
|
189
|
+
type ViteManifestPluginConfig = Omit<BindingViteManifestPluginConfig, "isLegacy"> & {
|
|
190
|
+
isOutputOptionsForLegacyChunks?: (outputOptions: NormalizedOutputOptions) => boolean;
|
|
191
|
+
};
|
|
192
|
+
declare function viteManifestPlugin(config: ViteManifestPluginConfig): BuiltinPlugin;
|
|
182
193
|
//#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 };
|
|
194
|
+
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, createTokioRuntime, 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,11 +1,9 @@
|
|
|
1
|
-
import { t as require_binding } from "./shared/binding-
|
|
2
|
-
import "./shared/
|
|
3
|
-
import "./shared/
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { o as
|
|
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";
|
|
1
|
+
import { t as require_binding } from "./shared/binding-BgawCXFG.mjs";
|
|
2
|
+
import { d as bindingifySourcemap, n as BuiltinPlugin, t as normalizedStringOrRegex, u as transformToRollupOutput } from "./shared/normalize-string-or-regex-CF1OWLn9.mjs";
|
|
3
|
+
import { l as PluginDriver, n as createBundlerOptions, s as validateOption, t as RolldownBuild } from "./shared/rolldown-build-DtYoS8Tq.mjs";
|
|
4
|
+
import { o as normalizeBindingResult, s as unwrapBindingResult } from "./shared/bindingify-input-options-DvsExmEF.mjs";
|
|
5
|
+
import { i as parseSync, r as parse } from "./shared/parse-ast-index-DeJDe-DO.mjs";
|
|
6
|
+
import { a as viteDynamicImportVarsPlugin, c as viteJsonPlugin, d as viteReactRefreshWrapperPlugin, f as viteReporterPlugin, g as viteWebWorkerPostPlugin, h as viteWasmHelperPlugin, i as viteBuildImportAnalysisPlugin, l as viteLoadFallbackPlugin, m as viteWasmFallbackPlugin, n as isolatedDeclarationPlugin, o as viteHtmlInlineProxyPlugin, p as viteResolvePlugin, r as viteAssetImportMetaUrlPlugin, s as viteImportGlobPlugin, u as viteModulePreloadPolyfillPlugin } from "./shared/constructors-DqAPGbqJ.mjs";
|
|
9
7
|
import { pathToFileURL } from "node:url";
|
|
10
8
|
|
|
11
9
|
//#region src/api/dev/dev-engine.ts
|
|
@@ -76,11 +74,11 @@ var DevEngine = class DevEngine {
|
|
|
76
74
|
async invalidate(file, firstInvalidatedBy) {
|
|
77
75
|
return this.#inner.invalidate(file, firstInvalidatedBy);
|
|
78
76
|
}
|
|
79
|
-
registerModules(clientId, modules) {
|
|
80
|
-
this.#inner.registerModules(clientId, modules);
|
|
77
|
+
async registerModules(clientId, modules) {
|
|
78
|
+
await this.#inner.registerModules(clientId, modules);
|
|
81
79
|
}
|
|
82
|
-
removeClient(clientId) {
|
|
83
|
-
this.#inner.removeClient(clientId);
|
|
80
|
+
async removeClient(clientId) {
|
|
81
|
+
await this.#inner.removeClient(clientId);
|
|
84
82
|
}
|
|
85
83
|
async close() {
|
|
86
84
|
await this.#inner.close();
|
|
@@ -200,14 +198,14 @@ function viteAssetPlugin(config) {
|
|
|
200
198
|
//#endregion
|
|
201
199
|
//#region src/builtin-plugin/transform-plugin.ts
|
|
202
200
|
function viteTransformPlugin(config) {
|
|
203
|
-
|
|
201
|
+
return new BuiltinPlugin("builtin:vite-transform", {
|
|
204
202
|
...config,
|
|
205
203
|
include: normalizedStringOrRegex(config.include),
|
|
206
204
|
exclude: normalizedStringOrRegex(config.exclude),
|
|
207
205
|
jsxRefreshInclude: normalizedStringOrRegex(config.jsxRefreshInclude),
|
|
208
|
-
jsxRefreshExclude: normalizedStringOrRegex(config.jsxRefreshExclude)
|
|
209
|
-
|
|
210
|
-
|
|
206
|
+
jsxRefreshExclude: normalizedStringOrRegex(config.jsxRefreshExclude),
|
|
207
|
+
yarnPnp: typeof process === "object" && !!process.versions?.pnp
|
|
208
|
+
});
|
|
211
209
|
}
|
|
212
210
|
|
|
213
211
|
//#endregion
|
|
@@ -225,12 +223,24 @@ function viteCSSPlugin(config) {
|
|
|
225
223
|
} : void 0);
|
|
226
224
|
}
|
|
227
225
|
|
|
226
|
+
//#endregion
|
|
227
|
+
//#region src/builtin-plugin/vite-css-post-plugin.ts
|
|
228
|
+
function viteCSSPostPlugin(config) {
|
|
229
|
+
return new BuiltinPlugin("builtin:vite-css-post", config);
|
|
230
|
+
}
|
|
231
|
+
|
|
228
232
|
//#endregion
|
|
229
233
|
//#region src/builtin-plugin/vite-html-plugin.ts
|
|
230
234
|
function viteHtmlPlugin(config) {
|
|
231
235
|
return new BuiltinPlugin("builtin:vite-html", config);
|
|
232
236
|
}
|
|
233
237
|
|
|
238
|
+
//#endregion
|
|
239
|
+
//#region src/builtin-plugin/vite-manifest-plugin.ts
|
|
240
|
+
function viteManifestPlugin(config) {
|
|
241
|
+
return new BuiltinPlugin("builtin:vite-manifest", config);
|
|
242
|
+
}
|
|
243
|
+
|
|
234
244
|
//#endregion
|
|
235
245
|
//#region src/experimental-index.ts
|
|
236
246
|
var import_binding = require_binding();
|
|
@@ -238,6 +248,7 @@ var import_binding = require_binding();
|
|
|
238
248
|
//#endregion
|
|
239
249
|
var BindingRebuildStrategy = import_binding.BindingRebuildStrategy;
|
|
240
250
|
var ResolverFactory = import_binding.ResolverFactory;
|
|
251
|
+
var createTokioRuntime = import_binding.createTokioRuntime;
|
|
241
252
|
var isolatedDeclaration = import_binding.isolatedDeclaration;
|
|
242
253
|
var isolatedDeclarationSync = import_binding.isolatedDeclarationSync;
|
|
243
254
|
var minify = import_binding.minify;
|
|
@@ -245,4 +256,4 @@ var minifySync = import_binding.minifySync;
|
|
|
245
256
|
var moduleRunnerTransform = import_binding.moduleRunnerTransform;
|
|
246
257
|
var transform = import_binding.transform;
|
|
247
258
|
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 };
|
|
259
|
+
export { BindingRebuildStrategy, DevEngine, ResolverFactory, createTokioRuntime, 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,4 @@
|
|
|
1
|
-
import "./shared/
|
|
2
|
-
import "./shared/binding-
|
|
3
|
-
import { k as withFilter } from "./shared/define-config-9CiSl0uo.mjs";
|
|
1
|
+
import { k as withFilter } from "./shared/define-config-COJu-A7R.mjs";
|
|
2
|
+
import "./shared/binding-yIBVkeOE.mjs";
|
|
4
3
|
import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
|
|
5
4
|
export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { V as PreRenderedChunk, s as BindingMagicString } from "./shared/binding-
|
|
3
|
-
|
|
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 };
|
|
1
|
+
import { $ as RolldownFsModule, At as RolldownOutput, B as EmittedPrebuiltChunk, Bt as RollupLogWithString, C as ResolveIdResult, D as SourceDescription, Dt as OutputChunk, E as RolldownPluginOption, Et as OutputAsset, F as OutputBundle, Ft as LogLevel, G as MinimalPluginContext, H as PluginContext, I as TreeshakingOptions, It as LogLevelOption, J as HookFilter, K as PluginContextMeta, L as TransformPluginContext, Lt as LogOrStringHandler, M as ExistingRawSourceMap, N as SourceMapInput, Nt as ModuleInfo, O as TransformResult, Ot as RenderedChunk, P as RolldownOptionsFunction, Pt as SourcemapIgnoreListOption, Q as RolldownFileStats, R as EmittedAsset, Rt as RollupError, S as ResolveIdExtraOptions, St as PreRenderedAsset, T as RolldownPlugin, U as DefineParallelPluginResult, V as GetModuleInfo, X as BufferEncoding, Y as ModuleTypeFilter, Z as RolldownDirectoryEntry, _ as ModuleType, _t as GeneratedCodePreset, a as InputOption, at as watch, b as PartialResolvedId, bt as ModuleFormat, c as OptimizationOptions, ct as WatchOptions, d as CustomPluginOptions, dt as BuildOptions, et as InternalModuleFormat, f as FunctionPluginHooks, ft as build, g as ModuleOptions, gt as GeneratedCodeOptions, h as LoadResult, ht as ChunkingContext, i as ExternalOption, it as WarningHandlerWithDefault, j as VERSION, jt as SourceMap, kt as RenderedModule, l as WatcherOptions, lt as rolldown, m as ImportKind, mt as ChunkFileNamesFunction, n as ConfigExport, nt as NormalizedInputOptions, o as InputOptions, ot as RolldownWatcher, p as HookFilterExtension, pt as AddonFunction, q as GeneralHookFilter, r as RolldownOptions, rt as LoggingFunction, s as ModuleTypes, st as RolldownWatcherEvent, t as defineConfig, tt as NormalizedOutputOptions, u as AsyncPluginHooks, ut as RolldownBuild, v as ObjectHook, vt as GlobalsFunction, w as ResolvedId, wt as PartialNull, x as Plugin, xt as OutputOptions, y as ParallelPluginHooks, yt as MinifyOptions, z as EmittedFile, zt as RollupLog } from "./shared/define-config-COJu-A7R.mjs";
|
|
2
|
+
import { V as PreRenderedChunk, s as BindingMagicString } from "./shared/binding-yIBVkeOE.mjs";
|
|
3
|
+
export { AddonFunction, AsyncPluginHooks, BindingMagicString, BufferEncoding, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, EmittedPrebuiltChunk, 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,12 +1,10 @@
|
|
|
1
|
-
import { t as require_binding } from "./shared/binding-
|
|
2
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
3
|
-
import "./shared/
|
|
4
|
-
import "./shared/
|
|
5
|
-
import
|
|
6
|
-
import "./shared/
|
|
7
|
-
import "./shared/
|
|
8
|
-
import "./shared/parse-ast-index-C44ewaWh.mjs";
|
|
9
|
-
import { t as rolldown } from "./shared/rolldown-CpwN72kC.mjs";
|
|
1
|
+
import { t as require_binding } from "./shared/binding-BgawCXFG.mjs";
|
|
2
|
+
import { n as onExit, t as watch } from "./shared/watch-CfGzq0YA.mjs";
|
|
3
|
+
import { y as VERSION } from "./shared/normalize-string-or-regex-CF1OWLn9.mjs";
|
|
4
|
+
import "./shared/rolldown-build-DtYoS8Tq.mjs";
|
|
5
|
+
import "./shared/bindingify-input-options-DvsExmEF.mjs";
|
|
6
|
+
import "./shared/parse-ast-index-DeJDe-DO.mjs";
|
|
7
|
+
import { t as rolldown } from "./shared/rolldown-BsTgRBvz.mjs";
|
|
10
8
|
import { t as defineConfig } from "./shared/define-config-DfeZGBEt.mjs";
|
|
11
9
|
import { isMainThread } from "node:worker_threads";
|
|
12
10
|
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { t as require_binding } from "./shared/binding-
|
|
2
|
-
import "./shared/
|
|
3
|
-
import "./shared/
|
|
4
|
-
import "./shared/
|
|
5
|
-
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-6nBAYjYP.mjs";
|
|
6
|
-
import "./shared/parse-ast-index-C44ewaWh.mjs";
|
|
1
|
+
import { t as require_binding } from "./shared/binding-BgawCXFG.mjs";
|
|
2
|
+
import "./shared/normalize-string-or-regex-CF1OWLn9.mjs";
|
|
3
|
+
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-DvsExmEF.mjs";
|
|
4
|
+
import "./shared/parse-ast-index-DeJDe-DO.mjs";
|
|
7
5
|
import { parentPort, workerData } from "node:worker_threads";
|
|
8
6
|
|
|
9
7
|
//#region src/parallel-plugin-worker.ts
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./shared/binding-
|
|
3
|
-
import { x as Plugin } from "./shared/define-config-9CiSl0uo.mjs";
|
|
1
|
+
import { Ct as MaybePromise, x as Plugin } from "./shared/define-config-COJu-A7R.mjs";
|
|
2
|
+
import "./shared/binding-yIBVkeOE.mjs";
|
|
4
3
|
|
|
5
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
6
5
|
type ParallelPluginImplementation = Plugin;
|
package/dist/parse-ast-index.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import "./shared/
|
|
3
|
-
import { n as parseAstAsync, t as parseAst } from "./shared/parse-ast-index-C44ewaWh.mjs";
|
|
1
|
+
import "./shared/binding-BgawCXFG.mjs";
|
|
2
|
+
import { n as parseAstAsync, t as parseAst } from "./shared/parse-ast-index-DeJDe-DO.mjs";
|
|
4
3
|
|
|
5
4
|
export { parseAst, parseAstAsync };
|
package/dist/plugins-index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u as BindingReplacePluginConfig } from "./shared/binding-
|
|
3
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
1
|
+
import { A as BuiltinPlugin } from "./shared/define-config-COJu-A7R.mjs";
|
|
2
|
+
import { u as BindingReplacePluginConfig } from "./shared/binding-yIBVkeOE.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-BgO0Ou3T.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/builtin-plugin/replace-plugin.d.ts
|
|
6
6
|
|
package/dist/plugins-index.mjs
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import "./shared/
|
|
3
|
-
import "./shared/
|
|
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";
|
|
1
|
+
import "./shared/binding-BgawCXFG.mjs";
|
|
2
|
+
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable } from "./shared/normalize-string-or-regex-CF1OWLn9.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-DqAPGbqJ.mjs";
|
|
6
4
|
|
|
7
5
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
8
6
|
/**
|