@rolldown/browser 1.0.0-beta.39 → 1.0.0-beta.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +5 -5
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +3 -3
- package/dist/experimental-index.browser.mjs +12 -13
- package/dist/experimental-index.d.mts +8 -9
- package/dist/experimental-index.mjs +14 -15
- package/dist/experimental-runtime-types.d.ts +6 -0
- package/dist/filter-index.d.mts +3 -2
- package/dist/index.browser.mjs +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +2 -2
- package/dist/parallel-plugin-worker.mjs +2 -2
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/rolldown-binding.wasi-browser.js +2 -0
- package/dist/rolldown-binding.wasi.cjs +2 -0
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/shared/{binding-aYdpw2Yk.d.mts → binding-DOpOtI1J.d.mts} +11 -17
- package/dist/shared/{define-config-BtZ0vxTw.d.mts → define-config-DzdeQbht.d.mts} +60 -85
- package/dist/shared/{load-config-CqwQxoUE.mjs → load-config-Dk8qZvLs.mjs} +1 -1
- package/dist/shared/{logger-CiCY7ucm.mjs → logger-ClMekpHZ.mjs} +1 -1
- package/dist/shared/{parse-ast-index-CIyujJMQ.mjs → parse-ast-index-CTl_R-Xm.mjs} +1 -1
- package/dist/shared/{prompt-D2FxOcB5.mjs → prompt-R6XhwkxA.mjs} +10 -10
- package/dist/shared/{src-ChJBGGvK.mjs → src-DnNenssl.mjs} +212 -216
- package/dist/{src-Da5FndSU.js → src-D3uOoJau.js} +219 -223
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ansis_default, description, getCliSchemaInfo, getInputCliKeys, getOutputCliKeys, onExit, rolldown, validateCliOptions, version, watch } from "./shared/src-
|
|
2
|
-
import "./shared/parse-ast-index-
|
|
1
|
+
import { ansis_default, description, getCliSchemaInfo, getInputCliKeys, getOutputCliKeys, onExit, rolldown, validateCliOptions, version, watch } from "./shared/src-DnNenssl.mjs";
|
|
2
|
+
import "./shared/parse-ast-index-CTl_R-Xm.mjs";
|
|
3
3
|
import { arraify } from "./shared/dist-CHTC3-kR.mjs";
|
|
4
|
-
import { logger } from "./shared/logger-
|
|
5
|
-
import { loadConfig } from "./shared/load-config-
|
|
4
|
+
import { logger } from "./shared/logger-ClMekpHZ.mjs";
|
|
5
|
+
import { loadConfig } from "./shared/load-config-Dk8qZvLs.mjs";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import { parseArgs } from "node:util";
|
|
8
8
|
import process$1 from "node:process";
|
|
@@ -241,7 +241,7 @@ function getClearScreenFunction(options$1) {
|
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
//#endregion
|
|
244
|
-
//#region \0@oxc-project+runtime@0.
|
|
244
|
+
//#region \0@oxc-project+runtime@0.93.0/helpers/usingCtx.js
|
|
245
245
|
function _usingCtx() {
|
|
246
246
|
var r = "function" == typeof SuppressedError ? SuppressedError : function(r$1, e$1) {
|
|
247
247
|
var n$1 = Error();
|
package/dist/config.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { ConfigExport, defineConfig } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-DOpOtI1J.mjs";
|
|
2
|
+
import { ConfigExport, defineConfig } from "./shared/define-config-DzdeQbht.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,7 @@
|
|
|
1
|
-
import { defineConfig, version } from "./shared/src-
|
|
2
|
-
import "./shared/parse-ast-index-
|
|
1
|
+
import { defineConfig, version } from "./shared/src-DnNenssl.mjs";
|
|
2
|
+
import "./shared/parse-ast-index-CTl_R-Xm.mjs";
|
|
3
3
|
import "./shared/dist-CHTC3-kR.mjs";
|
|
4
|
-
import { loadConfig } from "./shared/load-config-
|
|
4
|
+
import { loadConfig } from "./shared/load-config-Dk8qZvLs.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/config.ts
|
|
7
7
|
const VERSION = version;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BuiltinPlugin, PluginDriver, RolldownBuild, createBundlerOptions, makeBuiltinPluginCallable, normalizedStringOrRegex } from "./src-
|
|
2
|
-
import { BindingDevEngine, ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi-browser.js";
|
|
1
|
+
import { BuiltinPlugin, PluginDriver, RolldownBuild, createBundlerOptions, makeBuiltinPluginCallable, normalizedStringOrRegex } from "./src-D3uOoJau.js";
|
|
2
|
+
import { BindingClientHmrUpdate, BindingDevEngine, ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi-browser.js";
|
|
3
3
|
|
|
4
4
|
//#region src/api/dev/dev-engine.ts
|
|
5
5
|
var DevEngine = class DevEngine {
|
|
@@ -37,22 +37,21 @@ var DevEngine = class DevEngine {
|
|
|
37
37
|
this.#cachedBuildFinishPromise = promise;
|
|
38
38
|
return promise;
|
|
39
39
|
}
|
|
40
|
+
async hasLatestBuildOutput() {
|
|
41
|
+
return this.#inner.hasLatestBuildOutput();
|
|
42
|
+
}
|
|
40
43
|
async ensureLatestBuildOutput() {
|
|
41
44
|
await this.#inner.ensureLatestBuildOutput();
|
|
42
45
|
}
|
|
43
|
-
/**
|
|
44
|
-
* Returns true if a new build is scheduled.
|
|
45
|
-
*/
|
|
46
|
-
async scheduleBuildIfStale() {
|
|
47
|
-
const scheduled = await this.#inner.scheduleBuildIfStale();
|
|
48
|
-
if (scheduled) {
|
|
49
|
-
scheduled.wait().catch(() => {});
|
|
50
|
-
return scheduled.alreadyScheduled() ? "alreadyScheduled" : "scheduled";
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
46
|
async invalidate(file, firstInvalidatedBy) {
|
|
54
47
|
return this.#inner.invalidate(file, firstInvalidatedBy);
|
|
55
48
|
}
|
|
49
|
+
registerModules(clientId, modules) {
|
|
50
|
+
this.#inner.registerModules(clientId, modules);
|
|
51
|
+
}
|
|
52
|
+
removeClient(clientId) {
|
|
53
|
+
this.#inner.removeClient(clientId);
|
|
54
|
+
}
|
|
56
55
|
};
|
|
57
56
|
|
|
58
57
|
//#endregion
|
|
@@ -648,4 +647,4 @@ function transformPlugin(config) {
|
|
|
648
647
|
}
|
|
649
648
|
|
|
650
649
|
//#endregion
|
|
651
|
-
export { DevEngine, ResolverFactory, aliasPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dev, dynamicImportVarsPlugin, esmExternalRequirePlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, reactRefreshWrapperPlugin, replacePlugin, reporterPlugin, scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin };
|
|
650
|
+
export { BindingClientHmrUpdate, DevEngine, ResolverFactory, aliasPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dev, dynamicImportVarsPlugin, esmExternalRequirePlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, reactRefreshWrapperPlugin, replacePlugin, reporterPlugin, scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingDynamicImportVarsPluginConfig, BindingEsmExternalRequirePluginConfig,
|
|
2
|
-
import { BuiltinPlugin, InputOptions, OutputOptions, StringOrRegExp, defineParallelPlugin } from "./shared/define-config-
|
|
1
|
+
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingClientHmrUpdate, BindingDynamicImportVarsPluginConfig, BindingEsmExternalRequirePluginConfig, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingModulePreloadPolyfillPluginConfig, BindingReactRefreshWrapperPluginConfig, BindingReplacePluginConfig, BindingReporterPluginConfig, BindingTransformPluginConfig, BindingViteResolvePluginConfig, BindingWasmHelperPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-DOpOtI1J.mjs";
|
|
2
|
+
import { BuiltinPlugin, InputOptions, OutputOptions, StringOrRegExp, defineParallelPlugin } from "./shared/define-config-DzdeQbht.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/dev/dev-options.d.ts
|
|
5
5
|
interface DevWatchOptions {
|
|
@@ -43,7 +43,7 @@ interface DevWatchOptions {
|
|
|
43
43
|
debounceTickRate?: number;
|
|
44
44
|
}
|
|
45
45
|
interface DevOptions {
|
|
46
|
-
onHmrUpdates?: (updates:
|
|
46
|
+
onHmrUpdates?: (updates: BindingClientHmrUpdate[], changedFiles: string[]) => void | Promise<void>;
|
|
47
47
|
watch?: DevWatchOptions;
|
|
48
48
|
}
|
|
49
49
|
//#endregion
|
|
@@ -54,12 +54,11 @@ declare class DevEngine {
|
|
|
54
54
|
private constructor();
|
|
55
55
|
run(): Promise<void>;
|
|
56
56
|
ensureCurrentBuildFinish(): Promise<void>;
|
|
57
|
+
hasLatestBuildOutput(): Promise<boolean>;
|
|
57
58
|
ensureLatestBuildOutput(): Promise<void>;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
scheduleBuildIfStale(): Promise<"scheduled" | "alreadyScheduled" | undefined>;
|
|
62
|
-
invalidate(file: string, firstInvalidatedBy?: string): Promise<BindingHmrUpdate>;
|
|
59
|
+
invalidate(file: string, firstInvalidatedBy?: string): Promise<BindingClientHmrUpdate[]>;
|
|
60
|
+
registerModules(clientId: string, modules: string[]): void;
|
|
61
|
+
removeClient(clientId: string): void;
|
|
63
62
|
}
|
|
64
63
|
//#endregion
|
|
65
64
|
//#region src/api/dev/index.d.ts
|
|
@@ -144,4 +143,4 @@ type TransformPluginConfig = Omit<BindingTransformPluginConfig, "include" | "exc
|
|
|
144
143
|
};
|
|
145
144
|
declare function transformPlugin(config?: TransformPluginConfig): BuiltinPlugin;
|
|
146
145
|
//#endregion
|
|
147
|
-
export { 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, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin };
|
|
146
|
+
export { BindingClientHmrUpdate, 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, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { BuiltinPlugin, PluginDriver, RolldownBuild, createBundlerOptions, makeBuiltinPluginCallable, normalizedStringOrRegex } from "./shared/src-
|
|
2
|
-
import "./shared/parse-ast-index-
|
|
1
|
+
import { BuiltinPlugin, PluginDriver, RolldownBuild, createBundlerOptions, makeBuiltinPluginCallable, normalizedStringOrRegex } from "./shared/src-DnNenssl.mjs";
|
|
2
|
+
import "./shared/parse-ast-index-CTl_R-Xm.mjs";
|
|
3
3
|
import "./shared/dist-CHTC3-kR.mjs";
|
|
4
|
-
import { logger } from "./shared/logger-
|
|
5
|
-
import { BindingDevEngine, ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
|
4
|
+
import { logger } from "./shared/logger-ClMekpHZ.mjs";
|
|
5
|
+
import { BindingClientHmrUpdate, BindingDevEngine, ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
|
6
6
|
import { pathToFileURL } from "node:url";
|
|
7
7
|
|
|
8
8
|
//#region src/api/dev/dev-engine.ts
|
|
@@ -41,22 +41,21 @@ var DevEngine = class DevEngine {
|
|
|
41
41
|
this.#cachedBuildFinishPromise = promise;
|
|
42
42
|
return promise;
|
|
43
43
|
}
|
|
44
|
+
async hasLatestBuildOutput() {
|
|
45
|
+
return this.#inner.hasLatestBuildOutput();
|
|
46
|
+
}
|
|
44
47
|
async ensureLatestBuildOutput() {
|
|
45
48
|
await this.#inner.ensureLatestBuildOutput();
|
|
46
49
|
}
|
|
47
|
-
/**
|
|
48
|
-
* Returns true if a new build is scheduled.
|
|
49
|
-
*/
|
|
50
|
-
async scheduleBuildIfStale() {
|
|
51
|
-
const scheduled = await this.#inner.scheduleBuildIfStale();
|
|
52
|
-
if (scheduled) {
|
|
53
|
-
scheduled.wait().catch(() => {});
|
|
54
|
-
return scheduled.alreadyScheduled() ? "alreadyScheduled" : "scheduled";
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
50
|
async invalidate(file, firstInvalidatedBy) {
|
|
58
51
|
return this.#inner.invalidate(file, firstInvalidatedBy);
|
|
59
52
|
}
|
|
53
|
+
registerModules(clientId, modules) {
|
|
54
|
+
this.#inner.registerModules(clientId, modules);
|
|
55
|
+
}
|
|
56
|
+
removeClient(clientId) {
|
|
57
|
+
this.#inner.removeClient(clientId);
|
|
58
|
+
}
|
|
60
59
|
};
|
|
61
60
|
|
|
62
61
|
//#endregion
|
|
@@ -214,4 +213,4 @@ function transformPlugin(config) {
|
|
|
214
213
|
}
|
|
215
214
|
|
|
216
215
|
//#endregion
|
|
217
|
-
export { DevEngine, ResolverFactory, aliasPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dev, dynamicImportVarsPlugin, esmExternalRequirePlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, reactRefreshWrapperPlugin, replacePlugin, reporterPlugin, scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin };
|
|
216
|
+
export { BindingClientHmrUpdate, DevEngine, ResolverFactory, aliasPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dev, dynamicImportVarsPlugin, esmExternalRequirePlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, reactRefreshWrapperPlugin, replacePlugin, reporterPlugin, scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin };
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
export class DevRuntime {
|
|
2
|
+
/**
|
|
3
|
+
* @param {WebSocket} socket
|
|
4
|
+
*/
|
|
5
|
+
constructor(socket: WebSocket);
|
|
6
|
+
socket: WebSocket;
|
|
2
7
|
/**
|
|
3
8
|
* @type {Record<string, Module>}
|
|
4
9
|
*/
|
|
@@ -50,6 +55,7 @@ export class DevRuntime {
|
|
|
50
55
|
__toDynamicImportESM: any;
|
|
51
56
|
/** @internal */
|
|
52
57
|
__reExport: any;
|
|
58
|
+
sendModuleRegisteredMessage: (module: string) => void;
|
|
53
59
|
}
|
|
54
60
|
declare class Module {
|
|
55
61
|
/**
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import {
|
|
1
|
+
import "./shared/binding-DOpOtI1J.mjs";
|
|
2
|
+
import { withFilter } from "./shared/define-config-DzdeQbht.mjs";
|
|
3
|
+
import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
|
|
3
4
|
export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
|
package/dist/index.browser.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { PreRenderedChunk } from "./shared/binding-
|
|
2
|
-
import { AddonFunction, AsyncPluginHooks, BufferEncoding, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, 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, 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 } from "./shared/define-config-
|
|
3
|
-
export { AddonFunction, AsyncPluginHooks, BufferEncoding, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, 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 { PreRenderedChunk } from "./shared/binding-DOpOtI1J.mjs";
|
|
2
|
+
import { 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, 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 } from "./shared/define-config-DzdeQbht.mjs";
|
|
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 };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VERSION, build, defineConfig, rolldown, watch } from "./shared/src-
|
|
2
|
-
import "./shared/parse-ast-index-
|
|
1
|
+
import { VERSION, build, defineConfig, rolldown, watch } from "./shared/src-DnNenssl.mjs";
|
|
2
|
+
import "./shared/parse-ast-index-CTl_R-Xm.mjs";
|
|
3
3
|
import "./shared/dist-CHTC3-kR.mjs";
|
|
4
4
|
|
|
5
5
|
export { VERSION, build, defineConfig, rolldown, watch };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PluginContextData, bindingifyPlugin } from "./shared/src-
|
|
2
|
-
import "./shared/parse-ast-index-
|
|
1
|
+
import { PluginContextData, bindingifyPlugin } from "./shared/src-DnNenssl.mjs";
|
|
2
|
+
import "./shared/parse-ast-index-CTl_R-Xm.mjs";
|
|
3
3
|
import "./shared/dist-CHTC3-kR.mjs";
|
|
4
4
|
import { parentPort, workerData } from "node:worker_threads";
|
|
5
5
|
import { registerPlugins } from "./rolldown-binding.wasi.cjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { MaybePromise, Plugin } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-DOpOtI1J.mjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config-DzdeQbht.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
|
@@ -88,8 +88,10 @@ export const BindingBundler = __napiModule.exports.BindingBundler
|
|
|
88
88
|
export const BindingBundlerImpl = __napiModule.exports.BindingBundlerImpl
|
|
89
89
|
export const BindingCallableBuiltinPlugin = __napiModule.exports.BindingCallableBuiltinPlugin
|
|
90
90
|
export const BindingChunkingContext = __napiModule.exports.BindingChunkingContext
|
|
91
|
+
export const BindingClientHmrUpdate = __napiModule.exports.BindingClientHmrUpdate
|
|
91
92
|
export const BindingDevEngine = __napiModule.exports.BindingDevEngine
|
|
92
93
|
export const BindingHmrOutput = __napiModule.exports.BindingHmrOutput
|
|
94
|
+
export const BindingMagicString = __napiModule.exports.BindingMagicString
|
|
93
95
|
export const BindingModuleInfo = __napiModule.exports.BindingModuleInfo
|
|
94
96
|
export const BindingNormalizedOptions = __napiModule.exports.BindingNormalizedOptions
|
|
95
97
|
export const BindingOutputAsset = __napiModule.exports.BindingOutputAsset
|
|
@@ -133,8 +133,10 @@ module.exports.BindingBundler = __napiModule.exports.BindingBundler
|
|
|
133
133
|
module.exports.BindingBundlerImpl = __napiModule.exports.BindingBundlerImpl
|
|
134
134
|
module.exports.BindingCallableBuiltinPlugin = __napiModule.exports.BindingCallableBuiltinPlugin
|
|
135
135
|
module.exports.BindingChunkingContext = __napiModule.exports.BindingChunkingContext
|
|
136
|
+
module.exports.BindingClientHmrUpdate = __napiModule.exports.BindingClientHmrUpdate
|
|
136
137
|
module.exports.BindingDevEngine = __napiModule.exports.BindingDevEngine
|
|
137
138
|
module.exports.BindingHmrOutput = __napiModule.exports.BindingHmrOutput
|
|
139
|
+
module.exports.BindingMagicString = __napiModule.exports.BindingMagicString
|
|
138
140
|
module.exports.BindingModuleInfo = __napiModule.exports.BindingModuleInfo
|
|
139
141
|
module.exports.BindingNormalizedOptions = __napiModule.exports.BindingNormalizedOptions
|
|
140
142
|
module.exports.BindingOutputAsset = __napiModule.exports.BindingOutputAsset
|
|
Binary file
|
|
@@ -18,14 +18,16 @@ interface CompressOptions {
|
|
|
18
18
|
*
|
|
19
19
|
* Set `esnext` to enable all target highering.
|
|
20
20
|
*
|
|
21
|
-
*
|
|
21
|
+
* Example:
|
|
22
22
|
*
|
|
23
|
-
* *
|
|
24
|
-
* *
|
|
23
|
+
* * `'es2015'`
|
|
24
|
+
* * `['es2020', 'chrome58', 'edge16', 'firefox57', 'node12', 'safari11']`
|
|
25
25
|
*
|
|
26
26
|
* @default 'esnext'
|
|
27
|
+
*
|
|
28
|
+
* @see [esbuild#target](https://esbuild.github.io/api/#target)
|
|
27
29
|
*/
|
|
28
|
-
target?:
|
|
30
|
+
target?: string | Array<string>;
|
|
29
31
|
/**
|
|
30
32
|
* Pass true to discard calls to `console.*`.
|
|
31
33
|
*
|
|
@@ -1157,12 +1159,10 @@ declare class BindingBundlerImpl {
|
|
|
1157
1159
|
close(): Promise<void>;
|
|
1158
1160
|
get closed(): boolean;
|
|
1159
1161
|
getWatchFiles(): Promise<Array<string>>;
|
|
1160
|
-
generateHmrPatch(changedFiles: Array<string>): Promise<BindingGenerateHmrPatchReturn>;
|
|
1161
|
-
hmrInvalidate(caller: string, firstInvalidatedBy?: string | undefined | null): Promise<BindingHmrOutput>;
|
|
1162
1162
|
}
|
|
1163
|
-
declare class
|
|
1164
|
-
get
|
|
1165
|
-
get
|
|
1163
|
+
declare class BindingClientHmrUpdate {
|
|
1164
|
+
get clientId(): string;
|
|
1165
|
+
get update(): BindingHmrUpdate;
|
|
1166
1166
|
}
|
|
1167
1167
|
declare class BindingOutputAsset {
|
|
1168
1168
|
get fileName(): string;
|
|
@@ -1256,13 +1256,6 @@ interface BindingEsmExternalRequirePluginConfig {
|
|
|
1256
1256
|
external: Array<BindingStringOrRegex>;
|
|
1257
1257
|
skipDuplicateCheck?: boolean;
|
|
1258
1258
|
}
|
|
1259
|
-
type BindingGenerateHmrPatchReturn = {
|
|
1260
|
-
type: 'Ok';
|
|
1261
|
-
field0: Array<BindingHmrUpdate>;
|
|
1262
|
-
} | {
|
|
1263
|
-
type: 'Error';
|
|
1264
|
-
field0: Array<Error | BindingError>;
|
|
1265
|
-
};
|
|
1266
1259
|
interface BindingHmrBoundaryOutput {
|
|
1267
1260
|
boundary: string;
|
|
1268
1261
|
acceptedVia: string;
|
|
@@ -1321,6 +1314,7 @@ interface BindingModules {
|
|
|
1321
1314
|
keys: Array<string>;
|
|
1322
1315
|
}
|
|
1323
1316
|
interface BindingReactRefreshWrapperPluginConfig {
|
|
1317
|
+
cwd: string;
|
|
1324
1318
|
include?: Array<BindingStringOrRegex>;
|
|
1325
1319
|
exclude?: Array<BindingStringOrRegex>;
|
|
1326
1320
|
jsxImportSource: string;
|
|
@@ -1407,4 +1401,4 @@ interface PreRenderedChunk {
|
|
|
1407
1401
|
exports: Array<string>;
|
|
1408
1402
|
}
|
|
1409
1403
|
//#endregion
|
|
1410
|
-
export { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingEsmExternalRequirePluginConfig,
|
|
1404
|
+
export { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingClientHmrUpdate, BindingDynamicImportVarsPluginConfig, BindingEsmExternalRequirePluginConfig, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingModulePreloadPolyfillPluginConfig, BindingReactRefreshWrapperPluginConfig, BindingRenderedChunk, BindingReplacePluginConfig, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingTransformPluginConfig, BindingViteResolvePluginConfig, BindingWasmHelperPluginConfig, BindingWatcherEvent, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, MinifyOptions, NapiResolveOptions, ParseResult, ParserOptions, PreRenderedChunk, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { BindingBuiltinPluginName, BindingBundlerImpl,
|
|
1
|
+
import { BindingBuiltinPluginName, BindingBundlerImpl, BindingHookResolveIdExtraArgs, BindingRenderedChunk, BindingTransformHookExtraArgs, BindingWatcherEvent, MinifyOptions as MinifyOptions$1, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-DOpOtI1J.mjs";
|
|
2
2
|
import { Program } from "@oxc-project/types";
|
|
3
|
+
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
3
4
|
|
|
4
5
|
//#region src/log/logging.d.ts
|
|
5
6
|
type LogLevel = "info" | "debug" | "warn";
|
|
@@ -136,6 +137,29 @@ type MaybeArray<T> = T | T[];
|
|
|
136
137
|
type StringOrRegExp = string | RegExp;
|
|
137
138
|
//#endregion
|
|
138
139
|
//#region src/options/output-options.d.ts
|
|
140
|
+
type GeneratedCodePreset = "es5" | "es2015";
|
|
141
|
+
interface GeneratedCodeOptions {
|
|
142
|
+
/**
|
|
143
|
+
* Whether to use Symbol.toStringTag for namespace objects.
|
|
144
|
+
* @default false
|
|
145
|
+
*/
|
|
146
|
+
symbols?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Allows choosing one of the presets listed above while overriding some options.
|
|
149
|
+
*
|
|
150
|
+
* ```js
|
|
151
|
+
* export default {
|
|
152
|
+
* output: {
|
|
153
|
+
* generatedCode: {
|
|
154
|
+
* preset: 'es2015',
|
|
155
|
+
* symbols: false
|
|
156
|
+
* }
|
|
157
|
+
* }
|
|
158
|
+
* };
|
|
159
|
+
* ```
|
|
160
|
+
*/
|
|
161
|
+
preset?: GeneratedCodePreset;
|
|
162
|
+
}
|
|
139
163
|
type ModuleFormat = "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd";
|
|
140
164
|
type AddonFunction = (chunk: RenderedChunk) => string | Promise<string>;
|
|
141
165
|
type ChunkFileNamesFunction = (chunkInfo: PreRenderedChunk) => string;
|
|
@@ -171,7 +195,38 @@ interface OutputOptions {
|
|
|
171
195
|
sourcemap?: boolean | "inline" | "hidden";
|
|
172
196
|
sourcemapBaseUrl?: string;
|
|
173
197
|
sourcemapDebugIds?: boolean;
|
|
174
|
-
|
|
198
|
+
/**
|
|
199
|
+
* Control which source files are included in the sourcemap ignore list.
|
|
200
|
+
* Files in the ignore list are excluded from debugger stepping and error stack traces.
|
|
201
|
+
*
|
|
202
|
+
* - `false`: Include all source files in the ignore list
|
|
203
|
+
* - `true`: Include no source files in the ignore list
|
|
204
|
+
* - `string`: Files containing this string in their path will be included in the ignore list
|
|
205
|
+
* - `RegExp`: Files matching this regular expression will be included in the ignore list
|
|
206
|
+
* - `function`: Custom function `(source: string, sourcemapPath: string) => boolean` to determine if a source should be ignored
|
|
207
|
+
*
|
|
208
|
+
* :::tip Performance
|
|
209
|
+
* Using static values (`boolean`, `string`, or `RegExp`) is significantly more performant than functions.
|
|
210
|
+
* Calling JavaScript functions from Rust has extremely high overhead, so prefer static patterns when possible.
|
|
211
|
+
* :::
|
|
212
|
+
*
|
|
213
|
+
* ## Examples
|
|
214
|
+
* ```js
|
|
215
|
+
* // ✅ Preferred: Use RegExp for better performance
|
|
216
|
+
* sourcemapIgnoreList: /node_modules/
|
|
217
|
+
*
|
|
218
|
+
* // ✅ Preferred: Use string pattern for better performance
|
|
219
|
+
* sourcemapIgnoreList: "vendor"
|
|
220
|
+
*
|
|
221
|
+
* // ! Use sparingly: Function calls have high overhead
|
|
222
|
+
* sourcemapIgnoreList: (source, sourcemapPath) => {
|
|
223
|
+
* return source.includes('node_modules') || source.includes('.min.');
|
|
224
|
+
* }
|
|
225
|
+
* ```
|
|
226
|
+
*
|
|
227
|
+
* **default**: /node_modules/
|
|
228
|
+
*/
|
|
229
|
+
sourcemapIgnoreList?: boolean | SourcemapIgnoreListOption | StringOrRegExp;
|
|
175
230
|
sourcemapPathTransform?: SourcemapPathTransformOption;
|
|
176
231
|
banner?: string | AddonFunction;
|
|
177
232
|
footer?: string | AddonFunction;
|
|
@@ -198,6 +253,7 @@ interface OutputOptions {
|
|
|
198
253
|
minify?: boolean | "dce-only" | MinifyOptions;
|
|
199
254
|
name?: string;
|
|
200
255
|
globals?: Record<string, string> | GlobalsFunction;
|
|
256
|
+
generatedCode?: Partial<GeneratedCodeOptions>;
|
|
201
257
|
externalLiveBindings?: boolean;
|
|
202
258
|
inlineDynamicImports?: boolean;
|
|
203
259
|
/**
|
|
@@ -488,8 +544,6 @@ declare class RolldownBuild {
|
|
|
488
544
|
write(outputOptions?: OutputOptions): Promise<RolldownOutput>;
|
|
489
545
|
close(): Promise<void>;
|
|
490
546
|
[Symbol.asyncDispose](): Promise<void>;
|
|
491
|
-
generateHmrPatch(changedFiles: string[]): Promise<BindingHmrUpdate[]>;
|
|
492
|
-
hmrInvalidate(file: string, firstInvalidatedBy?: string): Promise<BindingHmrUpdate>;
|
|
493
547
|
get watchFiles(): Promise<string[]>;
|
|
494
548
|
}
|
|
495
549
|
//#endregion
|
|
@@ -583,7 +637,7 @@ interface NormalizedOutputOptions {
|
|
|
583
637
|
globals: Record<string, string> | GlobalsFunction;
|
|
584
638
|
hashCharacters: "base64" | "base36" | "hex";
|
|
585
639
|
sourcemapDebugIds: boolean;
|
|
586
|
-
sourcemapIgnoreList: SourcemapIgnoreListOption;
|
|
640
|
+
sourcemapIgnoreList: boolean | SourcemapIgnoreListOption | StringOrRegExp | undefined;
|
|
587
641
|
sourcemapPathTransform: SourcemapPathTransformOption | undefined;
|
|
588
642
|
minify: false | MinifyOptions | "dce-only";
|
|
589
643
|
legalComments: "none" | "inline";
|
|
@@ -657,84 +711,6 @@ interface RolldownFileStats {
|
|
|
657
711
|
birthtime: Date;
|
|
658
712
|
}
|
|
659
713
|
//#endregion
|
|
660
|
-
//#region ../pluginutils/dist/index.d.mts
|
|
661
|
-
//#region src/composable-filters.d.ts
|
|
662
|
-
type StringOrRegExp$1 = string | RegExp;
|
|
663
|
-
type PluginModuleType = "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | (string & {});
|
|
664
|
-
type FilterExpression = And | Or | Not | Id | ModuleType$1 | Code | Query;
|
|
665
|
-
type TopLevelFilterExpression = Include | Exclude$1;
|
|
666
|
-
declare class And {
|
|
667
|
-
kind: "and";
|
|
668
|
-
args: FilterExpression[];
|
|
669
|
-
constructor(...args: FilterExpression[]);
|
|
670
|
-
}
|
|
671
|
-
declare class Or {
|
|
672
|
-
kind: "or";
|
|
673
|
-
args: FilterExpression[];
|
|
674
|
-
constructor(...args: FilterExpression[]);
|
|
675
|
-
}
|
|
676
|
-
declare class Not {
|
|
677
|
-
kind: "not";
|
|
678
|
-
expr: FilterExpression;
|
|
679
|
-
constructor(expr: FilterExpression);
|
|
680
|
-
}
|
|
681
|
-
interface QueryFilterObject {
|
|
682
|
-
[key: string]: StringOrRegExp$1 | boolean;
|
|
683
|
-
}
|
|
684
|
-
interface IdParams {
|
|
685
|
-
cleanUrl?: boolean;
|
|
686
|
-
}
|
|
687
|
-
declare class Id {
|
|
688
|
-
kind: "id";
|
|
689
|
-
pattern: StringOrRegExp$1;
|
|
690
|
-
params: IdParams;
|
|
691
|
-
constructor(pattern: StringOrRegExp$1, params?: IdParams);
|
|
692
|
-
}
|
|
693
|
-
declare class ModuleType$1 {
|
|
694
|
-
kind: "moduleType";
|
|
695
|
-
pattern: PluginModuleType;
|
|
696
|
-
constructor(pattern: PluginModuleType);
|
|
697
|
-
}
|
|
698
|
-
declare class Code {
|
|
699
|
-
kind: "code";
|
|
700
|
-
pattern: StringOrRegExp$1;
|
|
701
|
-
constructor(expr: StringOrRegExp$1);
|
|
702
|
-
}
|
|
703
|
-
declare class Query {
|
|
704
|
-
kind: "query";
|
|
705
|
-
key: string;
|
|
706
|
-
pattern: StringOrRegExp$1 | boolean;
|
|
707
|
-
constructor(key: string, pattern: StringOrRegExp$1 | boolean);
|
|
708
|
-
}
|
|
709
|
-
declare class Include {
|
|
710
|
-
kind: "include";
|
|
711
|
-
expr: FilterExpression;
|
|
712
|
-
constructor(expr: FilterExpression);
|
|
713
|
-
}
|
|
714
|
-
declare class Exclude$1 {
|
|
715
|
-
kind: "exclude";
|
|
716
|
-
expr: FilterExpression;
|
|
717
|
-
constructor(expr: FilterExpression);
|
|
718
|
-
}
|
|
719
|
-
declare function and(...args: FilterExpression[]): And;
|
|
720
|
-
declare function or(...args: FilterExpression[]): Or;
|
|
721
|
-
declare function not(expr: FilterExpression): Not;
|
|
722
|
-
declare function id(pattern: StringOrRegExp$1, params?: IdParams): Id;
|
|
723
|
-
declare function moduleType(pattern: PluginModuleType): ModuleType$1;
|
|
724
|
-
declare function code(pattern: StringOrRegExp$1): Code;
|
|
725
|
-
declare function query(key: string, pattern: StringOrRegExp$1 | boolean): Query;
|
|
726
|
-
declare function include(expr: FilterExpression): Include;
|
|
727
|
-
declare function exclude(expr: FilterExpression): Exclude$1;
|
|
728
|
-
/**
|
|
729
|
-
* convert a queryObject to FilterExpression like
|
|
730
|
-
* ```js
|
|
731
|
-
* and(query(k1, v1), query(k2, v2))
|
|
732
|
-
* ```
|
|
733
|
-
* @param queryFilterObject The query filter object needs to be matched.
|
|
734
|
-
* @returns a `And` FilterExpression
|
|
735
|
-
*/
|
|
736
|
-
declare function queries(queryFilter: QueryFilterObject): And;
|
|
737
|
-
//#endregion
|
|
738
714
|
//#region src/plugin/hook-filter.d.ts
|
|
739
715
|
type GeneralHookFilter<Value = StringOrRegExp> = MaybeArray<Value> | {
|
|
740
716
|
include?: MaybeArray<Value>;
|
|
@@ -1154,7 +1130,6 @@ type HmrOptions = boolean | {
|
|
|
1154
1130
|
host?: string;
|
|
1155
1131
|
port?: number;
|
|
1156
1132
|
implement?: string;
|
|
1157
|
-
new?: boolean;
|
|
1158
1133
|
};
|
|
1159
1134
|
type OptimizationOptions = {
|
|
1160
1135
|
/**
|
|
@@ -1497,4 +1472,4 @@ declare function defineConfig(config: RolldownOptions[]): RolldownOptions[];
|
|
|
1497
1472
|
declare function defineConfig(config: RolldownOptionsFunction): RolldownOptionsFunction;
|
|
1498
1473
|
declare function defineConfig(config: ConfigExport): ConfigExport;
|
|
1499
1474
|
//#endregion
|
|
1500
|
-
export { type AddonFunction, type AsyncPluginHooks, type BufferEncoding, type BuildOptions, BuiltinPlugin, type ChunkFileNamesFunction, type ChunkingContext, type ConfigExport, type CustomPluginOptions, type DefineParallelPluginResult, type EmittedAsset, type EmittedFile, type ExistingRawSourceMap, type ExternalOption, type FunctionPluginHooks, type GeneralHookFilter, type GetModuleInfo, type GlobalsFunction, type HookFilter, type HookFilterExtension, type ImportKind, type InputOption, type InputOptions, type InternalModuleFormat, type LoadResult, type LogLevel, type LogLevelOption, type LogOrStringHandler, type LoggingFunction, MaybePromise, type MinifyOptions, type MinimalPluginContext, type ModuleFormat, type ModuleInfo, type ModuleOptions, type ModuleType, type ModuleTypeFilter, type ModuleTypes, type NormalizedInputOptions, type NormalizedOutputOptions, type ObjectHook, type OptimizationOptions, type OutputAsset, type OutputBundle, type OutputChunk, type OutputOptions, type ParallelPluginHooks, type PartialNull, type PartialResolvedId, type Plugin, type PluginContext, type PluginContextMeta, type PreRenderedAsset, type RenderedChunk, type RenderedModule, type ResolveIdExtraOptions, type ResolveIdResult, type ResolvedId, type RolldownBuild, type RolldownDirectoryEntry, type RolldownFileStats, type RolldownFsModule, type RolldownOptions, type RolldownOptionsFunction, type RolldownOutput, type RolldownPlugin, type RolldownPluginOption, type RolldownWatcher, type RolldownWatcherEvent, type RollupError, type RollupLog, type RollupLogWithString, type SourceDescription, type SourceMap, type SourceMapInput, type SourcemapIgnoreListOption, StringOrRegExp, type TransformPluginContext, type TransformResult, type TreeshakingOptions, VERSION, type WarningHandlerWithDefault, type WatchOptions, type WatcherOptions,
|
|
1475
|
+
export { type AddonFunction, type AsyncPluginHooks, type BufferEncoding, type BuildOptions, BuiltinPlugin, type ChunkFileNamesFunction, type ChunkingContext, type ConfigExport, type CustomPluginOptions, type DefineParallelPluginResult, type EmittedAsset, type EmittedFile, type ExistingRawSourceMap, type ExternalOption, type FunctionPluginHooks, type GeneralHookFilter, type GeneratedCodeOptions, type GeneratedCodePreset, type GetModuleInfo, type GlobalsFunction, type HookFilter, type HookFilterExtension, type ImportKind, type InputOption, type InputOptions, type InternalModuleFormat, type LoadResult, type LogLevel, type LogLevelOption, type LogOrStringHandler, type LoggingFunction, MaybePromise, type MinifyOptions, type MinimalPluginContext, type ModuleFormat, type ModuleInfo, type ModuleOptions, type ModuleType, type ModuleTypeFilter, type ModuleTypes, type NormalizedInputOptions, type NormalizedOutputOptions, type ObjectHook, type OptimizationOptions, type OutputAsset, type OutputBundle, type OutputChunk, type OutputOptions, type ParallelPluginHooks, type PartialNull, type PartialResolvedId, type Plugin, type PluginContext, type PluginContextMeta, type PreRenderedAsset, type RenderedChunk, type RenderedModule, type ResolveIdExtraOptions, type ResolveIdResult, type ResolvedId, type RolldownBuild, type RolldownDirectoryEntry, type RolldownFileStats, type RolldownFsModule, type RolldownOptions, type RolldownOptionsFunction, type RolldownOutput, type RolldownPlugin, type RolldownPluginOption, type RolldownWatcher, type RolldownWatcherEvent, type RollupError, type RollupLog, type RollupLogWithString, type SourceDescription, type SourceMap, type SourceMapInput, type SourcemapIgnoreListOption, StringOrRegExp, type TransformPluginContext, type TransformResult, type TreeshakingOptions, VERSION, type WarningHandlerWithDefault, type WatchOptions, type WatcherOptions, build, defineConfig, defineParallelPlugin, rolldown, watch, withFilter };
|
|
@@ -944,7 +944,7 @@ function createConsola(options = {}) {
|
|
|
944
944
|
defaults: { level },
|
|
945
945
|
stdout: process.stdout,
|
|
946
946
|
stderr: process.stderr,
|
|
947
|
-
prompt: (...args) => import("./prompt-
|
|
947
|
+
prompt: (...args) => import("./prompt-R6XhwkxA.mjs").then((m) => m.prompt(...args)),
|
|
948
948
|
reporters: options.reporters || [options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
|
|
949
949
|
...options
|
|
950
950
|
});
|
|
@@ -186,7 +186,7 @@ function augmentCodeLocation(properties, pos, source, id) {
|
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
//#endregion
|
|
189
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
189
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.93.0/node_modules/oxc-parser/src-js/wrap.js
|
|
190
190
|
function wrap$1(result) {
|
|
191
191
|
let program, module, comments, errors;
|
|
192
192
|
return {
|
|
@@ -401,16 +401,16 @@ function G(t, u$1, F$1) {
|
|
|
401
401
|
`).map((e$1) => oD(e$1, u$1, F$1)).join(`
|
|
402
402
|
`);
|
|
403
403
|
}
|
|
404
|
-
const
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
404
|
+
const c = {
|
|
405
|
+
actions: new Set([
|
|
406
|
+
"up",
|
|
407
|
+
"down",
|
|
408
|
+
"left",
|
|
409
|
+
"right",
|
|
410
|
+
"space",
|
|
411
|
+
"enter",
|
|
412
|
+
"cancel"
|
|
413
|
+
]),
|
|
414
414
|
aliases: new Map([
|
|
415
415
|
["k", "up"],
|
|
416
416
|
["j", "down"],
|