@voidzero-dev/vite-plus-core 0.1.14-alpha.0 → 0.1.14-alpha.2
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/rolldown/cli.mjs +6 -10
- package/dist/rolldown/config.d.mts +1 -1
- package/dist/rolldown/config.mjs +2 -8
- package/dist/rolldown/experimental-index.d.mts +4 -4
- package/dist/rolldown/experimental-index.mjs +8 -8
- package/dist/rolldown/filter-index.d.mts +1 -1
- package/dist/rolldown/index.d.mts +2 -2
- package/dist/rolldown/index.mjs +4 -8
- package/dist/rolldown/parallel-plugin-worker.mjs +2 -5
- package/dist/rolldown/parallel-plugin.d.mts +1 -1
- package/dist/rolldown/parse-ast-index.d.mts +1 -1
- package/dist/rolldown/parse-ast-index.mjs +1 -2
- package/dist/rolldown/plugins-index.d.mts +3 -3
- package/dist/rolldown/plugins-index.mjs +2 -3
- package/dist/rolldown/shared/{binding-Dsq9Azhm.d.mts → binding-CYVfiOV3.d.mts} +15 -0
- package/dist/rolldown/shared/{bindingify-input-options-nddSVL89.mjs → bindingify-input-options-DHK3MwUV.mjs} +26 -4
- package/dist/rolldown/shared/{constructors-DqC7XSXy.mjs → constructors-BfnFojy3.mjs} +1 -1
- package/dist/rolldown/shared/{constructors-DfpIbfMG.d.mts → constructors-DRe7RuMC.d.mts} +2 -2
- package/dist/rolldown/shared/{define-config-CV9D_Qea.d.mts → define-config-BkRKRADp.d.mts} +17 -3
- package/dist/rolldown/shared/{error-BO4SlZV_.mjs → error-D8cGyrC7.mjs} +1 -1
- package/dist/rolldown/shared/{load-config-CDqvxxnl.mjs → load-config-DT77Jzbv.mjs} +1 -1
- package/dist/rolldown/shared/{normalize-string-or-regex-D7wlw16t.mjs → normalize-string-or-regex-BFB1QNW3.mjs} +20 -12
- package/dist/rolldown/shared/{parse-WOgXxW4-.mjs → parse-CCDXnkPL.mjs} +2 -2
- package/dist/rolldown/shared/{resolve-tsconfig-C3OzszY-.mjs → resolve-tsconfig-gxOviCVx.mjs} +2 -2
- package/dist/rolldown/shared/{rolldown-DUOYLKyH.mjs → rolldown-DFpH3t7W.mjs} +1 -1
- package/dist/rolldown/shared/{rolldown-build-C7TjtSci.mjs → rolldown-build-ZUNnA-sr.mjs} +8 -6
- package/dist/rolldown/shared/{transform-B5D1aA1B.d.mts → transform-C_gBfjMR.d.mts} +1 -1
- package/dist/rolldown/shared/{watch-BV1BB_LU.mjs → watch-C4x8DFD_.mjs} +4 -4
- package/dist/rolldown/utils-index.d.mts +3 -3
- package/dist/rolldown/utils-index.mjs +5 -7
- package/dist/tsdown/{build-CoLhkNXE-DccPqXpK.js → build-CoLhkNXE-CmOD7RnO.js} +7 -7
- package/dist/tsdown/build-dhDyu66J-C6Nd9qmR.js +2 -0
- package/dist/tsdown/{debug-C4FmgzkJ-BxvFHEjv.js → debug-C4FmgzkJ-GjwR9kY5.js} +2 -2
- package/dist/tsdown/{detect-DN3DXXYt-CgZGWZG7.js → detect-DN3DXXYt-CCqla4Th.js} +1 -1
- package/dist/tsdown/index-types.d.ts +5 -5
- package/dist/tsdown/index.js +4 -6
- package/dist/tsdown/{main-CU_sednE.js → main-Dru8oclH.js} +2 -2
- package/dist/tsdown/npm_entry_semver_functions_lt.cjs +0 -1
- package/dist/tsdown/npm_entry_semver_functions_satisfies.cjs +0 -2
- package/dist/tsdown/npm_entry_semver_ranges_min-version.cjs +0 -1
- package/dist/tsdown/run.js +3 -4
- package/dist/vite/client/client.mjs +4 -4
- package/dist/vite/node/chunks/build.js +0 -1
- package/dist/vite/node/chunks/config.js +0 -1
- package/dist/vite/node/chunks/logger.js +1 -1
- package/dist/vite/node/chunks/node.js +42 -30
- package/dist/vite/node/chunks/optimizer.js +0 -1
- package/dist/vite/node/chunks/preview.js +0 -1
- package/dist/vite/node/chunks/server.js +0 -1
- package/dist/vite/node/index.d.ts +9 -2
- package/package.json +9 -9
- package/dist/tsdown/build-dhDyu66J-C3xzaksU.js +0 -5
- /package/dist/rolldown/shared/{binding-BV_UWDF3.mjs → binding-ER32uZ22.mjs} +0 -0
package/dist/rolldown/cli.mjs
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import "./shared/
|
|
2
|
-
import {
|
|
3
|
-
import "./shared/normalize-string-or-regex-D7wlw16t.mjs";
|
|
4
|
-
import { C as version, S as description } from "./shared/bindingify-input-options-nddSVL89.mjs";
|
|
1
|
+
import { n as onExit, t as watch } from "./shared/watch-C4x8DFD_.mjs";
|
|
2
|
+
import { C as version, S as description } from "./shared/bindingify-input-options-DHK3MwUV.mjs";
|
|
5
3
|
import { t as arraify } from "./shared/misc-DJYbNKZX.mjs";
|
|
6
|
-
import { a as getInputCliKeys, i as getCliSchemaInfo, l as styleText, o as getOutputCliKeys, r as logger, s as validateCliOptions } from "./shared/rolldown-build-
|
|
7
|
-
import "./shared/
|
|
8
|
-
import "./shared/
|
|
9
|
-
import { t as rolldown } from "./shared/rolldown-DUOYLKyH.mjs";
|
|
10
|
-
import { t as loadConfig } from "./shared/load-config-CDqvxxnl.mjs";
|
|
4
|
+
import { a as getInputCliKeys, i as getCliSchemaInfo, l as styleText, o as getOutputCliKeys, r as logger, s as validateCliOptions } from "./shared/rolldown-build-ZUNnA-sr.mjs";
|
|
5
|
+
import { t as rolldown } from "./shared/rolldown-DFpH3t7W.mjs";
|
|
6
|
+
import { t as loadConfig } from "./shared/load-config-DT77Jzbv.mjs";
|
|
11
7
|
import path from "node:path";
|
|
12
8
|
import process$1 from "node:process";
|
|
13
9
|
import { performance } from "node:perf_hooks";
|
|
@@ -851,7 +847,7 @@ function getClearScreenFunction(options) {
|
|
|
851
847
|
};
|
|
852
848
|
}
|
|
853
849
|
//#endregion
|
|
854
|
-
//#region \0@oxc-project+runtime@0.
|
|
850
|
+
//#region \0@oxc-project+runtime@0.121.0/helpers/usingCtx.js
|
|
855
851
|
function _usingCtx() {
|
|
856
852
|
var r = "function" == typeof SuppressedError ? SuppressedError : function(r, e) {
|
|
857
853
|
var n = Error();
|
package/dist/rolldown/config.mjs
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import "./shared/
|
|
2
|
-
import "./shared/normalize-string-or-regex-D7wlw16t.mjs";
|
|
3
|
-
import { x as VERSION } from "./shared/bindingify-input-options-nddSVL89.mjs";
|
|
4
|
-
import "./shared/rolldown-build-C7TjtSci.mjs";
|
|
5
|
-
import "./shared/error-BO4SlZV_.mjs";
|
|
6
|
-
import "./shared/parse-WOgXxW4-.mjs";
|
|
7
|
-
import "./shared/rolldown-DUOYLKyH.mjs";
|
|
1
|
+
import { x as VERSION } from "./shared/bindingify-input-options-DHK3MwUV.mjs";
|
|
8
2
|
import { t as defineConfig } from "./shared/define-config-DJOr6Iwt.mjs";
|
|
9
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
3
|
+
import { t as loadConfig } from "./shared/load-config-DT77Jzbv.mjs";
|
|
10
4
|
export { VERSION, defineConfig, loadConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as ResolveResult, C as BindingViteManifestPluginConfig, G as isolatedDeclaration, I as NapiResolveOptions, K as isolatedDeclarationSync, M as IsolatedDeclarationsResult, O as BindingViteTransformPluginConfig, V as ResolverFactory, _ as BindingTsconfigRawOptions, f as BindingRebuildStrategy, g as BindingTsconfigCompilerOptions, i as BindingClientHmrUpdate, j as IsolatedDeclarationsOptions, n as BindingBundleAnalyzerPluginConfig, q as moduleRunnerTransform, r as BindingBundleState } from "./shared/binding-
|
|
2
|
-
import { Jt as freeExternalMemory, Kt as RolldownOutput, Lt as OutputOptions, N as BuiltinPlugin, X as defineParallelPlugin, c as InputOptions, st as NormalizedOutputOptions } from "./shared/define-config-
|
|
3
|
-
import { a as MinifyOptions$1, c as minifySync$1, d as parse$1, f as parseSync$1, i as transformSync$1, l as ParseResult$1, m as resolveTsconfig, n as TransformResult$1, o as MinifyResult$1, p as TsconfigCache$1, r as transform$1, s as minify$1, t as TransformOptions$1, u as ParserOptions$1 } from "./shared/transform-
|
|
4
|
-
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, m as viteWebWorkerPostPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWasmFallbackPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-
|
|
1
|
+
import { B as ResolveResult, C as BindingViteManifestPluginConfig, G as isolatedDeclaration, I as NapiResolveOptions, K as isolatedDeclarationSync, M as IsolatedDeclarationsResult, O as BindingViteTransformPluginConfig, V as ResolverFactory, _ as BindingTsconfigRawOptions, f as BindingRebuildStrategy, g as BindingTsconfigCompilerOptions, i as BindingClientHmrUpdate, j as IsolatedDeclarationsOptions, n as BindingBundleAnalyzerPluginConfig, q as moduleRunnerTransform, r as BindingBundleState } from "./shared/binding-CYVfiOV3.mjs";
|
|
2
|
+
import { Jt as freeExternalMemory, Kt as RolldownOutput, Lt as OutputOptions, N as BuiltinPlugin, X as defineParallelPlugin, c as InputOptions, st as NormalizedOutputOptions } from "./shared/define-config-BkRKRADp.mjs";
|
|
3
|
+
import { a as MinifyOptions$1, c as minifySync$1, d as parse$1, f as parseSync$1, i as transformSync$1, l as ParseResult$1, m as resolveTsconfig, n as TransformResult$1, o as MinifyResult$1, p as TsconfigCache$1, r as transform$1, s as minify$1, t as TransformOptions$1, u as ParserOptions$1 } from "./shared/transform-C_gBfjMR.mjs";
|
|
4
|
+
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, m as viteWebWorkerPostPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWasmFallbackPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-DRe7RuMC.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/api/dev/dev-options.d.ts
|
|
7
7
|
type DevOnHmrUpdates = (result: Error | {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-
|
|
3
|
-
import { o as transformToRollupOutput } from "./shared/bindingify-input-options-
|
|
4
|
-
import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-
|
|
5
|
-
import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-
|
|
6
|
-
import { n as parseSync$1, t as parse$1 } from "./shared/parse-
|
|
7
|
-
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, m as viteWebWorkerPostPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWasmFallbackPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-
|
|
8
|
-
import { a as minify$1, i as transformSync$1, n as resolveTsconfig, o as minifySync$1, r as transform$1, t as TsconfigCache$1 } from "./shared/resolve-tsconfig-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-ER32uZ22.mjs";
|
|
2
|
+
import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-BFB1QNW3.mjs";
|
|
3
|
+
import { o as transformToRollupOutput } from "./shared/bindingify-input-options-DHK3MwUV.mjs";
|
|
4
|
+
import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-ZUNnA-sr.mjs";
|
|
5
|
+
import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-D8cGyrC7.mjs";
|
|
6
|
+
import { n as parseSync$1, t as parse$1 } from "./shared/parse-CCDXnkPL.mjs";
|
|
7
|
+
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, m as viteWebWorkerPostPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWasmFallbackPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-BfnFojy3.mjs";
|
|
8
|
+
import { a as minify$1, i as transformSync$1, n as resolveTsconfig, o as minifySync$1, r as transform$1, t as TsconfigCache$1 } from "./shared/resolve-tsconfig-gxOviCVx.mjs";
|
|
9
9
|
import { pathToFileURL } from "node:url";
|
|
10
10
|
//#region src/api/dev/dev-engine.ts
|
|
11
11
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./shared/logging-C6h4g8dA.mjs";
|
|
2
|
-
import { z as PreRenderedChunk } from "./shared/binding-
|
|
3
|
-
import { $ as GeneralHookFilter, A as SourceDescription, At as CodeSplittingOptions, B as TreeshakingOptions, Bt as PartialNull, C as PartialResolvedId, Ct as AddonFunction, D as ResolvedId, Dt as ChunkingContext, E as ResolveIdResult, Et as ChunkFileNamesFunction, F as VERSION, Ft as MinifyOptions, G as EmittedPrebuiltChunk, Gt as RenderedModule, H as EmittedAsset, Ht as OutputAsset, I as BundleError, It as ModuleFormat, J as PluginContextResolveOptions, K as GetModuleInfo, Kt as RolldownOutput, L as ExistingRawSourceMap, Lt as OutputOptions, Mt as GeneratedCodeOptions, Nt as GeneratedCodePreset, O as RolldownPlugin, Ot as CodeSplittingGroup, P as RUNTIME_MODULE_ID, Pt as GlobalsFunction, Q as PluginContextMeta, R as SourceMapInput, Rt as PreRenderedAsset, S as ParallelPluginHooks, St as build, T as ResolveIdExtraOptions, Tt as AdvancedChunksOptions, U as EmittedChunk, Ut as OutputChunk, V as TransformPluginContext, W as EmittedFile, Wt as RenderedChunk, Xt as SourcemapIgnoreListOption, Y as DefineParallelPluginResult, Yt as ModuleInfo, Z as MinimalPluginContext, _ as ImportKind, _t as RolldownWatcherWatcherEventMap, a as ExternalOption, at as RolldownFsModule, b as ModuleType, bt as RolldownBuild, c as InputOptions, ct as NormalizedInputOptions, d as WatcherFileWatcherOptions, dt as LoggingFunction, et as HookFilter, f as WatcherOptions, ft as WarningHandlerWithDefault, g as HookFilterExtension, gt as RolldownWatcherEvent, h as FunctionPluginHooks, ht as RolldownWatcher, i as RolldownOptions, it as RolldownFileStats, j as TransformResult, jt as CommentsOptions, k as RolldownPluginOption, kt as CodeSplittingNameFunction, l as ModuleTypes, lt as TransformOptions, m as CustomPluginOptions, mt as watch, n as RolldownOptionsFunction, nt as BufferEncoding, o as ExternalOptionFunction, ot as InternalModuleFormat, p as AsyncPluginHooks, pt as RolldownMagicString, q as PluginContext, qt as SourceMap, r as defineConfig, rt as RolldownDirectoryEntry, s as InputOption, st as NormalizedOutputOptions, t as ConfigExport, tt as ModuleTypeFilter, u as OptimizationOptions, ut as ChecksOptions, v as LoadResult, vt as WatchOptions, w as Plugin, wt as AdvancedChunksGroup, x as ObjectHook, xt as BuildOptions, y as ModuleOptions, yt as rolldown, z as OutputBundle } from "./shared/define-config-
|
|
2
|
+
import { z as PreRenderedChunk } from "./shared/binding-CYVfiOV3.mjs";
|
|
3
|
+
import { $ as GeneralHookFilter, A as SourceDescription, At as CodeSplittingOptions, B as TreeshakingOptions, Bt as PartialNull, C as PartialResolvedId, Ct as AddonFunction, D as ResolvedId, Dt as ChunkingContext, E as ResolveIdResult, Et as ChunkFileNamesFunction, F as VERSION, Ft as MinifyOptions, G as EmittedPrebuiltChunk, Gt as RenderedModule, H as EmittedAsset, Ht as OutputAsset, I as BundleError, It as ModuleFormat, J as PluginContextResolveOptions, K as GetModuleInfo, Kt as RolldownOutput, L as ExistingRawSourceMap, Lt as OutputOptions, Mt as GeneratedCodeOptions, Nt as GeneratedCodePreset, O as RolldownPlugin, Ot as CodeSplittingGroup, P as RUNTIME_MODULE_ID, Pt as GlobalsFunction, Q as PluginContextMeta, R as SourceMapInput, Rt as PreRenderedAsset, S as ParallelPluginHooks, St as build, T as ResolveIdExtraOptions, Tt as AdvancedChunksOptions, U as EmittedChunk, Ut as OutputChunk, V as TransformPluginContext, W as EmittedFile, Wt as RenderedChunk, Xt as SourcemapIgnoreListOption, Y as DefineParallelPluginResult, Yt as ModuleInfo, Z as MinimalPluginContext, _ as ImportKind, _t as RolldownWatcherWatcherEventMap, a as ExternalOption, at as RolldownFsModule, b as ModuleType, bt as RolldownBuild, c as InputOptions, ct as NormalizedInputOptions, d as WatcherFileWatcherOptions, dt as LoggingFunction, et as HookFilter, f as WatcherOptions, ft as WarningHandlerWithDefault, g as HookFilterExtension, gt as RolldownWatcherEvent, h as FunctionPluginHooks, ht as RolldownWatcher, i as RolldownOptions, it as RolldownFileStats, j as TransformResult, jt as CommentsOptions, k as RolldownPluginOption, kt as CodeSplittingNameFunction, l as ModuleTypes, lt as TransformOptions, m as CustomPluginOptions, mt as watch, n as RolldownOptionsFunction, nt as BufferEncoding, o as ExternalOptionFunction, ot as InternalModuleFormat, p as AsyncPluginHooks, pt as RolldownMagicString, q as PluginContext, qt as SourceMap, r as defineConfig, rt as RolldownDirectoryEntry, s as InputOption, st as NormalizedOutputOptions, t as ConfigExport, tt as ModuleTypeFilter, u as OptimizationOptions, ut as ChecksOptions, v as LoadResult, vt as WatchOptions, w as Plugin, wt as AdvancedChunksGroup, x as ObjectHook, xt as BuildOptions, y as ModuleOptions, yt as rolldown, z as OutputBundle } from "./shared/define-config-BkRKRADp.mjs";
|
|
4
4
|
export { AddonFunction, AdvancedChunksGroup, AdvancedChunksOptions, AsyncPluginHooks, BufferEncoding, BuildOptions, BundleError, ChecksOptions, ChunkFileNamesFunction, ChunkingContext, CodeSplittingGroup, CodeSplittingNameFunction, CodeSplittingOptions, CommentsOptions, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedChunk, EmittedFile, EmittedPrebuiltChunk, ExistingRawSourceMap, ExternalOption, ExternalOptionFunction, 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, PluginContextResolveOptions, PreRenderedAsset, PreRenderedChunk, RUNTIME_MODULE_ID, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownDirectoryEntry, RolldownError, RolldownError as RollupError, RolldownFileStats, RolldownFsModule, RolldownLog, RolldownLog as RollupLog, RolldownLogWithString, RolldownLogWithString as RollupLogWithString, RolldownMagicString, RolldownOptions, RolldownOptionsFunction, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RolldownWatcherWatcherEventMap, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformOptions, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherFileWatcherOptions, WatcherOptions, build, defineConfig, rolldown, watch };
|
package/dist/rolldown/index.mjs
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
3
|
-
import "./shared/
|
|
4
|
-
import {
|
|
5
|
-
import "./shared/rolldown-build-C7TjtSci.mjs";
|
|
6
|
-
import "./shared/error-BO4SlZV_.mjs";
|
|
7
|
-
import "./shared/parse-WOgXxW4-.mjs";
|
|
8
|
-
import { t as rolldown } from "./shared/rolldown-DUOYLKyH.mjs";
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-ER32uZ22.mjs";
|
|
2
|
+
import { n as onExit, t as watch } from "./shared/watch-C4x8DFD_.mjs";
|
|
3
|
+
import { a as RolldownMagicString, b as RUNTIME_MODULE_ID, x as VERSION } from "./shared/bindingify-input-options-DHK3MwUV.mjs";
|
|
4
|
+
import { t as rolldown } from "./shared/rolldown-DFpH3t7W.mjs";
|
|
9
5
|
import { t as defineConfig } from "./shared/define-config-DJOr6Iwt.mjs";
|
|
10
6
|
import { isMainThread } from "node:worker_threads";
|
|
11
7
|
//#region src/setup.ts
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import "./shared/
|
|
3
|
-
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-nddSVL89.mjs";
|
|
4
|
-
import "./shared/error-BO4SlZV_.mjs";
|
|
5
|
-
import "./shared/parse-WOgXxW4-.mjs";
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-ER32uZ22.mjs";
|
|
2
|
+
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-DHK3MwUV.mjs";
|
|
6
3
|
import { parentPort, workerData } from "node:worker_threads";
|
|
7
4
|
//#region src/parallel-plugin-worker.ts
|
|
8
5
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { w as Plugin, zt as MaybePromise } from "./shared/define-config-
|
|
1
|
+
import { w as Plugin, zt as MaybePromise } from "./shared/define-config-BkRKRADp.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
4
4
|
type ParallelPluginImplementation = Plugin;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import "./shared/binding-BV_UWDF3.mjs";
|
|
2
1
|
import { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from "./shared/logs-D80CXhvg.mjs";
|
|
3
|
-
import { n as parseSync, t as parse } from "./shared/parse-
|
|
2
|
+
import { n as parseSync, t as parse } from "./shared/parse-CCDXnkPL.mjs";
|
|
4
3
|
//#region src/parse-ast-index.ts
|
|
5
4
|
function wrap(result, filename, sourceText) {
|
|
6
5
|
if (result.errors.length > 0) return normalizeParseError(filename, sourceText, result.errors);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { m as BindingReplacePluginConfig } from "./shared/binding-
|
|
2
|
-
import { N as BuiltinPlugin } from "./shared/define-config-
|
|
3
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
1
|
+
import { m as BindingReplacePluginConfig } from "./shared/binding-CYVfiOV3.mjs";
|
|
2
|
+
import { N as BuiltinPlugin } from "./shared/define-config-BkRKRADp.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-DRe7RuMC.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/builtin-plugin/replace-plugin.d.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import "./shared/
|
|
2
|
-
import {
|
|
3
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-DqC7XSXy.mjs";
|
|
1
|
+
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-BFB1QNW3.mjs";
|
|
2
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-BfnFojy3.mjs";
|
|
4
3
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
5
4
|
/**
|
|
6
5
|
* Replaces targeted strings in files while bundling.
|
|
@@ -1197,16 +1197,25 @@ declare class BindingDecodedMap {
|
|
|
1197
1197
|
* Each line is an array of segments, where each segment is [generatedColumn, sourceIndex, originalLine, originalColumn, nameIndex?].
|
|
1198
1198
|
*/
|
|
1199
1199
|
get mappings(): Array<Array<Array<number>>>;
|
|
1200
|
+
/** The list of source indices that should be excluded from debugging. */
|
|
1201
|
+
get x_google_ignoreList(): Array<number> | null;
|
|
1200
1202
|
}
|
|
1201
1203
|
declare class BindingMagicString {
|
|
1202
1204
|
constructor(source: string, options?: BindingMagicStringOptions | undefined | null);
|
|
1203
1205
|
get original(): string;
|
|
1204
1206
|
get filename(): string | null;
|
|
1205
1207
|
get indentExclusionRanges(): Array<Array<number>> | Array<number> | null;
|
|
1208
|
+
get ignoreList(): boolean;
|
|
1206
1209
|
get offset(): number;
|
|
1207
1210
|
set offset(offset: number);
|
|
1208
1211
|
replace(from: string, to: string): this;
|
|
1209
1212
|
replaceAll(from: string, to: string): this;
|
|
1213
|
+
/**
|
|
1214
|
+
* Returns the UTF-16 offset past the last match, or -1 if no match was found.
|
|
1215
|
+
* The JS wrapper uses this to update `lastIndex` on the caller's RegExp.
|
|
1216
|
+
* Global/sticky behavior is derived from the regex's own flags.
|
|
1217
|
+
*/
|
|
1218
|
+
replaceRegex(from: RegExp, to: string): number;
|
|
1210
1219
|
prepend(content: string): this;
|
|
1211
1220
|
append(content: string): this;
|
|
1212
1221
|
prependLeft(index: number, content: string): this;
|
|
@@ -1247,6 +1256,8 @@ declare class BindingMagicString {
|
|
|
1247
1256
|
lastChar(): string;
|
|
1248
1257
|
/** Returns the content after the last newline in the generated string. */
|
|
1249
1258
|
lastLine(): string;
|
|
1259
|
+
/** Returns the guessed indentation string, or `\t` if none is found. */
|
|
1260
|
+
getIndentString(): string;
|
|
1250
1261
|
/** Returns a clone with content outside the specified range removed. */
|
|
1251
1262
|
snip(start: number, end: number): BindingMagicString;
|
|
1252
1263
|
/**
|
|
@@ -1304,6 +1315,7 @@ declare class BindingNormalizedOptions {
|
|
|
1304
1315
|
get globals(): Record<string, string> | undefined;
|
|
1305
1316
|
get hashCharacters(): 'base64' | 'base36' | 'hex';
|
|
1306
1317
|
get sourcemapDebugIds(): boolean;
|
|
1318
|
+
get sourcemapExcludeSources(): boolean;
|
|
1307
1319
|
get polyfillRequire(): boolean;
|
|
1308
1320
|
get minify(): false | 'dce-only' | MinifyOptions;
|
|
1309
1321
|
get legalComments(): 'none' | 'inline';
|
|
@@ -1345,6 +1357,8 @@ declare class BindingSourceMap {
|
|
|
1345
1357
|
get names(): Array<string>;
|
|
1346
1358
|
/** The VLQ-encoded mappings string. */
|
|
1347
1359
|
get mappings(): string;
|
|
1360
|
+
/** The list of source indices that should be excluded from debugging. */
|
|
1361
|
+
get x_google_ignoreList(): Array<number> | null;
|
|
1348
1362
|
/** Returns the source map as a JSON string. */
|
|
1349
1363
|
toString(): string;
|
|
1350
1364
|
/** Returns the source map as a base64-encoded data URL. */
|
|
@@ -1591,6 +1605,7 @@ interface BindingMagicStringOptions {
|
|
|
1591
1605
|
filename?: string;
|
|
1592
1606
|
offset?: number;
|
|
1593
1607
|
indentExclusionRanges?: Array<Array<number>> | Array<number>;
|
|
1608
|
+
ignoreList?: boolean;
|
|
1594
1609
|
}
|
|
1595
1610
|
interface BindingModulePreloadOptions {
|
|
1596
1611
|
polyfill: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-ER32uZ22.mjs";
|
|
2
2
|
import { a as logInvalidLogPosition, c as logPluginError, n as error, r as logCycleLoading, t as augmentCodeLocation } from "./logs-D80CXhvg.mjs";
|
|
3
|
-
import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-
|
|
3
|
+
import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-BFB1QNW3.mjs";
|
|
4
4
|
import { a as unreachable, o as unsupported, r as noop, t as arraify } from "./misc-DJYbNKZX.mjs";
|
|
5
|
-
import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-
|
|
5
|
+
import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-D8cGyrC7.mjs";
|
|
6
6
|
import { parseAst } from "../parse-ast-index.mjs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import * as filter from "@voidzero-dev/vite-plus-core/rolldown/pluginutils";
|
|
@@ -217,7 +217,7 @@ function bindingAssetSource(source) {
|
|
|
217
217
|
return { inner: source };
|
|
218
218
|
}
|
|
219
219
|
//#endregion
|
|
220
|
-
//#region \0@oxc-project+runtime@0.
|
|
220
|
+
//#region \0@oxc-project+runtime@0.121.0/helpers/decorate.js
|
|
221
221
|
function __decorate(decorators, target, key, desc) {
|
|
222
222
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
223
223
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -567,6 +567,24 @@ Object.defineProperty(import_binding.BindingMagicString.prototype, "isRolldownMa
|
|
|
567
567
|
writable: false,
|
|
568
568
|
configurable: false
|
|
569
569
|
});
|
|
570
|
+
const nativeReplace = import_binding.BindingMagicString.prototype.replace;
|
|
571
|
+
const nativeReplaceAll = import_binding.BindingMagicString.prototype.replaceAll;
|
|
572
|
+
import_binding.BindingMagicString.prototype.replace = function(searchValue, replacement) {
|
|
573
|
+
if (typeof searchValue === "string") return nativeReplace.call(this, searchValue, replacement);
|
|
574
|
+
if (searchValue.global) searchValue.lastIndex = 0;
|
|
575
|
+
const lastMatchEnd = this.replaceRegex(searchValue, replacement);
|
|
576
|
+
if (searchValue.global) searchValue.lastIndex = 0;
|
|
577
|
+
else if (searchValue.sticky) searchValue.lastIndex = lastMatchEnd === -1 ? 0 : lastMatchEnd;
|
|
578
|
+
return this;
|
|
579
|
+
};
|
|
580
|
+
import_binding.BindingMagicString.prototype.replaceAll = function(searchValue, replacement) {
|
|
581
|
+
if (typeof searchValue === "string") return nativeReplaceAll.call(this, searchValue, replacement);
|
|
582
|
+
if (!searchValue.global) throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");
|
|
583
|
+
searchValue.lastIndex = 0;
|
|
584
|
+
this.replaceRegex(searchValue, replacement);
|
|
585
|
+
searchValue.lastIndex = 0;
|
|
586
|
+
return this;
|
|
587
|
+
};
|
|
570
588
|
/**
|
|
571
589
|
* A native MagicString implementation powered by Rust.
|
|
572
590
|
*
|
|
@@ -1710,6 +1728,9 @@ var NormalizedOutputOptionsImpl = class extends PlainObjectLike {
|
|
|
1710
1728
|
get sourcemapDebugIds() {
|
|
1711
1729
|
return this.inner.sourcemapDebugIds;
|
|
1712
1730
|
}
|
|
1731
|
+
get sourcemapExcludeSources() {
|
|
1732
|
+
return this.inner.sourcemapExcludeSources;
|
|
1733
|
+
}
|
|
1713
1734
|
get sourcemapIgnoreList() {
|
|
1714
1735
|
return this.outputOptions.sourcemapIgnoreList;
|
|
1715
1736
|
}
|
|
@@ -1785,6 +1806,7 @@ __decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "globals", null);
|
|
|
1785
1806
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "paths", null);
|
|
1786
1807
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "hashCharacters", null);
|
|
1787
1808
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "sourcemapDebugIds", null);
|
|
1809
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "sourcemapExcludeSources", null);
|
|
1788
1810
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "sourcemapIgnoreList", null);
|
|
1789
1811
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "sourcemapPathTransform", null);
|
|
1790
1812
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "minify", null);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-
|
|
1
|
+
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-BFB1QNW3.mjs";
|
|
2
2
|
//#region src/builtin-plugin/constructors.ts
|
|
3
3
|
function viteModulePreloadPolyfillPlugin(config) {
|
|
4
4
|
return new BuiltinPlugin("builtin:vite-module-preload-polyfill", config);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as BindingViteResolvePluginConfig, E as BindingViteReporterPluginConfig, S as BindingViteJsonPluginConfig, T as BindingViteReactRefreshWrapperPluginConfig, b as BindingViteDynamicImportVarsPluginConfig, l as BindingIsolatedDeclarationPluginConfig, s as BindingEsmExternalRequirePluginConfig, w as BindingViteModulePreloadPolyfillPluginConfig, x as BindingViteImportGlobPluginConfig, y as BindingViteBuildImportAnalysisPluginConfig } from "./binding-
|
|
2
|
-
import { N as BuiltinPlugin, Vt as StringOrRegExp } from "./define-config-
|
|
1
|
+
import { D as BindingViteResolvePluginConfig, E as BindingViteReporterPluginConfig, S as BindingViteJsonPluginConfig, T as BindingViteReactRefreshWrapperPluginConfig, b as BindingViteDynamicImportVarsPluginConfig, l as BindingIsolatedDeclarationPluginConfig, s as BindingEsmExternalRequirePluginConfig, w as BindingViteModulePreloadPolyfillPluginConfig, x as BindingViteImportGlobPluginConfig, y as BindingViteBuildImportAnalysisPluginConfig } from "./binding-CYVfiOV3.mjs";
|
|
2
|
+
import { N as BuiltinPlugin, Vt as StringOrRegExp } from "./define-config-BkRKRADp.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/builtin-plugin/constructors.d.ts
|
|
5
5
|
declare function viteModulePreloadPolyfillPlugin(config?: BindingViteModulePreloadPolyfillPluginConfig): BuiltinPlugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./logging-C6h4g8dA.mjs";
|
|
2
|
-
import { A as ExternalMemoryStatus, N as JsxOptions, P as MinifyOptions$1, R as ParserOptions, U as TransformOptions$1, c as BindingHookResolveIdExtraArgs, d as BindingPluginContextResolveOptions, h as BindingTransformHookExtraArgs, k as BindingWatcherBundler, p as BindingRenderedChunk, t as BindingBuiltinPluginName, u as BindingMagicString, z as PreRenderedChunk } from "./binding-
|
|
2
|
+
import { A as ExternalMemoryStatus, N as JsxOptions, P as MinifyOptions$1, R as ParserOptions, U as TransformOptions$1, c as BindingHookResolveIdExtraArgs, d as BindingPluginContextResolveOptions, h as BindingTransformHookExtraArgs, k as BindingWatcherBundler, p as BindingRenderedChunk, t as BindingBuiltinPluginName, u as BindingMagicString, z as PreRenderedChunk } from "./binding-CYVfiOV3.mjs";
|
|
3
3
|
import { TopLevelFilterExpression } from "@voidzero-dev/vite-plus-core/rolldown/pluginutils";
|
|
4
4
|
import { Program } from "@oxc-project/types";
|
|
5
5
|
|
|
@@ -465,6 +465,16 @@ interface OutputOptions {
|
|
|
465
465
|
*/
|
|
466
466
|
sourcemapPathTransform?: SourcemapPathTransformOption;
|
|
467
467
|
/**
|
|
468
|
+
* Whether to exclude the original source code from sourcemaps.
|
|
469
|
+
*
|
|
470
|
+
* When `true`, the `sourcesContent` field is omitted from the generated sourcemap,
|
|
471
|
+
* reducing the sourcemap file size. The sourcemap will still contain source file paths
|
|
472
|
+
* and mappings, so debugging works if the original files are available.
|
|
473
|
+
*
|
|
474
|
+
* @default false
|
|
475
|
+
*/
|
|
476
|
+
sourcemapExcludeSources?: boolean;
|
|
477
|
+
/**
|
|
468
478
|
* A string to prepend to the bundle before {@linkcode Plugin.renderChunk | renderChunk} hook.
|
|
469
479
|
*
|
|
470
480
|
* See {@linkcode intro | output.intro}, {@linkcode postBanner | output.postBanner} as well.
|
|
@@ -1401,6 +1411,10 @@ declare function watch(input: WatchOptions | WatchOptions[]): RolldownWatcher;
|
|
|
1401
1411
|
//#region src/binding-magic-string.d.ts
|
|
1402
1412
|
interface RolldownMagicString extends BindingMagicString {
|
|
1403
1413
|
readonly isRolldownMagicString: true;
|
|
1414
|
+
/** Accepts a string or RegExp pattern. RegExp supports `$&`, `$$`, and `$N` substitutions. */
|
|
1415
|
+
replace(from: string | RegExp, to: string): this;
|
|
1416
|
+
/** Accepts a string or RegExp pattern. RegExp must have the global (`g`) flag. */
|
|
1417
|
+
replaceAll(from: string | RegExp, to: string): this;
|
|
1404
1418
|
}
|
|
1405
1419
|
type RolldownMagicStringConstructor = Omit<typeof BindingMagicString, "prototype"> & {
|
|
1406
1420
|
new (...args: ConstructorParameters<typeof BindingMagicString>): RolldownMagicString;
|
|
@@ -1754,6 +1768,8 @@ interface NormalizedOutputOptions {
|
|
|
1754
1768
|
hashCharacters: "base64" | "base36" | "hex";
|
|
1755
1769
|
/** @see {@linkcode OutputOptions.sourcemapDebugIds | sourcemapDebugIds} */
|
|
1756
1770
|
sourcemapDebugIds: boolean;
|
|
1771
|
+
/** @see {@linkcode OutputOptions.sourcemapExcludeSources | sourcemapExcludeSources} */
|
|
1772
|
+
sourcemapExcludeSources: boolean;
|
|
1757
1773
|
/** @see {@linkcode OutputOptions.sourcemapIgnoreList | sourcemapIgnoreList} */
|
|
1758
1774
|
sourcemapIgnoreList: boolean | SourcemapIgnoreListOption | StringOrRegExp | undefined;
|
|
1759
1775
|
/** @see {@linkcode OutputOptions.sourcemapPathTransform | sourcemapPathTransform} */
|
|
@@ -1938,8 +1954,6 @@ interface PluginContextMeta {
|
|
|
1938
1954
|
}
|
|
1939
1955
|
/** @category Plugin APIs */
|
|
1940
1956
|
interface MinimalPluginContext {
|
|
1941
|
-
/** @hidden */
|
|
1942
|
-
readonly pluginName: string;
|
|
1943
1957
|
/**
|
|
1944
1958
|
* Similar to {@linkcode warn | this.warn}, except that it will also abort
|
|
1945
1959
|
* the bundling process with an error.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-ER32uZ22.mjs";
|
|
2
2
|
import { c as logPluginError, n as error } from "./logs-D80CXhvg.mjs";
|
|
3
3
|
//#region src/builtin-plugin/utils.ts
|
|
4
4
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
@@ -13,17 +13,25 @@ var BuiltinPlugin = class {
|
|
|
13
13
|
function makeBuiltinPluginCallable(plugin) {
|
|
14
14
|
let callablePlugin = new import_binding.BindingCallableBuiltinPlugin(bindingifyBuiltInPlugin(plugin));
|
|
15
15
|
const wrappedPlugin = plugin;
|
|
16
|
-
for (const key in callablePlugin)
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
16
|
+
for (const key in callablePlugin) {
|
|
17
|
+
const wrappedHook = async function(...args) {
|
|
18
|
+
try {
|
|
19
|
+
return await callablePlugin[key](...args);
|
|
20
|
+
} catch (e) {
|
|
21
|
+
if (e instanceof Error && !e.stack?.includes("at ")) Error.captureStackTrace(e, wrappedPlugin[key]);
|
|
22
|
+
return error(logPluginError(e, plugin.name, {
|
|
23
|
+
hook: key,
|
|
24
|
+
id: key === "transform" ? args[2] : void 0
|
|
25
|
+
}));
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
const order = callablePlugin.getOrder(key);
|
|
29
|
+
if (order == void 0) wrappedPlugin[key] = wrappedHook;
|
|
30
|
+
else wrappedPlugin[key] = {
|
|
31
|
+
handler: wrappedHook,
|
|
32
|
+
order
|
|
33
|
+
};
|
|
34
|
+
}
|
|
27
35
|
return wrappedPlugin;
|
|
28
36
|
}
|
|
29
37
|
function bindingifyBuiltInPlugin(plugin) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
2
|
-
//#region ../../../node_modules/.pnpm/oxc-parser@0.
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-ER32uZ22.mjs";
|
|
2
|
+
//#region ../../../node_modules/.pnpm/oxc-parser@0.121.0/node_modules/oxc-parser/src-js/wrap.js
|
|
3
3
|
function wrap(result) {
|
|
4
4
|
let program, module, comments, errors;
|
|
5
5
|
return {
|
package/dist/rolldown/shared/{resolve-tsconfig-C3OzszY-.mjs → resolve-tsconfig-gxOviCVx.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
2
|
-
import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-ER32uZ22.mjs";
|
|
2
|
+
import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-D8cGyrC7.mjs";
|
|
3
3
|
//#region src/utils/minify.ts
|
|
4
4
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-
|
|
1
|
+
import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-ZUNnA-sr.mjs";
|
|
2
2
|
//#region src/api/rolldown/index.ts
|
|
3
3
|
/**
|
|
4
4
|
* The API compatible with Rollup's `rollup` function.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-ER32uZ22.mjs";
|
|
2
2
|
import { i as logInputHookInOutputPlugin, n as error } from "./logs-D80CXhvg.mjs";
|
|
3
|
-
import { n as BuiltinPlugin } from "./normalize-string-or-regex-
|
|
4
|
-
import { c as __decorate, d as PlainObjectLike, f as MinimalPluginContextImpl, h as LOG_LEVEL_DEBUG, i as transformModuleInfo, l as transformAssetSource, m as normalizeLog, o as transformToRollupOutput, p as normalizeHook, s as transformRenderedChunk, t as bindingifyInputOptions, u as lazyProp, v as LOG_LEVEL_WARN, x as VERSION, y as logLevelPriority } from "./bindingify-input-options-
|
|
3
|
+
import { n as BuiltinPlugin } from "./normalize-string-or-regex-BFB1QNW3.mjs";
|
|
4
|
+
import { c as __decorate, d as PlainObjectLike, f as MinimalPluginContextImpl, h as LOG_LEVEL_DEBUG, i as transformModuleInfo, l as transformAssetSource, m as normalizeLog, o as transformToRollupOutput, p as normalizeHook, s as transformRenderedChunk, t as bindingifyInputOptions, u as lazyProp, v as LOG_LEVEL_WARN, x as VERSION, y as logLevelPriority } from "./bindingify-input-options-DHK3MwUV.mjs";
|
|
5
5
|
import { i as unimplemented } from "./misc-DJYbNKZX.mjs";
|
|
6
|
-
import { i as unwrapBindingResult } from "./error-
|
|
6
|
+
import { i as unwrapBindingResult } from "./error-D8cGyrC7.mjs";
|
|
7
7
|
import { Worker } from "node:worker_threads";
|
|
8
8
|
import path, { sep } from "node:path";
|
|
9
9
|
import { formatWithOptions, styleText } from "node:util";
|
|
@@ -211,7 +211,7 @@ function getSortedPlugins(hookName, plugins) {
|
|
|
211
211
|
];
|
|
212
212
|
}
|
|
213
213
|
//#endregion
|
|
214
|
-
//#region ../../../node_modules/.pnpm/valibot@1.
|
|
214
|
+
//#region ../../../node_modules/.pnpm/valibot@1.3.1_typescript@5.9.3/node_modules/valibot/dist/index.mjs
|
|
215
215
|
let store$4;
|
|
216
216
|
/**
|
|
217
217
|
* Returns the global configuration.
|
|
@@ -1818,6 +1818,7 @@ const OutputOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1818
1818
|
])), /* @__PURE__ */ description(`Generate sourcemap (\`-s inline\` for inline, or \`-s\` for \`.map\` file)`)),
|
|
1819
1819
|
sourcemapBaseUrl: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Base URL used to prefix sourcemap paths")),
|
|
1820
1820
|
sourcemapDebugIds: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Inject sourcemap debug IDs")),
|
|
1821
|
+
sourcemapExcludeSources: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Exclude source content from sourcemaps")),
|
|
1821
1822
|
sourcemapIgnoreList: /* @__PURE__ */ optional(/* @__PURE__ */ union([
|
|
1822
1823
|
/* @__PURE__ */ boolean(),
|
|
1823
1824
|
/* @__PURE__ */ custom(() => true),
|
|
@@ -2973,7 +2974,7 @@ function createTestingLogger() {
|
|
|
2973
2974
|
//#endregion
|
|
2974
2975
|
//#region src/utils/bindingify-output-options.ts
|
|
2975
2976
|
function bindingifyOutputOptions(outputOptions) {
|
|
2976
|
-
const { dir, format, exports, hashCharacters, sourcemap, sourcemapBaseUrl, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, banner, footer, postBanner, postFooter, intro, outro, esModule, globals, paths, generatedCode, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, comments, preserveModulesRoot, manualChunks, topLevelVar, cleanDir, strictExecutionOrder } = outputOptions;
|
|
2977
|
+
const { dir, format, exports, hashCharacters, sourcemap, sourcemapBaseUrl, sourcemapDebugIds, sourcemapExcludeSources, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, banner, footer, postBanner, postFooter, intro, outro, esModule, globals, paths, generatedCode, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, comments, preserveModulesRoot, manualChunks, topLevelVar, cleanDir, strictExecutionOrder } = outputOptions;
|
|
2977
2978
|
if (legalComments != null) logger.warn("`legalComments` option is deprecated, please use `comments.legal` instead.");
|
|
2978
2979
|
const { inlineDynamicImports, advancedChunks } = bindingifyCodeSplitting(outputOptions.codeSplitting, outputOptions.inlineDynamicImports, outputOptions.advancedChunks, manualChunks);
|
|
2979
2980
|
return {
|
|
@@ -2985,6 +2986,7 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
2985
2986
|
sourcemap: bindingifySourcemap(sourcemap),
|
|
2986
2987
|
sourcemapBaseUrl,
|
|
2987
2988
|
sourcemapDebugIds,
|
|
2989
|
+
sourcemapExcludeSources,
|
|
2988
2990
|
sourcemapIgnoreList: sourcemapIgnoreList ?? /node_modules/,
|
|
2989
2991
|
sourcemapPathTransform,
|
|
2990
2992
|
banner: bindingifyAddon(banner),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as RolldownLog } from "./logging-C6h4g8dA.mjs";
|
|
2
|
-
import { F as MinifyResult$1, H as SourceMap, L as ParseResult$1, P as MinifyOptions$1, R as ParserOptions$1, W as TsconfigCache$1, a as BindingEnhancedTransformOptions, o as BindingEnhancedTransformResult, v as BindingTsconfigResult } from "./binding-
|
|
2
|
+
import { F as MinifyResult$1, H as SourceMap, L as ParseResult$1, P as MinifyOptions$1, R as ParserOptions$1, W as TsconfigCache$1, a as BindingEnhancedTransformOptions, o as BindingEnhancedTransformResult, v as BindingTsconfigResult } from "./binding-CYVfiOV3.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/resolve-tsconfig.d.ts
|
|
5
5
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-ER32uZ22.mjs";
|
|
2
2
|
import { o as logMultipleWatcherOption } from "./logs-D80CXhvg.mjs";
|
|
3
|
-
import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-
|
|
3
|
+
import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-DHK3MwUV.mjs";
|
|
4
4
|
import { t as arraify } from "./misc-DJYbNKZX.mjs";
|
|
5
|
-
import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-
|
|
6
|
-
import { t as aggregateBindingErrorsIntoJsError } from "./error-
|
|
5
|
+
import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-ZUNnA-sr.mjs";
|
|
6
|
+
import { t as aggregateBindingErrorsIntoJsError } from "./error-D8cGyrC7.mjs";
|
|
7
7
|
//#region ../../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
|
|
8
8
|
/**
|
|
9
9
|
* This is not the set of all possible signals.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as BindingTsconfigRawOptions, g as BindingTsconfigCompilerOptions } from "./shared/binding-
|
|
2
|
-
import { a as MinifyOptions, c as minifySync, d as parse, f as parseSync, i as transformSync, l as ParseResult, n as TransformResult, o as MinifyResult, p as TsconfigCache, r as transform, s as minify, t as TransformOptions, u as ParserOptions } from "./shared/transform-
|
|
1
|
+
import { _ as BindingTsconfigRawOptions, g as BindingTsconfigCompilerOptions } from "./shared/binding-CYVfiOV3.mjs";
|
|
2
|
+
import { a as MinifyOptions, c as minifySync, d as parse, f as parseSync, i as transformSync, l as ParseResult, n as TransformResult, o as MinifyResult, p as TsconfigCache, r as transform, s as minify, t as TransformOptions, u as ParserOptions } from "./shared/transform-C_gBfjMR.mjs";
|
|
3
3
|
import * as ESTree from "@oxc-project/types";
|
|
4
4
|
import { Program } from "@oxc-project/types";
|
|
5
5
|
|
|
6
|
-
//#region ../../../node_modules/.pnpm/oxc-parser@0.
|
|
6
|
+
//#region ../../../node_modules/.pnpm/oxc-parser@0.121.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
|
|
7
7
|
interface VisitorObject$1 {
|
|
8
8
|
DebuggerStatement?: (node: ESTree.DebuggerStatement) => void;
|
|
9
9
|
"DebuggerStatement:exit"?: (node: ESTree.DebuggerStatement) => void;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import "./shared/
|
|
2
|
-
import "./shared/
|
|
3
|
-
|
|
4
|
-
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-C3OzszY-.mjs";
|
|
5
|
-
//#region ../../../node_modules/.pnpm/oxc-parser@0.120.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
|
|
1
|
+
import { n as parseSync, t as parse } from "./shared/parse-CCDXnkPL.mjs";
|
|
2
|
+
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-gxOviCVx.mjs";
|
|
3
|
+
//#region ../../../node_modules/.pnpm/oxc-parser@0.121.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
|
|
6
4
|
function walkNode(node, visitors) {
|
|
7
5
|
if (node == null) return;
|
|
8
6
|
if (Array.isArray(node)) {
|
|
@@ -2012,7 +2010,7 @@ function walkTSUnionType(node, visitors) {
|
|
|
2012
2010
|
exit !== null && exit(node);
|
|
2013
2011
|
}
|
|
2014
2012
|
//#endregion
|
|
2015
|
-
//#region ../../../node_modules/.pnpm/oxc-parser@0.
|
|
2013
|
+
//#region ../../../node_modules/.pnpm/oxc-parser@0.121.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
|
|
2016
2014
|
/** Mapping from node type name to node type ID */
|
|
2017
2015
|
const NODE_TYPE_IDS_MAP = new Map([
|
|
2018
2016
|
["DebuggerStatement", 0],
|
|
@@ -2182,7 +2180,7 @@ const NODE_TYPE_IDS_MAP = new Map([
|
|
|
2182
2180
|
["TSUnionType", 164]
|
|
2183
2181
|
]);
|
|
2184
2182
|
//#endregion
|
|
2185
|
-
//#region ../../../node_modules/.pnpm/oxc-parser@0.
|
|
2183
|
+
//#region ../../../node_modules/.pnpm/oxc-parser@0.121.0/node_modules/oxc-parser/src-js/visit/visitor.js
|
|
2186
2184
|
let compiledVisitor;
|
|
2187
2185
|
function createCompiledVisitor() {
|
|
2188
2186
|
compiledVisitor = [];
|