rolldown 1.0.0-beta.42 → 1.0.0-beta.44
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/bin/cli.mjs +1 -0
- package/dist/cli-setup.d.mts +1 -0
- package/dist/cli-setup.mjs +16 -0
- package/dist/cli.mjs +1047 -68
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +5 -4
- package/dist/experimental-index.d.mts +26 -5
- package/dist/experimental-index.mjs +56 -15
- package/dist/filter-index.d.mts +2 -2
- package/dist/filter-index.mjs +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +5 -4
- package/dist/parallel-plugin-worker.mjs +4 -3
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +2 -1
- package/dist/shared/{parse-ast-index-DHblAIjN.mjs → binding-DkR1uPxc.mjs} +102 -366
- package/dist/shared/{binding-CtbNz6TD.d.mts → binding-QBosa6N8.d.mts} +108 -17
- package/dist/shared/{define-config-C9Rp3knL.d.mts → define-config-D9LwN_tW.d.mts} +250 -87
- package/dist/shared/{load-config-a7bPxI7K.mjs → load-config-BwIN-FIB.mjs} +2 -2
- package/dist/shared/{misc-CQeo-AFx.mjs → misc-usdOVIou.mjs} +1 -1
- package/dist/shared/parse-ast-index-Dee9Dv5S.mjs +297 -0
- package/dist/shared/{prompt-B4e-jZUR.mjs → prompt-YGfbLmz5.mjs} +1 -1
- package/dist/shared/{src-CUdyD4rb.mjs → src-DY4_vVWu.mjs} +137 -94
- package/package.json +19 -20
- package/dist/shared/logger-B83ocDok.mjs +0 -985
package/dist/config.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/
|
|
2
|
-
import
|
|
1
|
+
import { n as ConfigExport, t as defineConfig } from "./shared/define-config-D9LwN_tW.mjs";
|
|
2
|
+
import "./shared/binding-QBosa6N8.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/load-config.d.ts
|
|
5
5
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
package/dist/config.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import "./shared/
|
|
2
|
-
import {
|
|
3
|
-
import "./shared/
|
|
4
|
-
import
|
|
1
|
+
import "./shared/binding-DkR1uPxc.mjs";
|
|
2
|
+
import { S as version, n as defineConfig } from "./shared/src-DY4_vVWu.mjs";
|
|
3
|
+
import "./shared/parse-ast-index-Dee9Dv5S.mjs";
|
|
4
|
+
import "./shared/misc-usdOVIou.mjs";
|
|
5
|
+
import { t as loadConfig } from "./shared/load-config-BwIN-FIB.mjs";
|
|
5
6
|
|
|
6
7
|
//#region src/config.ts
|
|
7
8
|
const VERSION = version;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { A as BuiltinPlugin, N as SourceMapInput, U as defineParallelPlugin, bt as OutputOptions, kt as RolldownOutput, o as InputOptions, wt as StringOrRegExp } from "./shared/define-config-D9LwN_tW.mjs";
|
|
2
|
+
import { A as IsolatedDeclarationsResult, B as TransformResult, C as BindingViteCssPluginConfig, D as BindingWasmHelperPluginConfig, E as BindingViteResolvePluginConfig, H as moduleRunnerTransform, L as ResolveResult, N as NapiResolveOptions, R as ResolverFactory, S as BindingUrlResolver, T as BindingViteHtmlPluginConfig, U as transform, V as isolatedDeclaration, a as BindingClientHmrUpdate, d as BindingJsonPluginConfig, g as BindingRebuildStrategy, h as BindingReactRefreshWrapperPluginConfig, k as IsolatedDeclarationsOptions, l as BindingImportGlobPluginConfig, m as BindingModulePreloadPolyfillPluginConfig, n as BindingBuildImportAnalysisPluginConfig, o as BindingDynamicImportVarsPluginConfig, p as BindingManifestPluginConfig, s as BindingEsmExternalRequirePluginConfig, t as BindingAssetPluginConfig, u as BindingIsolatedDeclarationPluginConfig, v as BindingReplacePluginConfig, w as BindingViteCssPostPluginConfig, x as BindingTransformPluginConfig, y as BindingReporterPluginConfig, z as TransformOptions } from "./shared/binding-QBosa6N8.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/dev/dev-options.d.ts
|
|
5
|
+
type DevOnHmrUpdates = (result: Error | {
|
|
6
|
+
updates: BindingClientHmrUpdate[];
|
|
7
|
+
changedFiles: string[];
|
|
8
|
+
}) => void | Promise<void>;
|
|
9
|
+
type DevOnOutput = (result: Error | RolldownOutput) => void | Promise<void>;
|
|
5
10
|
interface DevWatchOptions {
|
|
6
11
|
/**
|
|
7
12
|
* If `true`, files are not written to disk.
|
|
@@ -43,7 +48,8 @@ interface DevWatchOptions {
|
|
|
43
48
|
debounceTickRate?: number;
|
|
44
49
|
}
|
|
45
50
|
interface DevOptions {
|
|
46
|
-
onHmrUpdates?:
|
|
51
|
+
onHmrUpdates?: DevOnHmrUpdates;
|
|
52
|
+
onOutput?: DevOnOutput;
|
|
47
53
|
/**
|
|
48
54
|
* Strategy for triggering rebuilds after HMR updates.
|
|
49
55
|
* - `'always'`: Always trigger a rebuild after HMR updates
|
|
@@ -98,7 +104,6 @@ declare function jsonPlugin(config?: BindingJsonPluginConfig): BuiltinPlugin;
|
|
|
98
104
|
declare function buildImportAnalysisPlugin(config: BindingBuildImportAnalysisPluginConfig): BuiltinPlugin;
|
|
99
105
|
declare function viteResolvePlugin(config: BindingViteResolvePluginConfig): BuiltinPlugin;
|
|
100
106
|
declare function isolatedDeclarationPlugin(config?: BindingIsolatedDeclarationPluginConfig): BuiltinPlugin;
|
|
101
|
-
declare function assetPlugin(config?: BindingAssetPluginConfig): BuiltinPlugin;
|
|
102
107
|
declare function webWorkerPostPlugin(): BuiltinPlugin;
|
|
103
108
|
declare function esmExternalRequirePlugin(config?: BindingEsmExternalRequirePluginConfig): BuiltinPlugin;
|
|
104
109
|
type ReactRefreshWrapperPluginConfig = Omit<BindingReactRefreshWrapperPluginConfig, "include" | "exclude"> & {
|
|
@@ -106,6 +111,8 @@ type ReactRefreshWrapperPluginConfig = Omit<BindingReactRefreshWrapperPluginConf
|
|
|
106
111
|
exclude?: StringOrRegExp | StringOrRegExp[];
|
|
107
112
|
};
|
|
108
113
|
declare function reactRefreshWrapperPlugin(config: ReactRefreshWrapperPluginConfig): BuiltinPlugin;
|
|
114
|
+
declare function viteCSSPostPlugin(config?: BindingViteCssPostPluginConfig): BuiltinPlugin;
|
|
115
|
+
declare function viteHtmlPlugin(config?: BindingViteHtmlPluginConfig): BuiltinPlugin;
|
|
109
116
|
//#endregion
|
|
110
117
|
//#region src/builtin-plugin/alias-plugin.d.ts
|
|
111
118
|
type AliasPluginAlias = {
|
|
@@ -117,6 +124,9 @@ type AliasPluginConfig = {
|
|
|
117
124
|
};
|
|
118
125
|
declare function aliasPlugin(config: AliasPluginConfig): BuiltinPlugin;
|
|
119
126
|
//#endregion
|
|
127
|
+
//#region src/builtin-plugin/asset-plugin.d.ts
|
|
128
|
+
declare function assetPlugin(config: BindingAssetPluginConfig): BuiltinPlugin;
|
|
129
|
+
//#endregion
|
|
120
130
|
//#region src/builtin-plugin/replace-plugin.d.ts
|
|
121
131
|
/**
|
|
122
132
|
* Replaces targeted strings in files while bundling.
|
|
@@ -152,4 +162,15 @@ type TransformPluginConfig = Omit<BindingTransformPluginConfig, "include" | "exc
|
|
|
152
162
|
};
|
|
153
163
|
declare function transformPlugin(config?: TransformPluginConfig): BuiltinPlugin;
|
|
154
164
|
//#endregion
|
|
155
|
-
|
|
165
|
+
//#region src/builtin-plugin/vite-css-plugin.d.ts
|
|
166
|
+
type ViteCssPluginConfig = Omit<BindingViteCssPluginConfig, "compileCSS"> & {
|
|
167
|
+
compileCSS: (url: string, importer: string, resolver: BindingUrlResolver) => Promise<{
|
|
168
|
+
code: string;
|
|
169
|
+
map?: SourceMapInput;
|
|
170
|
+
modules?: Record<string, string>;
|
|
171
|
+
deps?: Set<string>;
|
|
172
|
+
}>;
|
|
173
|
+
};
|
|
174
|
+
declare function viteCSSPlugin(config?: ViteCssPluginConfig): BuiltinPlugin;
|
|
175
|
+
//#endregion
|
|
176
|
+
export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, type TransformOptions, type TransformResult, aliasPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dev, dynamicImportVarsPlugin, esmExternalRequirePlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, reactRefreshWrapperPlugin, replacePlugin, reporterPlugin, scan, transform, transformPlugin, viteCSSPlugin, viteCSSPostPlugin, viteHtmlPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "./shared/
|
|
4
|
-
import
|
|
1
|
+
import { _ as isolatedDeclaration, a as BindingDevEngine, d as BindingRebuildStrategy, m as ResolverFactory, v as moduleRunnerTransform, w as transform } from "./shared/binding-DkR1uPxc.mjs";
|
|
2
|
+
import { b as makeBuiltinPluginCallable, c as normalizedStringOrRegex, d as transformToRollupOutput, f as normalizeBindingResult, o as RolldownBuild, p as bindingifySourcemap, s as createBundlerOptions, v as PluginDriver, y as BuiltinPlugin } from "./shared/src-DY4_vVWu.mjs";
|
|
3
|
+
import "./shared/parse-ast-index-Dee9Dv5S.mjs";
|
|
4
|
+
import "./shared/misc-usdOVIou.mjs";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
6
6
|
|
|
7
7
|
//#region src/api/dev/dev-engine.ts
|
|
@@ -11,8 +11,30 @@ var DevEngine = class DevEngine {
|
|
|
11
11
|
static async create(inputOptions, outputOptions = {}, devOptions = {}) {
|
|
12
12
|
inputOptions = await PluginDriver.callOptionsHook(inputOptions);
|
|
13
13
|
const options = await createBundlerOptions(inputOptions, outputOptions, false);
|
|
14
|
+
const userOnHmrUpdates = devOptions.onHmrUpdates;
|
|
15
|
+
const bindingOnHmrUpdates = userOnHmrUpdates ? function(rawResult) {
|
|
16
|
+
const result = normalizeBindingResult(rawResult);
|
|
17
|
+
if (result instanceof Error) {
|
|
18
|
+
userOnHmrUpdates(result);
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
const [updates, changedFiles] = result;
|
|
22
|
+
userOnHmrUpdates({
|
|
23
|
+
updates,
|
|
24
|
+
changedFiles
|
|
25
|
+
});
|
|
26
|
+
} : void 0;
|
|
27
|
+
const userOnOutput = devOptions.onOutput;
|
|
14
28
|
const bindingDevOptions = {
|
|
15
|
-
onHmrUpdates:
|
|
29
|
+
onHmrUpdates: bindingOnHmrUpdates,
|
|
30
|
+
onOutput: userOnOutput ? function(rawResult) {
|
|
31
|
+
const result = normalizeBindingResult(rawResult);
|
|
32
|
+
if (result instanceof Error) {
|
|
33
|
+
userOnOutput(result);
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
userOnOutput(transformToRollupOutput(result));
|
|
37
|
+
} : void 0,
|
|
16
38
|
rebuildStrategy: devOptions.rebuildStrategy ? devOptions.rebuildStrategy === "always" ? BindingRebuildStrategy.Always : devOptions.rebuildStrategy === "auto" ? BindingRebuildStrategy.Auto : BindingRebuildStrategy.Never : void 0,
|
|
17
39
|
watch: devOptions.watch && {
|
|
18
40
|
skipWrite: devOptions.watch.skipWrite,
|
|
@@ -133,9 +155,6 @@ function viteResolvePlugin(config) {
|
|
|
133
155
|
function isolatedDeclarationPlugin(config) {
|
|
134
156
|
return new BuiltinPlugin("builtin:isolated-declaration", config);
|
|
135
157
|
}
|
|
136
|
-
function assetPlugin(config) {
|
|
137
|
-
return new BuiltinPlugin("builtin:asset", config);
|
|
138
|
-
}
|
|
139
158
|
function webWorkerPostPlugin() {
|
|
140
159
|
return new BuiltinPlugin("builtin:web-worker-post");
|
|
141
160
|
}
|
|
@@ -149,6 +168,12 @@ function reactRefreshWrapperPlugin(config) {
|
|
|
149
168
|
}
|
|
150
169
|
return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:react-refresh-wrapper", config));
|
|
151
170
|
}
|
|
171
|
+
function viteCSSPostPlugin(config) {
|
|
172
|
+
return new BuiltinPlugin("builtin:vite-css-post", config);
|
|
173
|
+
}
|
|
174
|
+
function viteHtmlPlugin(config) {
|
|
175
|
+
return new BuiltinPlugin("builtin:vite-html", config);
|
|
176
|
+
}
|
|
152
177
|
|
|
153
178
|
//#endregion
|
|
154
179
|
//#region src/builtin-plugin/alias-plugin.ts
|
|
@@ -156,6 +181,12 @@ function aliasPlugin(config) {
|
|
|
156
181
|
return new BuiltinPlugin("builtin:alias", config);
|
|
157
182
|
}
|
|
158
183
|
|
|
184
|
+
//#endregion
|
|
185
|
+
//#region src/builtin-plugin/asset-plugin.ts
|
|
186
|
+
function assetPlugin(config) {
|
|
187
|
+
return new BuiltinPlugin("builtin:asset", config);
|
|
188
|
+
}
|
|
189
|
+
|
|
159
190
|
//#endregion
|
|
160
191
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
161
192
|
/**
|
|
@@ -181,15 +212,10 @@ function aliasPlugin(config) {
|
|
|
181
212
|
* ```
|
|
182
213
|
*/
|
|
183
214
|
function replacePlugin(values = {}, options = {}) {
|
|
184
|
-
let hasNonStringValues = false;
|
|
185
215
|
Object.keys(values).forEach((key) => {
|
|
186
216
|
const value = values[key];
|
|
187
|
-
if (typeof value !== "string")
|
|
188
|
-
hasNonStringValues = true;
|
|
189
|
-
values[key] = String(value);
|
|
190
|
-
}
|
|
217
|
+
if (typeof value !== "string") values[key] = String(value);
|
|
191
218
|
});
|
|
192
|
-
if (hasNonStringValues) logger.warn("Some values provided to `replacePlugin` are not strings. They will be converted to strings, but for better performance consider converting them manually.");
|
|
193
219
|
return new BuiltinPlugin("builtin:replace", {
|
|
194
220
|
...options,
|
|
195
221
|
values
|
|
@@ -210,4 +236,19 @@ function transformPlugin(config) {
|
|
|
210
236
|
}
|
|
211
237
|
|
|
212
238
|
//#endregion
|
|
213
|
-
|
|
239
|
+
//#region src/builtin-plugin/vite-css-plugin.ts
|
|
240
|
+
function viteCSSPlugin(config) {
|
|
241
|
+
return new BuiltinPlugin("builtin:vite-css", config ? {
|
|
242
|
+
...config,
|
|
243
|
+
async compileCSS(url, importer, resolver) {
|
|
244
|
+
let result = await config.compileCSS(url, importer, resolver);
|
|
245
|
+
return {
|
|
246
|
+
...result,
|
|
247
|
+
map: bindingifySourcemap(result.map)
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
} : void 0);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
//#endregion
|
|
254
|
+
export { BindingRebuildStrategy, DevEngine, ResolverFactory, aliasPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dev, dynamicImportVarsPlugin, esmExternalRequirePlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, reactRefreshWrapperPlugin, replacePlugin, reporterPlugin, scan, transform, transformPlugin, viteCSSPlugin, viteCSSPostPlugin, viteHtmlPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin };
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./shared/
|
|
2
|
-
import
|
|
1
|
+
import { k as withFilter } from "./shared/define-config-D9LwN_tW.mjs";
|
|
2
|
+
import "./shared/binding-QBosa6N8.mjs";
|
|
3
3
|
import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
|
|
4
4
|
export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
|
package/dist/filter-index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as isPromiseLike, t as arraify } from "./shared/misc-usdOVIou.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,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export { AddonFunction, AsyncPluginHooks, 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 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 LogOrStringHandler, G as PluginContextMeta, H as DefineParallelPluginResult, I as TreeshakingOptions, It as RollupError, J as ModuleTypeFilter, K as GeneralHookFilter, L as TransformPluginContext, Lt as RollupLog, M as ExistingRawSourceMap, Mt as SourcemapIgnoreListOption, N as SourceMapInput, Nt as LogLevel, O as TransformResult, Ot as RenderedModule, P as RolldownOptionsFunction, Pt as LogLevelOption, Q as RolldownFsModule, R as EmittedAsset, Rt as RollupLogWithString, 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, jt as ModuleInfo, 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 } from "./shared/define-config-D9LwN_tW.mjs";
|
|
2
|
+
import { I as PreRenderedChunk, f as BindingMagicString } from "./shared/binding-QBosa6N8.mjs";
|
|
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,5 +1,6 @@
|
|
|
1
|
-
import "./shared/
|
|
2
|
-
import {
|
|
3
|
-
import "./shared/
|
|
1
|
+
import { s as BindingMagicString } from "./shared/binding-DkR1uPxc.mjs";
|
|
2
|
+
import { a as rolldown, i as build, n as defineConfig, r as watch, t as VERSION } from "./shared/src-DY4_vVWu.mjs";
|
|
3
|
+
import "./shared/parse-ast-index-Dee9Dv5S.mjs";
|
|
4
|
+
import "./shared/misc-usdOVIou.mjs";
|
|
4
5
|
|
|
5
|
-
export { VERSION, build, defineConfig, rolldown, watch };
|
|
6
|
+
export { BindingMagicString, VERSION, build, defineConfig, rolldown, watch };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { registerPlugins } from "./shared/
|
|
2
|
-
import { PluginContextData, bindingifyPlugin } from "./shared/src-
|
|
3
|
-
import "./shared/
|
|
1
|
+
import { x as registerPlugins } from "./shared/binding-DkR1uPxc.mjs";
|
|
2
|
+
import { l as PluginContextData, u as bindingifyPlugin } from "./shared/src-DY4_vVWu.mjs";
|
|
3
|
+
import "./shared/parse-ast-index-Dee9Dv5S.mjs";
|
|
4
|
+
import "./shared/misc-usdOVIou.mjs";
|
|
4
5
|
import { parentPort, workerData } from "node:worker_threads";
|
|
5
6
|
|
|
6
7
|
//#region src/parallel-plugin-worker.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/
|
|
2
|
-
import
|
|
1
|
+
import { St as MaybePromise, x as Plugin } from "./shared/define-config-D9LwN_tW.mjs";
|
|
2
|
+
import "./shared/binding-QBosa6N8.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
package/dist/parse-ast-index.mjs
CHANGED