rolldown 1.0.0-beta.51 → 1.0.0-beta.53
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 +9 -10
- package/dist/config.d.mts +2 -3
- package/dist/config.mjs +7 -9
- package/dist/experimental-index.d.mts +30 -9
- package/dist/experimental-index.mjs +26 -17
- package/dist/filter-index.d.mts +2 -3
- package/dist/index.d.mts +2 -3
- 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-JavE2bkj.mjs → binding-BJqdPU1r.mjs} +31 -34
- package/dist/shared/{binding-lSvYApx7.d.mts → binding-CY7Z709f.d.mts} +59 -12
- package/dist/shared/{bindingify-input-options-C8RwNEVu.mjs → bindingify-input-options-Bk0BBr2s.mjs} +8 -6
- package/dist/shared/{constructors-DgFF472b.d.mts → constructors-CMvFUBhn.d.mts} +4 -5
- package/dist/shared/{constructors-D1fHJKvO.mjs → constructors-LQ8mmhQE.mjs} +5 -8
- package/dist/shared/{define-config-CXCkQG1z.d.mts → define-config-BS8Bt-r8.d.mts} +82 -11
- package/dist/shared/{load-config-WNwAzWN-.mjs → load-config-JSXrnuaS.mjs} +1 -1
- package/dist/shared/{normalize-string-or-regex-Bu88lzEx.mjs → normalize-string-or-regex-BhaIG1rU.mjs} +42 -5
- package/dist/shared/{parse-ast-index-DPVqqR9w.mjs → parse-ast-index-BFX0oHaQ.mjs} +21 -7
- package/dist/shared/{rolldown-Do5qEfGl.mjs → rolldown-Cqalltnr.mjs} +1 -1
- package/dist/shared/{rolldown-build-MAIadGaX.mjs → rolldown-build-BEU8N80I.mjs} +335 -189
- package/dist/shared/{watch-CUl9f7JR.mjs → watch-DBnC-zol.mjs} +4 -4
- package/package.json +21 -23
- package/dist/shared/utils-BJWI2OzT.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-BJqdPU1r.mjs";
|
|
2
|
+
import { n as onExit, t as watch } from "./shared/watch-DBnC-zol.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-BhaIG1rU.mjs";
|
|
5
|
+
import { a as getOutputCliKeys, c as styleText$1, i as getInputCliKeys, o as validateCliOptions, r as getCliSchemaInfo } from "./shared/rolldown-build-BEU8N80I.mjs";
|
|
6
|
+
import "./shared/bindingify-input-options-Bk0BBr2s.mjs";
|
|
7
|
+
import "./shared/parse-ast-index-BFX0oHaQ.mjs";
|
|
8
|
+
import { t as rolldown } from "./shared/rolldown-Cqalltnr.mjs";
|
|
9
|
+
import { t as loadConfig } from "./shared/load-config-JSXrnuaS.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";
|
|
@@ -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.101.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-CXCkQG1z.mjs";
|
|
1
|
+
import { n as ConfigExport, t as defineConfig } from "./shared/define-config-BS8Bt-r8.mjs";
|
|
2
|
+
import "./shared/binding-CY7Z709f.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-DPVqqR9w.mjs";
|
|
8
|
-
import "./shared/rolldown-Do5qEfGl.mjs";
|
|
1
|
+
import "./shared/binding-BJqdPU1r.mjs";
|
|
2
|
+
import { x as version } from "./shared/normalize-string-or-regex-BhaIG1rU.mjs";
|
|
3
|
+
import "./shared/rolldown-build-BEU8N80I.mjs";
|
|
4
|
+
import "./shared/bindingify-input-options-Bk0BBr2s.mjs";
|
|
5
|
+
import "./shared/parse-ast-index-BFX0oHaQ.mjs";
|
|
6
|
+
import "./shared/rolldown-Cqalltnr.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-JSXrnuaS.mjs";
|
|
11
9
|
|
|
12
10
|
//#region src/config.ts
|
|
13
11
|
const VERSION = version;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { _ as viteWebWorkerPostPlugin, a as viteDynamicImportVarsPlugin, c as viteJsonPlugin, d as viteModulePreloadPolyfillPlugin, f as viteReactRefreshWrapperPlugin, g as viteWasmHelperPlugin, h as viteWasmFallbackPlugin, i as viteCSSPostPlugin, l as viteLoadFallbackPlugin, m as viteResolvePlugin, n as isolatedDeclarationPlugin, o as viteHtmlInlineProxyPlugin, p as viteReporterPlugin, r as viteBuildImportAnalysisPlugin, s as viteImportGlobPlugin, u as viteManifestPlugin } from "./shared/constructors-DgFF472b.mjs";
|
|
1
|
+
import { A as BuiltinPlugin, Et as OutputChunk, F as OutputBundle, N as SourceMapInput, U as defineParallelPlugin, W as MinimalPluginContext, bt as OutputOptions, et as NormalizedOutputOptions, jt as freeExternalMemory, kt as RolldownOutput, o as InputOptions } from "./shared/define-config-BS8Bt-r8.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-CY7Z709f.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-CMvFUBhn.mjs";
|
|
5
4
|
|
|
6
5
|
//#region src/api/dev/dev-options.d.ts
|
|
7
6
|
type DevOnHmrUpdates = (result: Error | {
|
|
@@ -70,11 +69,11 @@ declare class DevEngine {
|
|
|
70
69
|
private constructor();
|
|
71
70
|
run(): Promise<void>;
|
|
72
71
|
ensureCurrentBuildFinish(): Promise<void>;
|
|
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
|
|
@@ -99,6 +98,16 @@ declare const dev: typeof DevEngine.create;
|
|
|
99
98
|
*/
|
|
100
99
|
declare const scan: (rawInputOptions: InputOptions, rawOutputOptions?: {}) => Promise<Promise<void>>;
|
|
101
100
|
//#endregion
|
|
101
|
+
//#region src/utils/parse.d.ts
|
|
102
|
+
/**
|
|
103
|
+
* Parse asynchronously.
|
|
104
|
+
*
|
|
105
|
+
* Note: This function can be slower than `parseSync` due to the overhead of spawning a thread.
|
|
106
|
+
*/
|
|
107
|
+
declare function parse(filename: string, sourceText: string, options?: ParserOptions | null): Promise<ParseResult>;
|
|
108
|
+
/** Parse synchronously. */
|
|
109
|
+
declare function parseSync(filename: string, sourceText: string, options?: ParserOptions | null): ParseResult;
|
|
110
|
+
//#endregion
|
|
102
111
|
//#region src/builtin-plugin/alias-plugin.d.ts
|
|
103
112
|
type ViteAliasPluginConfig = {
|
|
104
113
|
entries: {
|
|
@@ -132,6 +141,12 @@ type ViteCssPluginConfig = Omit<BindingViteCssPluginConfig, "compileCSS"> & {
|
|
|
132
141
|
};
|
|
133
142
|
declare function viteCSSPlugin(config?: ViteCssPluginConfig): BuiltinPlugin;
|
|
134
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;
|
|
149
|
+
//#endregion
|
|
135
150
|
//#region src/builtin-plugin/vite-html-plugin.d.ts
|
|
136
151
|
interface HtmlTagDescriptor {
|
|
137
152
|
tag: string;
|
|
@@ -162,7 +177,7 @@ interface IndexHtmlTransformContext {
|
|
|
162
177
|
bundle?: OutputBundle;
|
|
163
178
|
chunk?: OutputChunk;
|
|
164
179
|
}
|
|
165
|
-
interface ViteHtmlPluginOptions extends Omit<BindingViteHtmlPluginConfig, "transformIndexHtml"> {
|
|
180
|
+
interface ViteHtmlPluginOptions extends Omit<BindingViteHtmlPluginConfig, "transformIndexHtml" | "setModuleSideEffects"> {
|
|
166
181
|
preHooks: IndexHtmlTransformHook[];
|
|
167
182
|
normalHooks: IndexHtmlTransformHook[];
|
|
168
183
|
postHooks: IndexHtmlTransformHook[];
|
|
@@ -170,4 +185,10 @@ interface ViteHtmlPluginOptions extends Omit<BindingViteHtmlPluginConfig, "trans
|
|
|
170
185
|
}
|
|
171
186
|
declare function viteHtmlPlugin(config?: ViteHtmlPluginOptions): BuiltinPlugin;
|
|
172
187
|
//#endregion
|
|
173
|
-
|
|
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;
|
|
193
|
+
//#endregion
|
|
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 "./shared/parse-ast-index-DPVqqR9w.mjs";
|
|
8
|
-
import { _ as viteWebWorkerPostPlugin, a as viteDynamicImportVarsPlugin, c as viteJsonPlugin, d as viteModulePreloadPolyfillPlugin, f as viteReactRefreshWrapperPlugin, g as viteWasmHelperPlugin, h as viteWasmFallbackPlugin, i as viteCSSPostPlugin, l as viteLoadFallbackPlugin, m as viteResolvePlugin, n as isolatedDeclarationPlugin, o as viteHtmlInlineProxyPlugin, p as viteReporterPlugin, r as viteBuildImportAnalysisPlugin, s as viteImportGlobPlugin, u as viteManifestPlugin } from "./shared/constructors-D1fHJKvO.mjs";
|
|
1
|
+
import { t as require_binding } from "./shared/binding-BJqdPU1r.mjs";
|
|
2
|
+
import { d as bindingifySourcemap, n as BuiltinPlugin, t as normalizedStringOrRegex, u as transformToRollupOutput } from "./shared/normalize-string-or-regex-BhaIG1rU.mjs";
|
|
3
|
+
import { l as PluginDriver, n as createBundlerOptions, s as validateOption, t as RolldownBuild } from "./shared/rolldown-build-BEU8N80I.mjs";
|
|
4
|
+
import { o as normalizeBindingResult, s as unwrapBindingResult } from "./shared/bindingify-input-options-Bk0BBr2s.mjs";
|
|
5
|
+
import { i as parseSync, r as parse } from "./shared/parse-ast-index-BFX0oHaQ.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-LQ8mmhQE.mjs";
|
|
9
7
|
import { pathToFileURL } from "node:url";
|
|
10
8
|
|
|
11
9
|
//#region src/api/dev/dev-engine.ts
|
|
@@ -67,8 +65,8 @@ var DevEngine = class DevEngine {
|
|
|
67
65
|
this.#cachedBuildFinishPromise = promise;
|
|
68
66
|
return promise;
|
|
69
67
|
}
|
|
70
|
-
async
|
|
71
|
-
return this.#inner.
|
|
68
|
+
async getBundleState() {
|
|
69
|
+
return this.#inner.getBundleState();
|
|
72
70
|
}
|
|
73
71
|
async ensureLatestBuildOutput() {
|
|
74
72
|
await this.#inner.ensureLatestBuildOutput();
|
|
@@ -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();
|
|
@@ -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,13 +248,12 @@ 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;
|
|
244
255
|
var minifySync = import_binding.minifySync;
|
|
245
256
|
var moduleRunnerTransform = import_binding.moduleRunnerTransform;
|
|
246
|
-
var parse = import_binding.parse;
|
|
247
|
-
var parseSync = import_binding.parseSync;
|
|
248
257
|
var transform = import_binding.transform;
|
|
249
258
|
var transformSync = import_binding.transformSync;
|
|
250
|
-
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, 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-CXCkQG1z.mjs";
|
|
1
|
+
import { k as withFilter } from "./shared/define-config-BS8Bt-r8.mjs";
|
|
2
|
+
import "./shared/binding-CY7Z709f.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 {
|
|
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-CXCkQG1z.mjs";
|
|
1
|
+
import { $ as InternalModuleFormat, At as SourceMap, B as GetModuleInfo, C as ResolveIdResult, Ct as PartialNull, D as SourceDescription, Dt as RenderedChunk, E as RolldownPluginOption, Et as OutputChunk, F as OutputBundle, Ft as LogLevelOption, G as PluginContextMeta, H as DefineParallelPluginResult, I as TreeshakingOptions, It as LogOrStringHandler, J as ModuleTypeFilter, K as GeneralHookFilter, L as TransformPluginContext, Lt as RollupError, M as ExistingRawSourceMap, Mt as ModuleInfo, N as SourceMapInput, Nt as SourcemapIgnoreListOption, O as TransformResult, Ot as RenderedModule, P as RolldownOptionsFunction, Pt as LogLevel, Q as RolldownFsModule, R as EmittedAsset, Rt as RollupLog, S as ResolveIdExtraOptions, T as RolldownPlugin, Tt as OutputAsset, V as PluginContext, W as MinimalPluginContext, X as RolldownDirectoryEntry, Y as BufferEncoding, Z as RolldownFileStats, _ as ModuleType, _t as GlobalsFunction, a as InputOption, at as RolldownWatcher, b as PartialResolvedId, bt as OutputOptions, c as OptimizationOptions, ct as rolldown, d as CustomPluginOptions, dt as build, et as NormalizedOutputOptions, f as FunctionPluginHooks, ft as AddonFunction, g as ModuleOptions, gt as GeneratedCodePreset, h as LoadResult, ht as GeneratedCodeOptions, i as ExternalOption, it as watch, j as VERSION, kt as RolldownOutput, l as WatcherOptions, lt as RolldownBuild, m as ImportKind, mt as ChunkingContext, n as ConfigExport, nt as LoggingFunction, o as InputOptions, ot as RolldownWatcherEvent, p as HookFilterExtension, pt as ChunkFileNamesFunction, q as HookFilter, r as RolldownOptions, rt as WarningHandlerWithDefault, s as ModuleTypes, st as WatchOptions, t as defineConfig, tt as NormalizedInputOptions, u as AsyncPluginHooks, ut as BuildOptions, v as ObjectHook, vt as MinifyOptions, w as ResolvedId, x as Plugin, xt as PreRenderedAsset, y as ParallelPluginHooks, yt as ModuleFormat, z as EmittedFile, zt as RollupLogWithString } from "./shared/define-config-BS8Bt-r8.mjs";
|
|
2
|
+
import { V as PreRenderedChunk, s as BindingMagicString } from "./shared/binding-CY7Z709f.mjs";
|
|
4
3
|
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,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-DPVqqR9w.mjs";
|
|
9
|
-
import { t as rolldown } from "./shared/rolldown-Do5qEfGl.mjs";
|
|
1
|
+
import { t as require_binding } from "./shared/binding-BJqdPU1r.mjs";
|
|
2
|
+
import { n as onExit, t as watch } from "./shared/watch-DBnC-zol.mjs";
|
|
3
|
+
import { y as VERSION } from "./shared/normalize-string-or-regex-BhaIG1rU.mjs";
|
|
4
|
+
import "./shared/rolldown-build-BEU8N80I.mjs";
|
|
5
|
+
import "./shared/bindingify-input-options-Bk0BBr2s.mjs";
|
|
6
|
+
import "./shared/parse-ast-index-BFX0oHaQ.mjs";
|
|
7
|
+
import { t as rolldown } from "./shared/rolldown-Cqalltnr.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-C8RwNEVu.mjs";
|
|
6
|
-
import "./shared/parse-ast-index-DPVqqR9w.mjs";
|
|
1
|
+
import { t as require_binding } from "./shared/binding-BJqdPU1r.mjs";
|
|
2
|
+
import "./shared/normalize-string-or-regex-BhaIG1rU.mjs";
|
|
3
|
+
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-Bk0BBr2s.mjs";
|
|
4
|
+
import "./shared/parse-ast-index-BFX0oHaQ.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-CXCkQG1z.mjs";
|
|
1
|
+
import { St as MaybePromise, x as Plugin } from "./shared/define-config-BS8Bt-r8.mjs";
|
|
2
|
+
import "./shared/binding-CY7Z709f.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-DPVqqR9w.mjs";
|
|
1
|
+
import "./shared/binding-BJqdPU1r.mjs";
|
|
2
|
+
import { n as parseAstAsync, t as parseAst } from "./shared/parse-ast-index-BFX0oHaQ.mjs";
|
|
4
3
|
|
|
5
4
|
export { parseAst, parseAstAsync };
|
package/dist/plugins-index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
1
|
+
import { A as BuiltinPlugin } from "./shared/define-config-BS8Bt-r8.mjs";
|
|
2
|
+
import { u as BindingReplacePluginConfig } from "./shared/binding-CY7Z709f.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-CMvFUBhn.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-Bu88lzEx.mjs";
|
|
5
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-D1fHJKvO.mjs";
|
|
1
|
+
import "./shared/binding-BJqdPU1r.mjs";
|
|
2
|
+
import { n as BuiltinPlugin, s as makeBuiltinPluginCallable } from "./shared/normalize-string-or-regex-BhaIG1rU.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-LQ8mmhQE.mjs";
|
|
6
4
|
|
|
7
5
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
8
6
|
/**
|