@rolldown/browser 1.0.0-beta.40 → 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 +2 -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 +1 -0
- package/dist/rolldown-binding.wasi.cjs +1 -0
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/shared/{binding-BVXbXhPv.d.mts → binding-DOpOtI1J.d.mts} +4 -13
- package/dist/shared/{define-config-D9LkukIg.d.mts → define-config-DzdeQbht.d.mts} +27 -6
- package/dist/shared/{load-config-CU4Yss-9.mjs → load-config-Dk8qZvLs.mjs} +1 -1
- package/dist/shared/{logger-CiCY7ucm.mjs → logger-ClMekpHZ.mjs} +1 -1
- package/dist/shared/{parse-ast-index-DuyJNdzo.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-BfUPNTHw.mjs → src-DnNenssl.mjs} +83 -88
- package/dist/{src-ChN10Pih.js → src-D3uOoJau.js} +90 -95
- 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,4 +1,4 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { withFilter } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-DOpOtI1J.mjs";
|
|
2
|
+
import { withFilter } from "./shared/define-config-DzdeQbht.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/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,6 +88,7 @@ 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
|
|
93
94
|
export const BindingMagicString = __napiModule.exports.BindingMagicString
|
|
@@ -133,6 +133,7 @@ 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
|
|
138
139
|
module.exports.BindingMagicString = __napiModule.exports.BindingMagicString
|
|
Binary file
|
|
@@ -1159,12 +1159,10 @@ declare class BindingBundlerImpl {
|
|
|
1159
1159
|
close(): Promise<void>;
|
|
1160
1160
|
get closed(): boolean;
|
|
1161
1161
|
getWatchFiles(): Promise<Array<string>>;
|
|
1162
|
-
generateHmrPatch(changedFiles: Array<string>): Promise<BindingGenerateHmrPatchReturn>;
|
|
1163
|
-
hmrInvalidate(caller: string, firstInvalidatedBy?: string | undefined | null): Promise<BindingHmrOutput>;
|
|
1164
1162
|
}
|
|
1165
|
-
declare class
|
|
1166
|
-
get
|
|
1167
|
-
get
|
|
1163
|
+
declare class BindingClientHmrUpdate {
|
|
1164
|
+
get clientId(): string;
|
|
1165
|
+
get update(): BindingHmrUpdate;
|
|
1168
1166
|
}
|
|
1169
1167
|
declare class BindingOutputAsset {
|
|
1170
1168
|
get fileName(): string;
|
|
@@ -1258,13 +1256,6 @@ interface BindingEsmExternalRequirePluginConfig {
|
|
|
1258
1256
|
external: Array<BindingStringOrRegex>;
|
|
1259
1257
|
skipDuplicateCheck?: boolean;
|
|
1260
1258
|
}
|
|
1261
|
-
type BindingGenerateHmrPatchReturn = {
|
|
1262
|
-
type: 'Ok';
|
|
1263
|
-
field0: Array<BindingHmrUpdate>;
|
|
1264
|
-
} | {
|
|
1265
|
-
type: 'Error';
|
|
1266
|
-
field0: Array<Error | BindingError>;
|
|
1267
|
-
};
|
|
1268
1259
|
interface BindingHmrBoundaryOutput {
|
|
1269
1260
|
boundary: string;
|
|
1270
1261
|
acceptedVia: string;
|
|
@@ -1410,4 +1401,4 @@ interface PreRenderedChunk {
|
|
|
1410
1401
|
exports: Array<string>;
|
|
1411
1402
|
}
|
|
1412
1403
|
//#endregion
|
|
1413
|
-
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,4 +1,4 @@
|
|
|
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
3
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
4
4
|
|
|
@@ -137,6 +137,29 @@ type MaybeArray<T> = T | T[];
|
|
|
137
137
|
type StringOrRegExp = string | RegExp;
|
|
138
138
|
//#endregion
|
|
139
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
|
+
}
|
|
140
163
|
type ModuleFormat = "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd";
|
|
141
164
|
type AddonFunction = (chunk: RenderedChunk) => string | Promise<string>;
|
|
142
165
|
type ChunkFileNamesFunction = (chunkInfo: PreRenderedChunk) => string;
|
|
@@ -195,7 +218,7 @@ interface OutputOptions {
|
|
|
195
218
|
* // ✅ Preferred: Use string pattern for better performance
|
|
196
219
|
* sourcemapIgnoreList: "vendor"
|
|
197
220
|
*
|
|
198
|
-
* //
|
|
221
|
+
* // ! Use sparingly: Function calls have high overhead
|
|
199
222
|
* sourcemapIgnoreList: (source, sourcemapPath) => {
|
|
200
223
|
* return source.includes('node_modules') || source.includes('.min.');
|
|
201
224
|
* }
|
|
@@ -230,6 +253,7 @@ interface OutputOptions {
|
|
|
230
253
|
minify?: boolean | "dce-only" | MinifyOptions;
|
|
231
254
|
name?: string;
|
|
232
255
|
globals?: Record<string, string> | GlobalsFunction;
|
|
256
|
+
generatedCode?: Partial<GeneratedCodeOptions>;
|
|
233
257
|
externalLiveBindings?: boolean;
|
|
234
258
|
inlineDynamicImports?: boolean;
|
|
235
259
|
/**
|
|
@@ -520,8 +544,6 @@ declare class RolldownBuild {
|
|
|
520
544
|
write(outputOptions?: OutputOptions): Promise<RolldownOutput>;
|
|
521
545
|
close(): Promise<void>;
|
|
522
546
|
[Symbol.asyncDispose](): Promise<void>;
|
|
523
|
-
generateHmrPatch(changedFiles: string[]): Promise<BindingHmrUpdate[]>;
|
|
524
|
-
hmrInvalidate(file: string, firstInvalidatedBy?: string): Promise<BindingHmrUpdate>;
|
|
525
547
|
get watchFiles(): Promise<string[]>;
|
|
526
548
|
}
|
|
527
549
|
//#endregion
|
|
@@ -1108,7 +1130,6 @@ type HmrOptions = boolean | {
|
|
|
1108
1130
|
host?: string;
|
|
1109
1131
|
port?: number;
|
|
1110
1132
|
implement?: string;
|
|
1111
|
-
new?: boolean;
|
|
1112
1133
|
};
|
|
1113
1134
|
type OptimizationOptions = {
|
|
1114
1135
|
/**
|
|
@@ -1451,4 +1472,4 @@ declare function defineConfig(config: RolldownOptions[]): RolldownOptions[];
|
|
|
1451
1472
|
declare function defineConfig(config: RolldownOptionsFunction): RolldownOptionsFunction;
|
|
1452
1473
|
declare function defineConfig(config: ConfigExport): ConfigExport;
|
|
1453
1474
|
//#endregion
|
|
1454
|
-
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, build, defineConfig, defineParallelPlugin, rolldown, watch, withFilter };
|
|
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"],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { augmentCodeLocation, error, logCycleLoading, logDuplicateJsxConfig, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-
|
|
1
|
+
import { augmentCodeLocation, error, logCycleLoading, logDuplicateJsxConfig, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-CTl_R-Xm.mjs";
|
|
2
2
|
import { and, arraify, code, exclude, id, include, moduleType, noop, or, unimplemented, unreachable, unsupported } from "./dist-CHTC3-kR.mjs";
|
|
3
3
|
import { Worker, isMainThread } from "node:worker_threads";
|
|
4
4
|
import { BindingAttachDebugInfo, BindingBundler, BindingCallableBuiltinPlugin, BindingChunkModuleOrderBy, BindingJsx, BindingLogLevel, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects, BindingWatcher, ParallelJsPluginRegistry, initTraceSubscriber, shutdownAsyncRuntime, startAsyncRuntime } from "../rolldown-binding.wasi.cjs";
|
|
@@ -243,7 +243,7 @@ if (isMainThread) {
|
|
|
243
243
|
|
|
244
244
|
//#endregion
|
|
245
245
|
//#region package.json
|
|
246
|
-
var version = "1.0.0-beta.
|
|
246
|
+
var version = "1.0.0-beta.41";
|
|
247
247
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
248
248
|
|
|
249
249
|
//#endregion
|
|
@@ -590,20 +590,20 @@ function getSortedPlugins(hookName, plugins) {
|
|
|
590
590
|
}
|
|
591
591
|
|
|
592
592
|
//#endregion
|
|
593
|
-
//#region ../../node_modules/.pnpm/ansis@4.
|
|
594
|
-
var require_ansis = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ansis@4.
|
|
595
|
-
let e$1, t$2, r, { defineProperty:
|
|
596
|
-
let t$3 = /([a-f\d]{3,6})/i.exec(e$2)?.[1], r$1 = t$3?.length,
|
|
593
|
+
//#region ../../node_modules/.pnpm/ansis@4.2.0/node_modules/ansis/index.cjs
|
|
594
|
+
var require_ansis = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ansis@4.2.0/node_modules/ansis/index.cjs": ((exports, module) => {
|
|
595
|
+
let e$1, t$2, r, { defineProperty: l, setPrototypeOf: n$1, create: o, keys: s } = Object, i = "", { round: c, max: a$1 } = Math, p = (e$2) => {
|
|
596
|
+
let t$3 = /([a-f\d]{3,6})/i.exec(e$2)?.[1], r$1 = t$3?.length, l$1 = parseInt(6 ^ r$1 ? 3 ^ r$1 ? "0" : t$3[0] + t$3[0] + t$3[1] + t$3[1] + t$3[2] + t$3[2] : t$3, 16);
|
|
597
597
|
return [
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
255 &
|
|
598
|
+
l$1 >> 16 & 255,
|
|
599
|
+
l$1 >> 8 & 255,
|
|
600
|
+
255 & l$1
|
|
601
601
|
];
|
|
602
602
|
}, u = (e$2, t$3, r$1) => e$2 ^ t$3 || t$3 ^ r$1 ? 16 + 36 * c(e$2 / 51) + 6 * c(t$3 / 51) + c(r$1 / 51) : 8 > e$2 ? 16 : e$2 > 248 ? 231 : c(24 * (e$2 - 8) / 247) + 232, d = (e$2) => {
|
|
603
|
-
let t$3, r$1,
|
|
604
|
-
return 8 > e$2 ? 30 + e$2 : 16 > e$2 ? e$2 - 8 + 90 : (232 > e$2 ? (o$1 = (e$2 -= 16) % 36, t$3 = (e$2 / 36 | 0) / 5, r$1 = (o$1 / 6 | 0) / 5,
|
|
605
|
-
},
|
|
606
|
-
let r$1 = (e$2) => o$1.some(((t$3) => e$2.test(t$3))),
|
|
603
|
+
let t$3, r$1, l$1, n$2, o$1;
|
|
604
|
+
return 8 > e$2 ? 30 + e$2 : 16 > e$2 ? e$2 - 8 + 90 : (232 > e$2 ? (o$1 = (e$2 -= 16) % 36, t$3 = (e$2 / 36 | 0) / 5, r$1 = (o$1 / 6 | 0) / 5, l$1 = o$1 % 6 / 5) : t$3 = r$1 = l$1 = (10 * (e$2 - 232) + 8) / 255, n$2 = 2 * a$1(t$3, r$1, l$1), n$2 ? 30 + (c(l$1) << 2 | c(r$1) << 1 | c(t$3)) + (2 ^ n$2 ? 0 : 60) : 30);
|
|
605
|
+
}, f = (() => {
|
|
606
|
+
let r$1 = (e$2) => o$1.some(((t$3) => e$2.test(t$3))), l$1 = globalThis, n$2 = l$1.process ?? {}, o$1 = n$2.argv ?? [], i$1 = n$2.env ?? {}, c$1 = -1;
|
|
607
607
|
try {
|
|
608
608
|
e$1 = "," + s(i$1).join(",");
|
|
609
609
|
} catch (e$2) {
|
|
@@ -616,86 +616,86 @@ var require_ansis = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ansis
|
|
|
616
616
|
2: 2,
|
|
617
617
|
3: 3
|
|
618
618
|
}[i$1[a$2]] ?? -1, u$1 = a$2 in i$1 && p$1 || r$1(/^--color=?(true|always)?$/);
|
|
619
|
-
return u$1 && (c$1 = p$1), ~c$1 || (c$1 = ((r$2,
|
|
619
|
+
return u$1 && (c$1 = p$1), ~c$1 || (c$1 = ((r$2, l$2, n$3) => (t$2 = r$2.TERM, {
|
|
620
620
|
"24bit": 3,
|
|
621
621
|
truecolor: 3,
|
|
622
622
|
ansi256: 2,
|
|
623
623
|
ansi: 1
|
|
624
|
-
}[r$2.COLORTERM] || (r$2.CI ? /,GITHUB/.test(e$1) ? 3 : 1 :
|
|
625
|
-
})(),
|
|
624
|
+
}[r$2.COLORTERM] || (r$2.CI ? /,GITHUB/.test(e$1) ? 3 : 1 : l$2 && "dumb" !== t$2 ? n$3 ? 3 : /-256/.test(t$2) ? 2 : 1 : 0)))(i$1, !!i$1.PM2_HOME || i$1.NEXT_RUNTIME?.includes("edge") || !!n$2.stdout?.isTTY, "win32" === n$2.platform)), !p$1 || i$1.NO_COLOR || r$1(/^--(no-color|color=(false|never))$/) ? 0 : l$1.window?.chrome || u$1 && !c$1 ? 3 : c$1;
|
|
625
|
+
})(), g = {
|
|
626
626
|
open: i,
|
|
627
627
|
close: i
|
|
628
|
-
}, h = 39, b = 49, O = {}, m = ({ p: e$2 }, { open: t$3, close:
|
|
628
|
+
}, h = 39, b = 49, O = {}, m = ({ p: e$2 }, { open: t$3, close: l$1 }) => {
|
|
629
629
|
let o$1 = (e$3, ...r$1) => {
|
|
630
630
|
if (!e$3) {
|
|
631
|
-
if (t$3 && t$3 ===
|
|
631
|
+
if (t$3 && t$3 === l$1) return t$3;
|
|
632
632
|
if ((e$3 ?? i) === i) return i;
|
|
633
633
|
}
|
|
634
|
-
let
|
|
634
|
+
let n$2, s$2 = e$3.raw ? String.raw({ raw: e$3 }, ...r$1) : i + e$3, c$2 = o$1.p, a$2 = c$2.o, p$1 = c$2.c;
|
|
635
635
|
if (s$2.includes("\x1B")) for (; c$2; c$2 = c$2.p) {
|
|
636
|
-
let { open: e$4, close: t$4 } = c$2, r$2 = t$4.length,
|
|
637
|
-
if (r$2) for (; ~(
|
|
638
|
-
s$2 =
|
|
636
|
+
let { open: e$4, close: t$4 } = c$2, r$2 = t$4.length, l$2 = i, o$2 = 0;
|
|
637
|
+
if (r$2) for (; ~(n$2 = s$2.indexOf(t$4, o$2)); o$2 = n$2 + r$2) l$2 += s$2.slice(o$2, n$2) + e$4;
|
|
638
|
+
s$2 = l$2 + s$2.slice(o$2);
|
|
639
639
|
}
|
|
640
640
|
return a$2 + (s$2.includes("\n") ? s$2.replace(/(\r?\n)/g, p$1 + "$1" + a$2) : s$2) + p$1;
|
|
641
|
-
}, s$1 = t$3, c$1 =
|
|
642
|
-
return e$2 && (s$1 = e$2.o + t$3, c$1 =
|
|
641
|
+
}, s$1 = t$3, c$1 = l$1;
|
|
642
|
+
return e$2 && (s$1 = e$2.o + t$3, c$1 = l$1 + e$2.c), n$1(o$1, r), o$1.p = {
|
|
643
643
|
open: t$3,
|
|
644
|
-
close:
|
|
644
|
+
close: l$1,
|
|
645
645
|
o: s$1,
|
|
646
646
|
c: c$1,
|
|
647
647
|
p: e$2
|
|
648
648
|
}, o$1.open = s$1, o$1.close = c$1, o$1;
|
|
649
649
|
};
|
|
650
|
-
const w = function
|
|
651
|
-
let
|
|
652
|
-
Ansis:
|
|
653
|
-
level:
|
|
654
|
-
isSupported: () =>
|
|
650
|
+
const w = new function e$2(t$3 = f) {
|
|
651
|
+
let s$1 = {
|
|
652
|
+
Ansis: e$2,
|
|
653
|
+
level: t$3,
|
|
654
|
+
isSupported: () => a$2,
|
|
655
655
|
strip: (e$3) => e$3.replace(/[][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g, i),
|
|
656
656
|
extend(e$3) {
|
|
657
657
|
for (let t$4 in e$3) {
|
|
658
|
-
let r$1 = e$3[t$4], l$1 = (typeof r$1)[0]
|
|
659
|
-
|
|
660
|
-
return (...e$4) => m(this, r$1(...e$4));
|
|
661
|
-
} } : { get() {
|
|
662
|
-
let e$4 = m(this, o$1);
|
|
663
|
-
return n$1(this, t$4, { value: e$4 }), e$4;
|
|
664
|
-
} };
|
|
658
|
+
let r$1 = e$3[t$4], l$1 = (typeof r$1)[0];
|
|
659
|
+
"s" === l$1 ? (c$1(t$4, T(...p(r$1))), c$1(_(t$4), v(...p(r$1)))) : c$1(t$4, r$1, "f" === l$1);
|
|
665
660
|
}
|
|
666
|
-
return r = o({}, O),
|
|
661
|
+
return r = o({}, O), n$1(s$1, r), s$1;
|
|
667
662
|
}
|
|
668
|
-
},
|
|
663
|
+
}, c$1 = (e$3, t$4, r$1) => {
|
|
664
|
+
O[e$3] = { get() {
|
|
665
|
+
let n$2 = r$1 ? (...e$4) => m(this, t$4(...e$4)) : m(this, t$4);
|
|
666
|
+
return l(this, e$3, { value: n$2 }), n$2;
|
|
667
|
+
} };
|
|
668
|
+
}, a$2 = t$3 > 0, w$1 = (e$3, t$4) => a$2 ? {
|
|
669
669
|
open: `[${e$3}m`,
|
|
670
670
|
close: `[${t$4}m`
|
|
671
|
-
} :
|
|
672
|
-
2 ===
|
|
673
|
-
let
|
|
674
|
-
fg:
|
|
675
|
-
bg:
|
|
676
|
-
rgb:
|
|
677
|
-
bgRgb:
|
|
678
|
-
hex:
|
|
679
|
-
bgHex:
|
|
680
|
-
visible:
|
|
681
|
-
reset:
|
|
682
|
-
bold:
|
|
683
|
-
dim:
|
|
684
|
-
italic:
|
|
685
|
-
underline:
|
|
686
|
-
inverse:
|
|
687
|
-
hidden:
|
|
688
|
-
strikethrough:
|
|
689
|
-
},
|
|
671
|
+
} : g, y = (e$3) => (t$4) => e$3(...p(t$4)), R = (e$3, t$4) => (r$1, l$1, n$2) => w$1(`${e$3}8;2;${r$1};${l$1};${n$2}`, t$4), $ = (e$3, t$4) => (r$1, l$1, n$2) => w$1(((e$4, t$5, r$2) => d(u(e$4, t$5, r$2)))(r$1, l$1, n$2) + e$3, t$4), x = (e$3) => (t$4, r$1, l$1) => e$3(u(t$4, r$1, l$1)), T = R(3, h), v = R(4, b), C = (e$3) => w$1("38;5;" + e$3, h), E = (e$3) => w$1("48;5;" + e$3, b);
|
|
672
|
+
2 === t$3 ? (T = x(C), v = x(E)) : 1 === t$3 && (T = $(0, h), v = $(10, b), C = (e$3) => w$1(d(e$3), h), E = (e$3) => w$1(d(e$3) + 10, b));
|
|
673
|
+
let M, I = {
|
|
674
|
+
fg: C,
|
|
675
|
+
bg: E,
|
|
676
|
+
rgb: T,
|
|
677
|
+
bgRgb: v,
|
|
678
|
+
hex: y(T),
|
|
679
|
+
bgHex: y(v),
|
|
680
|
+
visible: g,
|
|
681
|
+
reset: w$1(0, 0),
|
|
682
|
+
bold: w$1(1, 22),
|
|
683
|
+
dim: w$1(2, 22),
|
|
684
|
+
italic: w$1(3, 23),
|
|
685
|
+
underline: w$1(4, 24),
|
|
686
|
+
inverse: w$1(7, 27),
|
|
687
|
+
hidden: w$1(8, 28),
|
|
688
|
+
strikethrough: w$1(9, 29)
|
|
689
|
+
}, _ = (e$3) => "bg" + e$3[0].toUpperCase() + e$3.slice(1), k = "Bright";
|
|
690
690
|
return "black,red,green,yellow,blue,magenta,cyan,white,gray".split(",").map(((e$3, t$4) => {
|
|
691
|
-
|
|
692
|
-
})),
|
|
693
|
-
}
|
|
694
|
-
module.exports =
|
|
691
|
+
M = _(e$3), 8 > t$4 ? (I[e$3 + k] = w$1(90 + t$4, h), I[M + k] = w$1(100 + t$4, b)) : t$4 = 60, I[e$3] = w$1(30 + t$4, h), I[M] = w$1(40 + t$4, b);
|
|
692
|
+
})), s$1.extend(I);
|
|
693
|
+
}();
|
|
694
|
+
module.exports = w, w.default = w;
|
|
695
695
|
}) });
|
|
696
696
|
|
|
697
697
|
//#endregion
|
|
698
|
-
//#region ../../node_modules/.pnpm/ansis@4.
|
|
698
|
+
//#region ../../node_modules/.pnpm/ansis@4.2.0/node_modules/ansis/index.mjs
|
|
699
699
|
var import_ansis = /* @__PURE__ */ __toESM(require_ansis(), 1);
|
|
700
700
|
var ansis_default = import_ansis.default;
|
|
701
701
|
const { Ansis, fg, bg, rgb, bgRgb, hex, bgHex, reset, inverse, hidden, visible, bold, dim, italic, underline, strikethrough, black, red, green, yellow, blue, magenta, cyan, white, gray, redBright, greenBright, yellowBright, blueBright, magentaBright, cyanBright, whiteBright, bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite, bgGray, bgRedBright, bgGreenBright, bgYellowBright, bgBlueBright, bgMagentaBright, bgCyanBright, bgWhiteBright } = import_ansis.default;
|
|
@@ -1638,6 +1638,18 @@ function omit(schema, keys) {
|
|
|
1638
1638
|
};
|
|
1639
1639
|
}
|
|
1640
1640
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1641
|
+
function partial(schema, keys) {
|
|
1642
|
+
const entries2 = {};
|
|
1643
|
+
for (const key in schema.entries) entries2[key] = !keys || keys.includes(key) ? /* @__PURE__ */ optional(schema.entries[key]) : schema.entries[key];
|
|
1644
|
+
return {
|
|
1645
|
+
...schema,
|
|
1646
|
+
entries: entries2,
|
|
1647
|
+
get "~standard"() {
|
|
1648
|
+
return /* @__PURE__ */ _getStandardProps(this);
|
|
1649
|
+
}
|
|
1650
|
+
};
|
|
1651
|
+
}
|
|
1652
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
1641
1653
|
function pipe(...pipe2) {
|
|
1642
1654
|
return {
|
|
1643
1655
|
...pipe2[0],
|
|
@@ -2092,6 +2104,11 @@ const AdvancedChunksSchema = strictObject({
|
|
|
2092
2104
|
maxModuleSize: optional(number())
|
|
2093
2105
|
})))
|
|
2094
2106
|
});
|
|
2107
|
+
const GeneratedCodePresetSchema = union([literal("es5"), literal("es2015")]);
|
|
2108
|
+
const GeneratedCodeOptionsSchema = strictObject({
|
|
2109
|
+
symbols: pipe(optional(boolean()), description("Whether to use Symbol.toStringTag for namespace objects")),
|
|
2110
|
+
preset: GeneratedCodePresetSchema
|
|
2111
|
+
});
|
|
2095
2112
|
const OutputOptionsSchema = strictObject({
|
|
2096
2113
|
dir: pipe(optional(string()), description("Output directory, defaults to `dist` if `file` is not set")),
|
|
2097
2114
|
file: pipe(optional(string()), description("Single output file")),
|
|
@@ -2139,6 +2156,7 @@ const OutputOptionsSchema = strictObject({
|
|
|
2139
2156
|
])), description("Minify the bundled file")),
|
|
2140
2157
|
name: pipe(optional(string()), description("Name for UMD / IIFE format outputs")),
|
|
2141
2158
|
globals: pipe(optional(union([record(string(), string()), GlobalsFunctionSchema])), description("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),
|
|
2159
|
+
generatedCode: pipe(optional(partial(GeneratedCodeOptionsSchema)), description("Generated code options")),
|
|
2142
2160
|
externalLiveBindings: pipe(optional(boolean()), description("external live bindings")),
|
|
2143
2161
|
inlineDynamicImports: pipe(optional(boolean()), description("Inline dynamic imports")),
|
|
2144
2162
|
manualChunks: optional(pipe(function_(), args(tuple([string(), object({})])), returns(union([string(), nullish(string())])))),
|
|
@@ -3965,7 +3983,7 @@ var ChunkingContextImpl = class {
|
|
|
3965
3983
|
//#endregion
|
|
3966
3984
|
//#region src/utils/bindingify-output-options.ts
|
|
3967
3985
|
function bindingifyOutputOptions(outputOptions) {
|
|
3968
|
-
const { dir, format, exports, hashCharacters, sourcemap, sourcemapBaseUrl, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, intro, outro, esModule, globals, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, preserveModulesRoot, manualChunks, topLevelVar } = outputOptions;
|
|
3986
|
+
const { dir, format, exports, hashCharacters, sourcemap, sourcemapBaseUrl, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, intro, outro, esModule, globals, generatedCode, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, preserveModulesRoot, manualChunks, topLevelVar } = outputOptions;
|
|
3969
3987
|
const advancedChunks = bindingifyAdvancedChunks(outputOptions.advancedChunks, manualChunks);
|
|
3970
3988
|
return {
|
|
3971
3989
|
dir,
|
|
@@ -3984,6 +4002,7 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
3984
4002
|
outro: bindingifyAddon(outro),
|
|
3985
4003
|
extend: outputOptions.extend,
|
|
3986
4004
|
globals,
|
|
4005
|
+
generatedCode,
|
|
3987
4006
|
esModule,
|
|
3988
4007
|
name,
|
|
3989
4008
|
assetFileNames: bindingifyAssetFilenames(assetFileNames),
|
|
@@ -4159,18 +4178,6 @@ async function createBundlerOptions(inputOptions, outputOptions, watchMode) {
|
|
|
4159
4178
|
}
|
|
4160
4179
|
}
|
|
4161
4180
|
|
|
4162
|
-
//#endregion
|
|
4163
|
-
//#region src/utils/transform-hmr-patch-output.ts
|
|
4164
|
-
function transformHmrPatchOutput(output) {
|
|
4165
|
-
handleHmrPatchOutputErrors(output);
|
|
4166
|
-
const { patch } = output;
|
|
4167
|
-
return patch ?? void 0;
|
|
4168
|
-
}
|
|
4169
|
-
function handleHmrPatchOutputErrors(output) {
|
|
4170
|
-
const rawErrors = output.errors;
|
|
4171
|
-
if (rawErrors.length > 0) throw normalizeErrors(rawErrors);
|
|
4172
|
-
}
|
|
4173
|
-
|
|
4174
4181
|
//#endregion
|
|
4175
4182
|
//#region src/api/rolldown/rolldown-build.ts
|
|
4176
4183
|
Symbol.asyncDispose ??= Symbol("Symbol.asyncDispose");
|
|
@@ -4232,18 +4239,6 @@ var RolldownBuild = class RolldownBuild {
|
|
|
4232
4239
|
async [Symbol.asyncDispose]() {
|
|
4233
4240
|
await this.close();
|
|
4234
4241
|
}
|
|
4235
|
-
async generateHmrPatch(changedFiles) {
|
|
4236
|
-
const ret = await this.#bundlerImpl.impl.generateHmrPatch(changedFiles);
|
|
4237
|
-
switch (ret.type) {
|
|
4238
|
-
case "Ok": return ret.field0;
|
|
4239
|
-
case "Error": throw normalizeErrors(ret.field0);
|
|
4240
|
-
default: throw new Error("Unknown error");
|
|
4241
|
-
}
|
|
4242
|
-
}
|
|
4243
|
-
async hmrInvalidate(file, firstInvalidatedBy) {
|
|
4244
|
-
const output = await this.#bundlerImpl.impl.hmrInvalidate(file, firstInvalidatedBy);
|
|
4245
|
-
return transformHmrPatchOutput(output);
|
|
4246
|
-
}
|
|
4247
4242
|
get watchFiles() {
|
|
4248
4243
|
return this.#bundlerImpl?.impl.getWatchFiles() ?? Promise.resolve([]);
|
|
4249
4244
|
}
|
|
@@ -27,7 +27,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
|
|
28
28
|
//#endregion
|
|
29
29
|
//#region package.json
|
|
30
|
-
var version = "1.0.0-beta.
|
|
30
|
+
var version = "1.0.0-beta.41";
|
|
31
31
|
|
|
32
32
|
//#endregion
|
|
33
33
|
//#region src/utils/code-frame.ts
|
|
@@ -414,13 +414,13 @@ let _lazyMatch = () => {
|
|
|
414
414
|
}, or$1 = (r$1, e$2, n$2) => S(r$1, e$2).map((a$2) => String(a$2).padStart(n$2, "0")), R = (r$1, e$2) => S(O$1(r$1), O$1(e$2)).map(ir), p$1 = (r$1) => r$1, z = (r$1) => ur((e$2) => rr(e$2, r$1, { memoization: false }).join("")), ur = (r$1) => {
|
|
415
415
|
const e$2 = {};
|
|
416
416
|
return (n$2) => e$2[n$2] ?? (e$2[n$2] = r$1(n$2));
|
|
417
|
-
}, sr = i$1(/^\*\*\/\*$/, ".*"), cr = i$1(/^\*\*\/(\*)?([ a-zA-Z0-9._-]+)$/, (r$1, e$2, n$2) => `.*${e$2 ? "" : "(?:^|/)"}${n$2.replaceAll(".", "\\.")}`), lr = i$1(/^\*\*\/(\*)?([ a-zA-Z0-9._-]*)\{([ a-zA-Z0-9._-]+(?:,[ a-zA-Z0-9._-]+)*)\}$/, (r$1, e$2, n$2, a$2) => `.*${e$2 ? "" : "(?:^|/)"}${n$2.replaceAll(".", "\\.")}(?:${a$2.replaceAll(",", "|").replaceAll(".", "\\.")})`), y
|
|
417
|
+
}, sr = i$1(/^\*\*\/\*$/, ".*"), cr = i$1(/^\*\*\/(\*)?([ a-zA-Z0-9._-]+)$/, (r$1, e$2, n$2) => `.*${e$2 ? "" : "(?:^|/)"}${n$2.replaceAll(".", "\\.")}`), lr = i$1(/^\*\*\/(\*)?([ a-zA-Z0-9._-]*)\{([ a-zA-Z0-9._-]+(?:,[ a-zA-Z0-9._-]+)*)\}$/, (r$1, e$2, n$2, a$2) => `.*${e$2 ? "" : "(?:^|/)"}${n$2.replaceAll(".", "\\.")}(?:${a$2.replaceAll(",", "|").replaceAll(".", "\\.")})`), y = i$1(/\\./, p$1), pr = i$1(/[$.*+?^(){}[\]\|]/, (r$1) => `\\${r$1}`), vr = i$1(/./, p$1), hr = i$1(/^(?:!!)*!(.*)$/, (r$1, e$2) => `(?!^${L(e$2)}$).*?`), dr = i$1(/^(!!)+/, ""), fr = l$1([hr, dr]), xr = i$1(/\/(\*\*\/)+/, "(?:/.+/|/)"), gr = i$1(/^(\*\*\/)+/, "(?:^|.*/)"), mr = i$1(/\/(\*\*)$/, "(?:/.*|$)"), _r = i$1(/\*\*/, ".*"), j = l$1([
|
|
418
418
|
xr,
|
|
419
419
|
gr,
|
|
420
420
|
mr,
|
|
421
421
|
_r
|
|
422
422
|
]), Sr = i$1(/\*\/(?!\*\*\/)/, "[^/]*/"), yr = i$1(/\*/, "[^/]*"), N = l$1([Sr, yr]), k = i$1("?", "[^/]"), $r = i$1("[", p$1), wr = i$1("]", p$1), Ar = i$1(/[!^]/, "^/"), br = i$1(/[a-z]-[a-z]|[0-9]-[0-9]/i, p$1), Cr = i$1(/[$.*+?^(){}[\|]/, (r$1) => `\\${r$1}`), Mr = i$1(/[^\]]/, p$1), Er = l$1([
|
|
423
|
-
y
|
|
423
|
+
y,
|
|
424
424
|
Cr,
|
|
425
425
|
br,
|
|
426
426
|
Mr
|
|
@@ -444,7 +444,7 @@ let _lazyMatch = () => {
|
|
|
444
444
|
B,
|
|
445
445
|
I,
|
|
446
446
|
Zr,
|
|
447
|
-
y
|
|
447
|
+
y,
|
|
448
448
|
Fr,
|
|
449
449
|
Ir,
|
|
450
450
|
Lr
|
|
@@ -452,7 +452,7 @@ let _lazyMatch = () => {
|
|
|
452
452
|
kr,
|
|
453
453
|
f$1(Dr),
|
|
454
454
|
Br
|
|
455
|
-
]),
|
|
455
|
+
]), Vr = f$1(l$1([
|
|
456
456
|
sr,
|
|
457
457
|
cr,
|
|
458
458
|
lr,
|
|
@@ -463,16 +463,16 @@ let _lazyMatch = () => {
|
|
|
463
463
|
B,
|
|
464
464
|
I,
|
|
465
465
|
F,
|
|
466
|
-
y
|
|
466
|
+
y,
|
|
467
467
|
pr,
|
|
468
468
|
vr
|
|
469
|
-
])),
|
|
469
|
+
])), L = z(Vr), Tr = i$1(/\\./, p$1), qr = i$1(/./, p$1), Hr = i$1(/\*\*\*+/, "*"), Jr = i$1(/([^/{[(!])\*\*/, (r$1, e$2) => `${e$2}*`), Qr = i$1(/(^|.)\*\*(?=[^*/)\]}])/, (r$1, e$2) => `${e$2}*`), Kr = f$1(l$1([
|
|
470
470
|
Tr,
|
|
471
471
|
Hr,
|
|
472
472
|
Jr,
|
|
473
473
|
Qr,
|
|
474
474
|
qr
|
|
475
|
-
])),
|
|
475
|
+
])), Yr = z(Kr), $ = (r$1, e$2) => {
|
|
476
476
|
const n$2 = Array.isArray(r$1) ? r$1 : [r$1];
|
|
477
477
|
if (!n$2.length) return false;
|
|
478
478
|
const a$2 = n$2.map($.compile), t$3 = n$2.every((s$1) => /(\/(?:\*\*)?|\[\/\])$/.test(s$1)), o$1 = e$2.replace(/[\\\/]+/g, "/").replace(/\/$/, t$3 ? "/" : "");
|
|
@@ -1035,20 +1035,20 @@ function getSortedPlugins(hookName, plugins) {
|
|
|
1035
1035
|
}
|
|
1036
1036
|
|
|
1037
1037
|
//#endregion
|
|
1038
|
-
//#region ../../node_modules/.pnpm/ansis@4.
|
|
1039
|
-
var require_ansis = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ansis@4.
|
|
1040
|
-
let e$1, t$2, r, { defineProperty:
|
|
1041
|
-
let t$3 = /([a-f\d]{3,6})/i.exec(e$2)?.[1], r$1 = t$3?.length,
|
|
1038
|
+
//#region ../../node_modules/.pnpm/ansis@4.2.0/node_modules/ansis/index.cjs
|
|
1039
|
+
var require_ansis = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ansis@4.2.0/node_modules/ansis/index.cjs": ((exports, module) => {
|
|
1040
|
+
let e$1, t$2, r, { defineProperty: l, setPrototypeOf: n$1, create: o, keys: s } = Object, i = "", { round: c, max: a$1 } = Math, p = (e$2) => {
|
|
1041
|
+
let t$3 = /([a-f\d]{3,6})/i.exec(e$2)?.[1], r$1 = t$3?.length, l$1 = parseInt(6 ^ r$1 ? 3 ^ r$1 ? "0" : t$3[0] + t$3[0] + t$3[1] + t$3[1] + t$3[2] + t$3[2] : t$3, 16);
|
|
1042
1042
|
return [
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
255 &
|
|
1043
|
+
l$1 >> 16 & 255,
|
|
1044
|
+
l$1 >> 8 & 255,
|
|
1045
|
+
255 & l$1
|
|
1046
1046
|
];
|
|
1047
1047
|
}, u = (e$2, t$3, r$1) => e$2 ^ t$3 || t$3 ^ r$1 ? 16 + 36 * c(e$2 / 51) + 6 * c(t$3 / 51) + c(r$1 / 51) : 8 > e$2 ? 16 : e$2 > 248 ? 231 : c(24 * (e$2 - 8) / 247) + 232, d = (e$2) => {
|
|
1048
|
-
let t$3, r$1,
|
|
1049
|
-
return 8 > e$2 ? 30 + e$2 : 16 > e$2 ? e$2 - 8 + 90 : (232 > e$2 ? (o$1 = (e$2 -= 16) % 36, t$3 = (e$2 / 36 | 0) / 5, r$1 = (o$1 / 6 | 0) / 5,
|
|
1050
|
-
},
|
|
1051
|
-
let r$1 = (e$2) => o$1.some(((t$3) => e$2.test(t$3))),
|
|
1048
|
+
let t$3, r$1, l$1, n$2, o$1;
|
|
1049
|
+
return 8 > e$2 ? 30 + e$2 : 16 > e$2 ? e$2 - 8 + 90 : (232 > e$2 ? (o$1 = (e$2 -= 16) % 36, t$3 = (e$2 / 36 | 0) / 5, r$1 = (o$1 / 6 | 0) / 5, l$1 = o$1 % 6 / 5) : t$3 = r$1 = l$1 = (10 * (e$2 - 232) + 8) / 255, n$2 = 2 * a$1(t$3, r$1, l$1), n$2 ? 30 + (c(l$1) << 2 | c(r$1) << 1 | c(t$3)) + (2 ^ n$2 ? 0 : 60) : 30);
|
|
1050
|
+
}, f = (() => {
|
|
1051
|
+
let r$1 = (e$2) => o$1.some(((t$3) => e$2.test(t$3))), l$1 = globalThis, n$2 = l$1.process ?? {}, o$1 = n$2.argv ?? [], i$1 = n$2.env ?? {}, c$1 = -1;
|
|
1052
1052
|
try {
|
|
1053
1053
|
e$1 = "," + s(i$1).join(",");
|
|
1054
1054
|
} catch (e$2) {
|
|
@@ -1061,86 +1061,86 @@ var require_ansis = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ansis
|
|
|
1061
1061
|
2: 2,
|
|
1062
1062
|
3: 3
|
|
1063
1063
|
}[i$1[a$2]] ?? -1, u$1 = a$2 in i$1 && p$1 || r$1(/^--color=?(true|always)?$/);
|
|
1064
|
-
return u$1 && (c$1 = p$1), ~c$1 || (c$1 = ((r$2,
|
|
1064
|
+
return u$1 && (c$1 = p$1), ~c$1 || (c$1 = ((r$2, l$2, n$3) => (t$2 = r$2.TERM, {
|
|
1065
1065
|
"24bit": 3,
|
|
1066
1066
|
truecolor: 3,
|
|
1067
1067
|
ansi256: 2,
|
|
1068
1068
|
ansi: 1
|
|
1069
|
-
}[r$2.COLORTERM] || (r$2.CI ? /,GITHUB/.test(e$1) ? 3 : 1 :
|
|
1070
|
-
})(),
|
|
1069
|
+
}[r$2.COLORTERM] || (r$2.CI ? /,GITHUB/.test(e$1) ? 3 : 1 : l$2 && "dumb" !== t$2 ? n$3 ? 3 : /-256/.test(t$2) ? 2 : 1 : 0)))(i$1, !!i$1.PM2_HOME || i$1.NEXT_RUNTIME?.includes("edge") || !!n$2.stdout?.isTTY, "win32" === n$2.platform)), !p$1 || i$1.NO_COLOR || r$1(/^--(no-color|color=(false|never))$/) ? 0 : l$1.window?.chrome || u$1 && !c$1 ? 3 : c$1;
|
|
1070
|
+
})(), g = {
|
|
1071
1071
|
open: i,
|
|
1072
1072
|
close: i
|
|
1073
|
-
}, h = 39, b = 49, O = {}, m = ({ p: e$2 }, { open: t$3, close:
|
|
1073
|
+
}, h = 39, b = 49, O = {}, m = ({ p: e$2 }, { open: t$3, close: l$1 }) => {
|
|
1074
1074
|
let o$1 = (e$3, ...r$1) => {
|
|
1075
1075
|
if (!e$3) {
|
|
1076
|
-
if (t$3 && t$3 ===
|
|
1076
|
+
if (t$3 && t$3 === l$1) return t$3;
|
|
1077
1077
|
if ((e$3 ?? i) === i) return i;
|
|
1078
1078
|
}
|
|
1079
|
-
let
|
|
1079
|
+
let n$2, s$2 = e$3.raw ? String.raw({ raw: e$3 }, ...r$1) : i + e$3, c$2 = o$1.p, a$2 = c$2.o, p$1 = c$2.c;
|
|
1080
1080
|
if (s$2.includes("\x1B")) for (; c$2; c$2 = c$2.p) {
|
|
1081
|
-
let { open: e$4, close: t$4 } = c$2, r$2 = t$4.length,
|
|
1082
|
-
if (r$2) for (; ~(
|
|
1083
|
-
s$2 =
|
|
1081
|
+
let { open: e$4, close: t$4 } = c$2, r$2 = t$4.length, l$2 = i, o$2 = 0;
|
|
1082
|
+
if (r$2) for (; ~(n$2 = s$2.indexOf(t$4, o$2)); o$2 = n$2 + r$2) l$2 += s$2.slice(o$2, n$2) + e$4;
|
|
1083
|
+
s$2 = l$2 + s$2.slice(o$2);
|
|
1084
1084
|
}
|
|
1085
1085
|
return a$2 + (s$2.includes("\n") ? s$2.replace(/(\r?\n)/g, p$1 + "$1" + a$2) : s$2) + p$1;
|
|
1086
|
-
}, s$1 = t$3, c$1 =
|
|
1087
|
-
return e$2 && (s$1 = e$2.o + t$3, c$1 =
|
|
1086
|
+
}, s$1 = t$3, c$1 = l$1;
|
|
1087
|
+
return e$2 && (s$1 = e$2.o + t$3, c$1 = l$1 + e$2.c), n$1(o$1, r), o$1.p = {
|
|
1088
1088
|
open: t$3,
|
|
1089
|
-
close:
|
|
1089
|
+
close: l$1,
|
|
1090
1090
|
o: s$1,
|
|
1091
1091
|
c: c$1,
|
|
1092
1092
|
p: e$2
|
|
1093
1093
|
}, o$1.open = s$1, o$1.close = c$1, o$1;
|
|
1094
1094
|
};
|
|
1095
|
-
const w = function
|
|
1096
|
-
let
|
|
1097
|
-
Ansis:
|
|
1098
|
-
level:
|
|
1099
|
-
isSupported: () =>
|
|
1095
|
+
const w = new function e$2(t$3 = f) {
|
|
1096
|
+
let s$1 = {
|
|
1097
|
+
Ansis: e$2,
|
|
1098
|
+
level: t$3,
|
|
1099
|
+
isSupported: () => a$2,
|
|
1100
1100
|
strip: (e$3) => e$3.replace(/[][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g, i),
|
|
1101
1101
|
extend(e$3) {
|
|
1102
1102
|
for (let t$4 in e$3) {
|
|
1103
|
-
let r$1 = e$3[t$4], l$1 = (typeof r$1)[0]
|
|
1104
|
-
|
|
1105
|
-
return (...e$4) => m(this, r$1(...e$4));
|
|
1106
|
-
} } : { get() {
|
|
1107
|
-
let e$4 = m(this, o$1);
|
|
1108
|
-
return n$1(this, t$4, { value: e$4 }), e$4;
|
|
1109
|
-
} };
|
|
1103
|
+
let r$1 = e$3[t$4], l$1 = (typeof r$1)[0];
|
|
1104
|
+
"s" === l$1 ? (c$1(t$4, T(...p(r$1))), c$1(_(t$4), v(...p(r$1)))) : c$1(t$4, r$1, "f" === l$1);
|
|
1110
1105
|
}
|
|
1111
|
-
return r = o({}, O),
|
|
1106
|
+
return r = o({}, O), n$1(s$1, r), s$1;
|
|
1112
1107
|
}
|
|
1113
|
-
},
|
|
1108
|
+
}, c$1 = (e$3, t$4, r$1) => {
|
|
1109
|
+
O[e$3] = { get() {
|
|
1110
|
+
let n$2 = r$1 ? (...e$4) => m(this, t$4(...e$4)) : m(this, t$4);
|
|
1111
|
+
return l(this, e$3, { value: n$2 }), n$2;
|
|
1112
|
+
} };
|
|
1113
|
+
}, a$2 = t$3 > 0, w$1 = (e$3, t$4) => a$2 ? {
|
|
1114
1114
|
open: `[${e$3}m`,
|
|
1115
1115
|
close: `[${t$4}m`
|
|
1116
|
-
} :
|
|
1117
|
-
2 ===
|
|
1118
|
-
let
|
|
1119
|
-
fg:
|
|
1120
|
-
bg:
|
|
1121
|
-
rgb:
|
|
1122
|
-
bgRgb:
|
|
1123
|
-
hex:
|
|
1124
|
-
bgHex:
|
|
1125
|
-
visible:
|
|
1126
|
-
reset:
|
|
1127
|
-
bold:
|
|
1128
|
-
dim:
|
|
1129
|
-
italic:
|
|
1130
|
-
underline:
|
|
1131
|
-
inverse:
|
|
1132
|
-
hidden:
|
|
1133
|
-
strikethrough:
|
|
1134
|
-
},
|
|
1116
|
+
} : g, y = (e$3) => (t$4) => e$3(...p(t$4)), R = (e$3, t$4) => (r$1, l$1, n$2) => w$1(`${e$3}8;2;${r$1};${l$1};${n$2}`, t$4), $ = (e$3, t$4) => (r$1, l$1, n$2) => w$1(((e$4, t$5, r$2) => d(u(e$4, t$5, r$2)))(r$1, l$1, n$2) + e$3, t$4), x = (e$3) => (t$4, r$1, l$1) => e$3(u(t$4, r$1, l$1)), T = R(3, h), v = R(4, b), C = (e$3) => w$1("38;5;" + e$3, h), E = (e$3) => w$1("48;5;" + e$3, b);
|
|
1117
|
+
2 === t$3 ? (T = x(C), v = x(E)) : 1 === t$3 && (T = $(0, h), v = $(10, b), C = (e$3) => w$1(d(e$3), h), E = (e$3) => w$1(d(e$3) + 10, b));
|
|
1118
|
+
let M, I = {
|
|
1119
|
+
fg: C,
|
|
1120
|
+
bg: E,
|
|
1121
|
+
rgb: T,
|
|
1122
|
+
bgRgb: v,
|
|
1123
|
+
hex: y(T),
|
|
1124
|
+
bgHex: y(v),
|
|
1125
|
+
visible: g,
|
|
1126
|
+
reset: w$1(0, 0),
|
|
1127
|
+
bold: w$1(1, 22),
|
|
1128
|
+
dim: w$1(2, 22),
|
|
1129
|
+
italic: w$1(3, 23),
|
|
1130
|
+
underline: w$1(4, 24),
|
|
1131
|
+
inverse: w$1(7, 27),
|
|
1132
|
+
hidden: w$1(8, 28),
|
|
1133
|
+
strikethrough: w$1(9, 29)
|
|
1134
|
+
}, _ = (e$3) => "bg" + e$3[0].toUpperCase() + e$3.slice(1), k = "Bright";
|
|
1135
1135
|
return "black,red,green,yellow,blue,magenta,cyan,white,gray".split(",").map(((e$3, t$4) => {
|
|
1136
|
-
|
|
1137
|
-
})),
|
|
1138
|
-
}
|
|
1139
|
-
module.exports =
|
|
1136
|
+
M = _(e$3), 8 > t$4 ? (I[e$3 + k] = w$1(90 + t$4, h), I[M + k] = w$1(100 + t$4, b)) : t$4 = 60, I[e$3] = w$1(30 + t$4, h), I[M] = w$1(40 + t$4, b);
|
|
1137
|
+
})), s$1.extend(I);
|
|
1138
|
+
}();
|
|
1139
|
+
module.exports = w, w.default = w;
|
|
1140
1140
|
}) });
|
|
1141
1141
|
|
|
1142
1142
|
//#endregion
|
|
1143
|
-
//#region ../../node_modules/.pnpm/ansis@4.
|
|
1143
|
+
//#region ../../node_modules/.pnpm/ansis@4.2.0/node_modules/ansis/index.mjs
|
|
1144
1144
|
var import_ansis = /* @__PURE__ */ __toESM(require_ansis(), 1);
|
|
1145
1145
|
var ansis_default = import_ansis.default;
|
|
1146
1146
|
const { Ansis, fg, bg, rgb, bgRgb, hex, bgHex, reset, inverse, hidden, visible, bold, dim, italic, underline, strikethrough, black, red, green, yellow, blue, magenta, cyan, white, gray, redBright, greenBright, yellowBright, blueBright, magentaBright, cyanBright, whiteBright, bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite, bgGray, bgRedBright, bgGreenBright, bgYellowBright, bgBlueBright, bgMagentaBright, bgCyanBright, bgWhiteBright } = import_ansis.default;
|
|
@@ -2059,6 +2059,18 @@ function omit(schema, keys) {
|
|
|
2059
2059
|
};
|
|
2060
2060
|
}
|
|
2061
2061
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2062
|
+
function partial(schema, keys) {
|
|
2063
|
+
const entries2 = {};
|
|
2064
|
+
for (const key in schema.entries) entries2[key] = !keys || keys.includes(key) ? /* @__PURE__ */ optional(schema.entries[key]) : schema.entries[key];
|
|
2065
|
+
return {
|
|
2066
|
+
...schema,
|
|
2067
|
+
entries: entries2,
|
|
2068
|
+
get "~standard"() {
|
|
2069
|
+
return /* @__PURE__ */ _getStandardProps(this);
|
|
2070
|
+
}
|
|
2071
|
+
};
|
|
2072
|
+
}
|
|
2073
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2062
2074
|
function pipe(...pipe2) {
|
|
2063
2075
|
return {
|
|
2064
2076
|
...pipe2[0],
|
|
@@ -2448,6 +2460,11 @@ const AdvancedChunksSchema = strictObject({
|
|
|
2448
2460
|
maxModuleSize: optional(number())
|
|
2449
2461
|
})))
|
|
2450
2462
|
});
|
|
2463
|
+
const GeneratedCodePresetSchema = union([literal("es5"), literal("es2015")]);
|
|
2464
|
+
const GeneratedCodeOptionsSchema = strictObject({
|
|
2465
|
+
symbols: pipe(optional(boolean()), description("Whether to use Symbol.toStringTag for namespace objects")),
|
|
2466
|
+
preset: GeneratedCodePresetSchema
|
|
2467
|
+
});
|
|
2451
2468
|
const OutputOptionsSchema = strictObject({
|
|
2452
2469
|
dir: pipe(optional(string()), description("Output directory, defaults to `dist` if `file` is not set")),
|
|
2453
2470
|
file: pipe(optional(string()), description("Single output file")),
|
|
@@ -2495,6 +2512,7 @@ const OutputOptionsSchema = strictObject({
|
|
|
2495
2512
|
])), description("Minify the bundled file")),
|
|
2496
2513
|
name: pipe(optional(string()), description("Name for UMD / IIFE format outputs")),
|
|
2497
2514
|
globals: pipe(optional(union([record(string(), string()), GlobalsFunctionSchema])), description("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),
|
|
2515
|
+
generatedCode: pipe(optional(partial(GeneratedCodeOptionsSchema)), description("Generated code options")),
|
|
2498
2516
|
externalLiveBindings: pipe(optional(boolean()), description("external live bindings")),
|
|
2499
2517
|
inlineDynamicImports: pipe(optional(boolean()), description("Inline dynamic imports")),
|
|
2500
2518
|
manualChunks: optional(pipe(function_(), args(tuple([string(), object({})])), returns(union([string(), nullish(string())])))),
|
|
@@ -2950,7 +2968,7 @@ function bindingPluginOrder(order) {
|
|
|
2950
2968
|
}
|
|
2951
2969
|
|
|
2952
2970
|
//#endregion
|
|
2953
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
2971
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.93.0/node_modules/oxc-parser/src-js/wrap.js
|
|
2954
2972
|
function wrap$1(result) {
|
|
2955
2973
|
let program, module$1, comments, errors;
|
|
2956
2974
|
return {
|
|
@@ -4466,7 +4484,7 @@ var ChunkingContextImpl = class {
|
|
|
4466
4484
|
//#endregion
|
|
4467
4485
|
//#region src/utils/bindingify-output-options.ts
|
|
4468
4486
|
function bindingifyOutputOptions(outputOptions) {
|
|
4469
|
-
const { dir, format: format$1, exports, hashCharacters, sourcemap, sourcemapBaseUrl, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, intro, outro, esModule, globals, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, preserveModulesRoot, manualChunks, topLevelVar } = outputOptions;
|
|
4487
|
+
const { dir, format: format$1, exports, hashCharacters, sourcemap, sourcemapBaseUrl, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, intro, outro, esModule, globals, generatedCode, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, preserveModulesRoot, manualChunks, topLevelVar } = outputOptions;
|
|
4470
4488
|
const advancedChunks = bindingifyAdvancedChunks(outputOptions.advancedChunks, manualChunks);
|
|
4471
4489
|
return {
|
|
4472
4490
|
dir,
|
|
@@ -4485,6 +4503,7 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
4485
4503
|
outro: bindingifyAddon(outro),
|
|
4486
4504
|
extend: outputOptions.extend,
|
|
4487
4505
|
globals,
|
|
4506
|
+
generatedCode,
|
|
4488
4507
|
esModule,
|
|
4489
4508
|
name,
|
|
4490
4509
|
assetFileNames: bindingifyAssetFilenames(assetFileNames),
|
|
@@ -4598,18 +4617,6 @@ async function createBundlerOptions(inputOptions, outputOptions, watchMode) {
|
|
|
4598
4617
|
}
|
|
4599
4618
|
}
|
|
4600
4619
|
|
|
4601
|
-
//#endregion
|
|
4602
|
-
//#region src/utils/transform-hmr-patch-output.ts
|
|
4603
|
-
function transformHmrPatchOutput(output) {
|
|
4604
|
-
handleHmrPatchOutputErrors(output);
|
|
4605
|
-
const { patch } = output;
|
|
4606
|
-
return patch ?? void 0;
|
|
4607
|
-
}
|
|
4608
|
-
function handleHmrPatchOutputErrors(output) {
|
|
4609
|
-
const rawErrors = output.errors;
|
|
4610
|
-
if (rawErrors.length > 0) throw normalizeErrors(rawErrors);
|
|
4611
|
-
}
|
|
4612
|
-
|
|
4613
4620
|
//#endregion
|
|
4614
4621
|
//#region src/api/rolldown/rolldown-build.ts
|
|
4615
4622
|
Symbol.asyncDispose ??= Symbol("Symbol.asyncDispose");
|
|
@@ -4671,18 +4678,6 @@ var RolldownBuild = class RolldownBuild {
|
|
|
4671
4678
|
async [Symbol.asyncDispose]() {
|
|
4672
4679
|
await this.close();
|
|
4673
4680
|
}
|
|
4674
|
-
async generateHmrPatch(changedFiles) {
|
|
4675
|
-
const ret = await this.#bundlerImpl.impl.generateHmrPatch(changedFiles);
|
|
4676
|
-
switch (ret.type) {
|
|
4677
|
-
case "Ok": return ret.field0;
|
|
4678
|
-
case "Error": throw normalizeErrors(ret.field0);
|
|
4679
|
-
default: throw new Error("Unknown error");
|
|
4680
|
-
}
|
|
4681
|
-
}
|
|
4682
|
-
async hmrInvalidate(file, firstInvalidatedBy) {
|
|
4683
|
-
const output = await this.#bundlerImpl.impl.hmrInvalidate(file, firstInvalidatedBy);
|
|
4684
|
-
return transformHmrPatchOutput(output);
|
|
4685
|
-
}
|
|
4686
4681
|
get watchFiles() {
|
|
4687
4682
|
return this.#bundlerImpl?.impl.getWatchFiles() ?? Promise.resolve([]);
|
|
4688
4683
|
}
|
package/package.json
CHANGED