@voidzero-dev/vite-plus-core 0.1.13-alpha.4 → 0.1.13-alpha.5
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 +211 -73
- package/dist/rolldown/config.d.mts +1 -1
- package/dist/rolldown/config.mjs +8 -8
- package/dist/rolldown/experimental-index.d.mts +7 -7
- package/dist/rolldown/experimental-index.mjs +12 -13
- package/dist/rolldown/filter-index.d.mts +1 -1
- package/dist/rolldown/index.d.mts +3 -3
- package/dist/rolldown/index.mjs +9 -9
- package/dist/rolldown/parallel-plugin-worker.mjs +5 -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 +2 -2
- package/dist/rolldown/plugins-index.d.mts +3 -3
- package/dist/rolldown/plugins-index.mjs +3 -3
- package/dist/rolldown/shared/{binding-BohGL_65.d.mts → binding-Dsq9Azhm.d.mts} +14 -17
- package/dist/rolldown/shared/{bindingify-input-options-D6u7COm1.mjs → bindingify-input-options-nddSVL89.mjs} +16 -11
- package/dist/rolldown/shared/{constructors-DNuo4d0H.d.mts → constructors-DfpIbfMG.d.mts} +7 -3
- package/dist/rolldown/shared/{constructors-Ctal_Rbv.mjs → constructors-DqC7XSXy.mjs} +8 -2
- package/dist/rolldown/shared/{define-config-cG45vHwf.d.mts → define-config-CV9D_Qea.d.mts} +19 -12
- package/dist/rolldown/shared/{error-CP8smW_P.mjs → error-BO4SlZV_.mjs} +1 -1
- package/dist/rolldown/shared/{load-config-CjCoDD5h.mjs → load-config-CDqvxxnl.mjs} +1 -1
- package/dist/rolldown/shared/{normalize-string-or-regex-C5RWbu3O.mjs → normalize-string-or-regex-D7wlw16t.mjs} +1 -1
- package/dist/rolldown/shared/{parse-BhVn_3w_.mjs → parse-WOgXxW4-.mjs} +1 -1
- package/dist/rolldown/shared/{transform-BfdLLNnY.mjs → resolve-tsconfig-C3OzszY-.mjs} +28 -5
- package/dist/rolldown/shared/{rolldown-B7hI_r7G.mjs → rolldown-DUOYLKyH.mjs} +1 -1
- package/dist/rolldown/shared/{rolldown-build-CYoDea9V.mjs → rolldown-build-C7TjtSci.mjs} +4 -4
- package/dist/rolldown/shared/{transform-BoJxrM-e.d.mts → transform-B5D1aA1B.d.mts} +19 -2
- package/dist/rolldown/shared/{watch-CAj7leYN.mjs → watch-BV1BB_LU.mjs} +4 -4
- package/dist/rolldown/utils-index.d.mts +2 -2
- package/dist/rolldown/utils-index.mjs +4 -5
- package/dist/tsdown/{build-CoLhkNXE-DtR1EaBG.js → build-CoLhkNXE-DccPqXpK.js} +7 -7
- package/dist/tsdown/{build-dhDyu66J-DxSssGzc.js → build-dhDyu66J-C3xzaksU.js} +2 -2
- package/dist/tsdown/{debug-C4FmgzkJ-Co4tnxmE.js → debug-C4FmgzkJ-BxvFHEjv.js} +2 -2
- package/dist/tsdown/{detect-DN3DXXYt-BiiMP_XL.js → detect-DN3DXXYt-CgZGWZG7.js} +1 -1
- package/dist/tsdown/index-types.d.ts +6 -6
- package/dist/tsdown/index.js +4 -4
- package/dist/tsdown/{main-JovZVvCY.js → main-CU_sednE.js} +2 -2
- package/dist/tsdown/run.js +3 -3
- package/dist/vite/client/client.mjs +5 -5
- package/dist/vite/node/chunks/build2.js +5 -14
- package/dist/vite/node/chunks/dist.js +6 -11
- package/dist/vite/node/chunks/dist2.js +1 -4
- package/dist/vite/node/chunks/logger.js +1 -1
- package/dist/vite/node/chunks/node.js +98 -83
- package/dist/vite/node/index.d.ts +3 -3
- package/dist/vite/node/module-runner.js +2 -2
- package/package.json +7 -7
- /package/dist/rolldown/shared/{binding-C5G6_6ql.mjs → binding-BV_UWDF3.mjs} +0 -0
|
@@ -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 {
|
|
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
|
|
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,
|
|
2
|
+
import { z as PreRenderedChunk } from "./shared/binding-Dsq9Azhm.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-CV9D_Qea.mjs";
|
|
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,11 @@
|
|
|
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/normalize-string-or-regex-
|
|
4
|
-
import { a as
|
|
5
|
-
import "./shared/rolldown-build-
|
|
6
|
-
import "./shared/error-
|
|
7
|
-
import "./shared/parse-
|
|
8
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-BV_UWDF3.mjs";
|
|
2
|
+
import { n as onExit, t as watch } from "./shared/watch-BV1BB_LU.mjs";
|
|
3
|
+
import "./shared/normalize-string-or-regex-D7wlw16t.mjs";
|
|
4
|
+
import { a as RolldownMagicString, b as RUNTIME_MODULE_ID, x as VERSION } from "./shared/bindingify-input-options-nddSVL89.mjs";
|
|
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";
|
|
9
9
|
import { t as defineConfig } from "./shared/define-config-DJOr6Iwt.mjs";
|
|
10
10
|
import { isMainThread } from "node:worker_threads";
|
|
11
11
|
//#region src/setup.ts
|
|
@@ -51,4 +51,4 @@ async function build(options) {
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
//#endregion
|
|
54
|
-
export { RUNTIME_MODULE_ID,
|
|
54
|
+
export { RUNTIME_MODULE_ID, RolldownMagicString, VERSION, build, defineConfig, rolldown, watch };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import "./shared/normalize-string-or-regex-
|
|
3
|
-
import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-
|
|
4
|
-
import "./shared/error-
|
|
5
|
-
import "./shared/parse-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-BV_UWDF3.mjs";
|
|
2
|
+
import "./shared/normalize-string-or-regex-D7wlw16t.mjs";
|
|
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";
|
|
6
6
|
import { parentPort, workerData } from "node:worker_threads";
|
|
7
7
|
//#region src/parallel-plugin-worker.ts
|
|
8
8
|
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-CV9D_Qea.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
4
4
|
type ParallelPluginImplementation = Plugin;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
1
|
+
import "./shared/binding-BV_UWDF3.mjs";
|
|
2
2
|
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-
|
|
3
|
+
import { n as parseSync, t as parse } from "./shared/parse-WOgXxW4-.mjs";
|
|
4
4
|
//#region src/parse-ast-index.ts
|
|
5
5
|
function wrap(result, filename, sourceText) {
|
|
6
6
|
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-Dsq9Azhm.mjs";
|
|
2
|
+
import { N as BuiltinPlugin } from "./shared/define-config-CV9D_Qea.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-DfpIbfMG.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/builtin-plugin/replace-plugin.d.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-
|
|
3
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
1
|
+
import "./shared/binding-BV_UWDF3.mjs";
|
|
2
|
+
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-D7wlw16t.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-DqC7XSXy.mjs";
|
|
4
4
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
5
5
|
/**
|
|
6
6
|
* Replaces targeted strings in files while bundling.
|
|
@@ -1202,6 +1202,7 @@ declare class BindingMagicString {
|
|
|
1202
1202
|
constructor(source: string, options?: BindingMagicStringOptions | undefined | null);
|
|
1203
1203
|
get original(): string;
|
|
1204
1204
|
get filename(): string | null;
|
|
1205
|
+
get indentExclusionRanges(): Array<Array<number>> | Array<number> | null;
|
|
1205
1206
|
get offset(): number;
|
|
1206
1207
|
set offset(offset: number);
|
|
1207
1208
|
replace(from: string, to: string): this;
|
|
@@ -1226,7 +1227,7 @@ declare class BindingMagicString {
|
|
|
1226
1227
|
* Returns `this` for method chaining.
|
|
1227
1228
|
*/
|
|
1228
1229
|
move(start: number, end: number, index: number): this;
|
|
1229
|
-
indent(indentor?: string | undefined | null): this;
|
|
1230
|
+
indent(indentor?: string | undefined | null, options?: BindingIndentOptions | undefined | null): this;
|
|
1230
1231
|
/** Trims whitespace or specified characters from the start and end. */
|
|
1231
1232
|
trim(charType?: string | undefined | null): this;
|
|
1232
1233
|
/** Trims whitespace or specified characters from the start. */
|
|
@@ -1255,8 +1256,12 @@ declare class BindingMagicString {
|
|
|
1255
1256
|
*/
|
|
1256
1257
|
reset(start: number, end: number): this;
|
|
1257
1258
|
/**
|
|
1258
|
-
* Returns the content between the specified
|
|
1259
|
+
* Returns the content between the specified UTF-16 code unit positions (JS string indices).
|
|
1259
1260
|
* Supports negative indices (counting from the end).
|
|
1261
|
+
*
|
|
1262
|
+
* When an index falls in the middle of a surrogate pair, the lone surrogate is
|
|
1263
|
+
* included in the result (matching the original magic-string / JS behavior).
|
|
1264
|
+
* This is done by returning a UTF-16 encoded JS string via `napi_create_string_utf16`.
|
|
1260
1265
|
*/
|
|
1261
1266
|
slice(start?: number | undefined | null, end?: number | undefined | null): string;
|
|
1262
1267
|
/**
|
|
@@ -1352,19 +1357,9 @@ declare class BindingSourceMap {
|
|
|
1352
1357
|
declare class BindingWatcherBundler {
|
|
1353
1358
|
close(): Promise<void>;
|
|
1354
1359
|
}
|
|
1355
|
-
/**
|
|
1356
|
-
* Cache for tsconfig resolution to avoid redundant file system operations.
|
|
1357
|
-
*
|
|
1358
|
-
* The cache stores resolved tsconfig configurations keyed by their file paths.
|
|
1359
|
-
* When transforming multiple files in the same project, tsconfig lookups are
|
|
1360
|
-
* deduplicated, improving performance.
|
|
1361
|
-
*
|
|
1362
|
-
* @category Utilities
|
|
1363
|
-
* @experimental
|
|
1364
|
-
*/
|
|
1365
1360
|
declare class TsconfigCache {
|
|
1366
1361
|
/** Create a new transform cache with auto tsconfig discovery enabled. */
|
|
1367
|
-
constructor();
|
|
1362
|
+
constructor(yarnPnp: boolean);
|
|
1368
1363
|
/**
|
|
1369
1364
|
* Clear the cache.
|
|
1370
1365
|
*
|
|
@@ -1374,7 +1369,7 @@ declare class TsconfigCache {
|
|
|
1374
1369
|
/** Get the number of cached entries. */
|
|
1375
1370
|
size(): number;
|
|
1376
1371
|
}
|
|
1377
|
-
type BindingBuiltinPluginName = 'builtin:bundle-analyzer' | 'builtin:esm-external-require' | 'builtin:isolated-declaration' | 'builtin:replace' | 'builtin:vite-alias' | 'builtin:vite-build-import-analysis' | 'builtin:vite-dynamic-import-vars' | 'builtin:vite-import-glob' | 'builtin:vite-json' | 'builtin:vite-load-fallback' | 'builtin:vite-manifest' | 'builtin:vite-module-preload-polyfill' | 'builtin:vite-react-refresh-wrapper' | 'builtin:vite-reporter' | 'builtin:vite-resolve' | 'builtin:vite-transform' | 'builtin:vite-wasm-fallback' | 'builtin:vite-web-worker-post';
|
|
1372
|
+
type BindingBuiltinPluginName = 'builtin:bundle-analyzer' | 'builtin:esm-external-require' | 'builtin:isolated-declaration' | 'builtin:replace' | 'builtin:vite-alias' | 'builtin:vite-build-import-analysis' | 'builtin:vite-dynamic-import-vars' | 'builtin:vite-import-glob' | 'builtin:vite-json' | 'builtin:vite-load-fallback' | 'builtin:vite-manifest' | 'builtin:vite-module-preload-polyfill' | 'builtin:vite-react-refresh-wrapper' | 'builtin:vite-reporter' | 'builtin:vite-resolve' | 'builtin:vite-transform' | 'builtin:vite-wasm-fallback' | 'builtin:vite-web-worker-post' | 'builtin:oxc-runtime';
|
|
1378
1373
|
interface BindingBundleAnalyzerPluginConfig {
|
|
1379
1374
|
/** Output filename for the bundle analysis data (default: "analyze-data.json") */
|
|
1380
1375
|
fileName?: string;
|
|
@@ -1579,6 +1574,9 @@ interface BindingHookResolveIdExtraArgs {
|
|
|
1579
1574
|
*/
|
|
1580
1575
|
kind: 'import-statement' | 'dynamic-import' | 'require-call' | 'import-rule' | 'url-token' | 'new-url' | 'hot-accept';
|
|
1581
1576
|
}
|
|
1577
|
+
interface BindingIndentOptions {
|
|
1578
|
+
exclude?: Array<Array<number>> | Array<number>;
|
|
1579
|
+
}
|
|
1582
1580
|
interface BindingIsolatedDeclarationPluginConfig {
|
|
1583
1581
|
stripInternal?: boolean;
|
|
1584
1582
|
}
|
|
@@ -1592,6 +1590,7 @@ interface BindingLogLocation {
|
|
|
1592
1590
|
interface BindingMagicStringOptions {
|
|
1593
1591
|
filename?: string;
|
|
1594
1592
|
offset?: number;
|
|
1593
|
+
indentExclusionRanges?: Array<Array<number>> | Array<number>;
|
|
1595
1594
|
}
|
|
1596
1595
|
interface BindingModulePreloadOptions {
|
|
1597
1596
|
polyfill: boolean;
|
|
@@ -1845,10 +1844,8 @@ interface PreRenderedChunk {
|
|
|
1845
1844
|
/** Exported variable names from this chunk. */
|
|
1846
1845
|
exports: Array<string>;
|
|
1847
1846
|
}
|
|
1848
|
-
/** @hidden This is only expected to be used by Vite */
|
|
1849
|
-
declare function resolveTsconfig(filename: string, cache?: TsconfigCache | undefined | null): BindingTsconfigResult | null;
|
|
1850
1847
|
interface ViteImportGlobMeta {
|
|
1851
1848
|
isSubImportsPattern?: boolean;
|
|
1852
1849
|
}
|
|
1853
1850
|
//#endregion
|
|
1854
|
-
export {
|
|
1851
|
+
export { ExternalMemoryStatus as A, ResolveResult as B, BindingViteManifestPluginConfig as C, BindingViteResolvePluginConfig as D, BindingViteReporterPluginConfig as E, MinifyResult as F, isolatedDeclaration as G, SourceMap as H, NapiResolveOptions as I, isolatedDeclarationSync as K, ParseResult as L, IsolatedDeclarationsResult as M, JsxOptions as N, BindingViteTransformPluginConfig as O, MinifyOptions as P, ParserOptions as R, BindingViteJsonPluginConfig as S, BindingViteReactRefreshWrapperPluginConfig as T, TransformOptions as U, ResolverFactory as V, TsconfigCache as W, BindingTsconfigRawOptions as _, BindingEnhancedTransformOptions as a, BindingViteDynamicImportVarsPluginConfig as b, BindingHookResolveIdExtraArgs as c, BindingPluginContextResolveOptions as d, BindingRebuildStrategy as f, BindingTsconfigCompilerOptions as g, BindingTransformHookExtraArgs as h, BindingClientHmrUpdate as i, IsolatedDeclarationsOptions as j, BindingWatcherBundler as k, BindingIsolatedDeclarationPluginConfig as l, BindingReplacePluginConfig as m, BindingBundleAnalyzerPluginConfig as n, BindingEnhancedTransformResult as o, BindingRenderedChunk as p, moduleRunnerTransform as q, BindingBundleState as r, BindingEsmExternalRequirePluginConfig as s, BindingBuiltinPluginName as t, BindingMagicString as u, BindingTsconfigResult as v, BindingViteModulePreloadPolyfillPluginConfig as w, BindingViteImportGlobPluginConfig as x, BindingViteBuildImportAnalysisPluginConfig as y, PreRenderedChunk as z };
|
|
@@ -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-BV_UWDF3.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-D7wlw16t.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-BO4SlZV_.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.120.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,7 +567,12 @@ Object.defineProperty(import_binding.BindingMagicString.prototype, "isRolldownMa
|
|
|
567
567
|
writable: false,
|
|
568
568
|
configurable: false
|
|
569
569
|
});
|
|
570
|
-
|
|
570
|
+
/**
|
|
571
|
+
* A native MagicString implementation powered by Rust.
|
|
572
|
+
*
|
|
573
|
+
* @experimental
|
|
574
|
+
*/
|
|
575
|
+
const RolldownMagicString = import_binding.BindingMagicString;
|
|
571
576
|
//#endregion
|
|
572
577
|
//#region src/utils/transform-module-info.ts
|
|
573
578
|
function transformModuleInfo(info, option) {
|
|
@@ -1080,7 +1085,7 @@ function bindingifyTransform(args) {
|
|
|
1080
1085
|
Object.defineProperties(meta, {
|
|
1081
1086
|
magicString: { get() {
|
|
1082
1087
|
if (magicStringInstance) return magicStringInstance;
|
|
1083
|
-
magicStringInstance = new
|
|
1088
|
+
magicStringInstance = new RolldownMagicString(code);
|
|
1084
1089
|
return magicStringInstance;
|
|
1085
1090
|
} },
|
|
1086
1091
|
ast: { get() {
|
|
@@ -1114,7 +1119,7 @@ function bindingifyTransform(args) {
|
|
|
1114
1119
|
let normalizedCode = void 0;
|
|
1115
1120
|
let map = ret.map;
|
|
1116
1121
|
if (typeof ret.code === "string") normalizedCode = ret.code;
|
|
1117
|
-
else if (ret.code instanceof
|
|
1122
|
+
else if (ret.code instanceof RolldownMagicString) {
|
|
1118
1123
|
let magicString = ret.code;
|
|
1119
1124
|
normalizedCode = magicString.toString();
|
|
1120
1125
|
let fallbackSourcemap = ctx.sendMagicString(magicString);
|
|
@@ -1203,14 +1208,14 @@ function bindingifyRenderChunk(args) {
|
|
|
1203
1208
|
if (args.options.experimental?.nativeMagicString) Object.defineProperty(renderChunkMeta, "magicString", {
|
|
1204
1209
|
get() {
|
|
1205
1210
|
if (magicStringInstance) return magicStringInstance;
|
|
1206
|
-
magicStringInstance = new
|
|
1211
|
+
magicStringInstance = new RolldownMagicString(code);
|
|
1207
1212
|
return magicStringInstance;
|
|
1208
1213
|
},
|
|
1209
1214
|
configurable: true
|
|
1210
1215
|
});
|
|
1211
1216
|
const ret = await handler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode), code, transformRenderedChunk(chunk), args.pluginContextData.getOutputOptions(opts), renderChunkMeta);
|
|
1212
1217
|
if (ret == null) return;
|
|
1213
|
-
if (ret instanceof
|
|
1218
|
+
if (ret instanceof RolldownMagicString) {
|
|
1214
1219
|
const normalizedCode = ret.toString();
|
|
1215
1220
|
const generatedMap = ret.generateMap();
|
|
1216
1221
|
return {
|
|
@@ -1225,7 +1230,7 @@ function bindingifyRenderChunk(args) {
|
|
|
1225
1230
|
};
|
|
1226
1231
|
}
|
|
1227
1232
|
if (typeof ret === "string") return { code: ret };
|
|
1228
|
-
if (ret.code instanceof
|
|
1233
|
+
if (ret.code instanceof RolldownMagicString) {
|
|
1229
1234
|
const magicString = ret.code;
|
|
1230
1235
|
const normalizedCode = magicString.toString();
|
|
1231
1236
|
if (ret.map === null) return { code: normalizedCode };
|
|
@@ -2162,4 +2167,4 @@ function bindingifyPreserveEntrySignatures(preserveEntrySignatures) {
|
|
|
2162
2167
|
};
|
|
2163
2168
|
}
|
|
2164
2169
|
//#endregion
|
|
2165
|
-
export { version as C, description as S, LOG_LEVEL_INFO as _,
|
|
2170
|
+
export { version as C, description as S, LOG_LEVEL_INFO as _, RolldownMagicString as a, RUNTIME_MODULE_ID as b, __decorate as c, PlainObjectLike as d, MinimalPluginContextImpl as f, LOG_LEVEL_ERROR as g, LOG_LEVEL_DEBUG as h, transformModuleInfo as i, transformAssetSource as l, normalizeLog as m, PluginContextData as n, transformToRollupOutput as o, normalizeHook as p, bindingifyPlugin as r, transformRenderedChunk as s, bindingifyInputOptions as t, lazyProp as u, LOG_LEVEL_WARN as v, VERSION as x, logLevelPriority as y };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
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-Dsq9Azhm.mjs";
|
|
2
|
+
import { N as BuiltinPlugin, Vt as StringOrRegExp } from "./define-config-CV9D_Qea.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/builtin-plugin/constructors.d.ts
|
|
5
5
|
declare function viteModulePreloadPolyfillPlugin(config?: BindingViteModulePreloadPolyfillPluginConfig): BuiltinPlugin;
|
|
@@ -28,6 +28,10 @@ type ViteReactRefreshWrapperPluginConfig = Omit<BindingViteReactRefreshWrapperPl
|
|
|
28
28
|
include?: StringOrRegExp | StringOrRegExp[];
|
|
29
29
|
exclude?: StringOrRegExp | StringOrRegExp[];
|
|
30
30
|
};
|
|
31
|
+
/**
|
|
32
|
+
* This plugin should not be used for Rolldown.
|
|
33
|
+
*/
|
|
34
|
+
declare function oxcRuntimePlugin(): BuiltinPlugin;
|
|
31
35
|
declare function viteReactRefreshWrapperPlugin(config: ViteReactRefreshWrapperPluginConfig): BuiltinPlugin;
|
|
32
36
|
//#endregion
|
|
33
|
-
export {
|
|
37
|
+
export { viteDynamicImportVarsPlugin as a, viteLoadFallbackPlugin as c, viteReporterPlugin as d, viteResolvePlugin as f, viteBuildImportAnalysisPlugin as i, viteModulePreloadPolyfillPlugin as l, viteWebWorkerPostPlugin as m, isolatedDeclarationPlugin as n, viteImportGlobPlugin as o, viteWasmFallbackPlugin as p, oxcRuntimePlugin as r, viteJsonPlugin as s, esmExternalRequirePlugin as t, viteReactRefreshWrapperPlugin as u };
|
|
@@ -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-D7wlw16t.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);
|
|
@@ -51,6 +51,12 @@ function esmExternalRequirePlugin(config) {
|
|
|
51
51
|
plugin.enforce = "pre";
|
|
52
52
|
return plugin;
|
|
53
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* This plugin should not be used for Rolldown.
|
|
56
|
+
*/
|
|
57
|
+
function oxcRuntimePlugin() {
|
|
58
|
+
return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:oxc-runtime"));
|
|
59
|
+
}
|
|
54
60
|
function viteReactRefreshWrapperPlugin(config) {
|
|
55
61
|
if (config) {
|
|
56
62
|
config.include = normalizedStringOrRegex(config.include);
|
|
@@ -59,4 +65,4 @@ function viteReactRefreshWrapperPlugin(config) {
|
|
|
59
65
|
return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:vite-react-refresh-wrapper", config));
|
|
60
66
|
}
|
|
61
67
|
//#endregion
|
|
62
|
-
export {
|
|
68
|
+
export { viteDynamicImportVarsPlugin as a, viteLoadFallbackPlugin as c, viteReporterPlugin as d, viteResolvePlugin as f, viteBuildImportAnalysisPlugin as i, viteModulePreloadPolyfillPlugin as l, viteWebWorkerPostPlugin as m, isolatedDeclarationPlugin as n, viteImportGlobPlugin as o, viteWasmFallbackPlugin as p, oxcRuntimePlugin as r, viteJsonPlugin as s, esmExternalRequirePlugin as t, viteReactRefreshWrapperPlugin as u };
|
|
@@ -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 {
|
|
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-Dsq9Azhm.mjs";
|
|
3
3
|
import { TopLevelFilterExpression } from "@voidzero-dev/vite-plus-core/rolldown/pluginutils";
|
|
4
4
|
import { Program } from "@oxc-project/types";
|
|
5
5
|
|
|
@@ -1399,14 +1399,19 @@ interface RolldownWatcher {
|
|
|
1399
1399
|
declare function watch(input: WatchOptions | WatchOptions[]): RolldownWatcher;
|
|
1400
1400
|
//#endregion
|
|
1401
1401
|
//#region src/binding-magic-string.d.ts
|
|
1402
|
-
interface
|
|
1402
|
+
interface RolldownMagicString extends BindingMagicString {
|
|
1403
1403
|
readonly isRolldownMagicString: true;
|
|
1404
1404
|
}
|
|
1405
|
-
type
|
|
1406
|
-
new (...args: ConstructorParameters<typeof BindingMagicString
|
|
1407
|
-
prototype:
|
|
1405
|
+
type RolldownMagicStringConstructor = Omit<typeof BindingMagicString, "prototype"> & {
|
|
1406
|
+
new (...args: ConstructorParameters<typeof BindingMagicString>): RolldownMagicString;
|
|
1407
|
+
prototype: RolldownMagicString;
|
|
1408
1408
|
};
|
|
1409
|
-
|
|
1409
|
+
/**
|
|
1410
|
+
* A native MagicString implementation powered by Rust.
|
|
1411
|
+
*
|
|
1412
|
+
* @experimental
|
|
1413
|
+
*/
|
|
1414
|
+
declare const RolldownMagicString: RolldownMagicStringConstructor;
|
|
1410
1415
|
//#endregion
|
|
1411
1416
|
//#region src/log/log-handler.d.ts
|
|
1412
1417
|
type LoggingFunction = (log: RolldownLog | string | (() => RolldownLog | string)) => void;
|
|
@@ -2650,7 +2655,7 @@ type ResolveIdResult = string | NullValue | false | PartialResolvedId;
|
|
|
2650
2655
|
type LoadResult = NullValue | string | SourceDescription;
|
|
2651
2656
|
/** @inline @category Plugin APIs */
|
|
2652
2657
|
type TransformResult = NullValue | string | (Omit<SourceDescription, "code"> & {
|
|
2653
|
-
code?: string |
|
|
2658
|
+
code?: string | RolldownMagicString;
|
|
2654
2659
|
});
|
|
2655
2660
|
type RenderedChunkMeta = {
|
|
2656
2661
|
/**
|
|
@@ -2663,7 +2668,7 @@ type RenderedChunkMeta = {
|
|
|
2663
2668
|
* Use this to perform string transformations with automatic source map support.
|
|
2664
2669
|
* This is only available when `experimental.nativeMagicString` is enabled.
|
|
2665
2670
|
*/
|
|
2666
|
-
magicString?:
|
|
2671
|
+
magicString?: RolldownMagicString;
|
|
2667
2672
|
};
|
|
2668
2673
|
/** @category Plugin APIs */
|
|
2669
2674
|
interface FunctionPluginHooks {
|
|
@@ -2770,7 +2775,7 @@ interface FunctionPluginHooks {
|
|
|
2770
2775
|
*/
|
|
2771
2776
|
[DEFINED_HOOK_NAMES.transform]: (this: TransformPluginContext, code: string, id: string, meta: BindingTransformHookExtraArgs & {
|
|
2772
2777
|
moduleType: ModuleType;
|
|
2773
|
-
magicString?:
|
|
2778
|
+
magicString?: RolldownMagicString;
|
|
2774
2779
|
ast?: Program;
|
|
2775
2780
|
}) => TransformResult;
|
|
2776
2781
|
/**
|
|
@@ -2823,8 +2828,8 @@ interface FunctionPluginHooks {
|
|
|
2823
2828
|
*
|
|
2824
2829
|
* @group Output Generation Hooks
|
|
2825
2830
|
*/
|
|
2826
|
-
[DEFINED_HOOK_NAMES.renderChunk]: (this: PluginContext, code: string, chunk: RenderedChunk, outputOptions: NormalizedOutputOptions, meta: RenderedChunkMeta) => NullValue | string |
|
|
2827
|
-
code: string |
|
|
2831
|
+
[DEFINED_HOOK_NAMES.renderChunk]: (this: PluginContext, code: string, chunk: RenderedChunk, outputOptions: NormalizedOutputOptions, meta: RenderedChunkMeta) => NullValue | string | RolldownMagicString | {
|
|
2832
|
+
code: string | RolldownMagicString;
|
|
2828
2833
|
map?: SourceMapInput;
|
|
2829
2834
|
};
|
|
2830
2835
|
/**
|
|
@@ -3677,6 +3682,8 @@ interface InputOptions {
|
|
|
3677
3682
|
*
|
|
3678
3683
|
* These options only take effect when running with the [`--watch`](/apis/cli#w-watch) flag, or using {@linkcode watch | watch()} API.
|
|
3679
3684
|
*
|
|
3685
|
+
*
|
|
3686
|
+
*
|
|
3680
3687
|
* @experimental
|
|
3681
3688
|
*/
|
|
3682
3689
|
watch?: WatcherOptions | false;
|
|
@@ -3771,4 +3778,4 @@ declare function defineConfig(config: RolldownOptions[]): RolldownOptions[];
|
|
|
3771
3778
|
declare function defineConfig(config: RolldownOptionsFunction): RolldownOptionsFunction;
|
|
3772
3779
|
declare function defineConfig(config: ConfigExport): ConfigExport;
|
|
3773
3780
|
//#endregion
|
|
3774
|
-
export { GeneralHookFilter as $, SourceDescription as A, CodeSplittingOptions as At, TreeshakingOptions as B, PartialNull as Bt, PartialResolvedId as C, AddonFunction as Ct, ResolvedId as D, ChunkingContext as Dt, ResolveIdResult as E, ChunkFileNamesFunction as Et, VERSION as F, MinifyOptions as Ft, EmittedPrebuiltChunk as G, RenderedModule as Gt, EmittedAsset as H, OutputAsset as Ht, BundleError as I, ModuleFormat as It, PluginContextResolveOptions as J, freeExternalMemory as Jt, GetModuleInfo as K, RolldownOutput as Kt, ExistingRawSourceMap as L, OutputOptions as Lt, withFilter as M, GeneratedCodeOptions as Mt, BuiltinPlugin as N, GeneratedCodePreset as Nt, RolldownPlugin as O, CodeSplittingGroup as Ot, RUNTIME_MODULE_ID as P, GlobalsFunction as Pt, PluginContextMeta as Q, SourceMapInput as R, PreRenderedAsset as Rt, ParallelPluginHooks as S, build as St, ResolveIdExtraOptions as T, AdvancedChunksOptions as Tt, EmittedChunk as U, OutputChunk as Ut, TransformPluginContext as V, StringOrRegExp as Vt, EmittedFile as W, RenderedChunk as Wt, defineParallelPlugin as X, SourcemapIgnoreListOption as Xt, DefineParallelPluginResult as Y, ModuleInfo as Yt, MinimalPluginContext as Z, ImportKind as _, RolldownWatcherWatcherEventMap as _t, ExternalOption as a, RolldownFsModule as at, ModuleType as b, RolldownBuild as bt, InputOptions as c, NormalizedInputOptions as ct, WatcherFileWatcherOptions as d, LoggingFunction as dt, HookFilter as et, WatcherOptions as f, WarningHandlerWithDefault as ft, HookFilterExtension as g, RolldownWatcherEvent as gt, FunctionPluginHooks as h, RolldownWatcher as ht, RolldownOptions as i, RolldownFileStats as it, TransformResult as j, CommentsOptions as jt, RolldownPluginOption as k, CodeSplittingNameFunction as kt, ModuleTypes as l, TransformOptions as lt, CustomPluginOptions as m, watch as mt, RolldownOptionsFunction as n, BufferEncoding as nt, ExternalOptionFunction as o, InternalModuleFormat as ot, AsyncPluginHooks as p,
|
|
3781
|
+
export { GeneralHookFilter as $, SourceDescription as A, CodeSplittingOptions as At, TreeshakingOptions as B, PartialNull as Bt, PartialResolvedId as C, AddonFunction as Ct, ResolvedId as D, ChunkingContext as Dt, ResolveIdResult as E, ChunkFileNamesFunction as Et, VERSION as F, MinifyOptions as Ft, EmittedPrebuiltChunk as G, RenderedModule as Gt, EmittedAsset as H, OutputAsset as Ht, BundleError as I, ModuleFormat as It, PluginContextResolveOptions as J, freeExternalMemory as Jt, GetModuleInfo as K, RolldownOutput as Kt, ExistingRawSourceMap as L, OutputOptions as Lt, withFilter as M, GeneratedCodeOptions as Mt, BuiltinPlugin as N, GeneratedCodePreset as Nt, RolldownPlugin as O, CodeSplittingGroup as Ot, RUNTIME_MODULE_ID as P, GlobalsFunction as Pt, PluginContextMeta as Q, SourceMapInput as R, PreRenderedAsset as Rt, ParallelPluginHooks as S, build as St, ResolveIdExtraOptions as T, AdvancedChunksOptions as Tt, EmittedChunk as U, OutputChunk as Ut, TransformPluginContext as V, StringOrRegExp as Vt, EmittedFile as W, RenderedChunk as Wt, defineParallelPlugin as X, SourcemapIgnoreListOption as Xt, DefineParallelPluginResult as Y, ModuleInfo as Yt, MinimalPluginContext as Z, ImportKind as _, RolldownWatcherWatcherEventMap as _t, ExternalOption as a, RolldownFsModule as at, ModuleType as b, RolldownBuild as bt, InputOptions as c, NormalizedInputOptions as ct, WatcherFileWatcherOptions as d, LoggingFunction as dt, HookFilter as et, WatcherOptions as f, WarningHandlerWithDefault as ft, HookFilterExtension as g, RolldownWatcherEvent as gt, FunctionPluginHooks as h, RolldownWatcher as ht, RolldownOptions as i, RolldownFileStats as it, TransformResult as j, CommentsOptions as jt, RolldownPluginOption as k, CodeSplittingNameFunction as kt, ModuleTypes as l, TransformOptions as lt, CustomPluginOptions as m, watch as mt, RolldownOptionsFunction as n, BufferEncoding as nt, ExternalOptionFunction as o, InternalModuleFormat as ot, AsyncPluginHooks as p, RolldownMagicString as pt, PluginContext as q, SourceMap as qt, defineConfig as r, RolldownDirectoryEntry as rt, InputOption as s, NormalizedOutputOptions as st, ConfigExport as t, ModuleTypeFilter as tt, OptimizationOptions as u, ChecksOptions as ut, LoadResult as v, WatchOptions as vt, Plugin as w, AdvancedChunksGroup as wt, ObjectHook as x, BuildOptions as xt, ModuleOptions as y, rolldown as yt, OutputBundle as z, MaybePromise as zt };
|
|
@@ -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-BV_UWDF3.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);
|
|
@@ -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-BV_UWDF3.mjs";
|
|
2
2
|
//#region ../../../node_modules/.pnpm/oxc-parser@0.120.0/node_modules/oxc-parser/src-js/wrap.js
|
|
3
3
|
function wrap(result) {
|
|
4
4
|
let program, module, comments, errors;
|
|
@@ -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-BV_UWDF3.mjs";
|
|
2
|
+
import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-BO4SlZV_.mjs";
|
|
3
3
|
//#region src/utils/minify.ts
|
|
4
4
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
5
5
|
/**
|
|
@@ -36,6 +36,7 @@ function minifySync(filename, sourceText, options) {
|
|
|
36
36
|
}
|
|
37
37
|
//#endregion
|
|
38
38
|
//#region src/utils/transform.ts
|
|
39
|
+
const yarnPnp$1 = typeof process === "object" && !!process.versions?.pnp;
|
|
39
40
|
/**
|
|
40
41
|
* Transpile a JavaScript or TypeScript into a target ECMAScript version, asynchronously.
|
|
41
42
|
*
|
|
@@ -55,7 +56,7 @@ function minifySync(filename, sourceText, options) {
|
|
|
55
56
|
* @experimental
|
|
56
57
|
*/
|
|
57
58
|
async function transform(filename, sourceText, options, cache) {
|
|
58
|
-
const result = await (0, import_binding.enhancedTransform)(filename, sourceText, options, cache);
|
|
59
|
+
const result = await (0, import_binding.enhancedTransform)(filename, sourceText, options, cache, yarnPnp$1);
|
|
59
60
|
return {
|
|
60
61
|
...result,
|
|
61
62
|
errors: result.errors.map(normalizeBindingError),
|
|
@@ -79,7 +80,7 @@ async function transform(filename, sourceText, options, cache) {
|
|
|
79
80
|
* @experimental
|
|
80
81
|
*/
|
|
81
82
|
function transformSync(filename, sourceText, options, cache) {
|
|
82
|
-
const result = (0, import_binding.enhancedTransformSync)(filename, sourceText, options, cache);
|
|
83
|
+
const result = (0, import_binding.enhancedTransformSync)(filename, sourceText, options, cache, yarnPnp$1);
|
|
83
84
|
return {
|
|
84
85
|
...result,
|
|
85
86
|
errors: result.errors.map(normalizeBindingError),
|
|
@@ -87,4 +88,26 @@ function transformSync(filename, sourceText, options, cache) {
|
|
|
87
88
|
};
|
|
88
89
|
}
|
|
89
90
|
//#endregion
|
|
90
|
-
|
|
91
|
+
//#region src/utils/resolve-tsconfig.ts
|
|
92
|
+
const yarnPnp = typeof process === "object" && !!process.versions?.pnp;
|
|
93
|
+
/**
|
|
94
|
+
* Cache for tsconfig resolution to avoid redundant file system operations.
|
|
95
|
+
*
|
|
96
|
+
* The cache stores resolved tsconfig configurations keyed by their file paths.
|
|
97
|
+
* When transforming multiple files in the same project, tsconfig lookups are
|
|
98
|
+
* deduplicated, improving performance.
|
|
99
|
+
*
|
|
100
|
+
* @category Utilities
|
|
101
|
+
* @experimental
|
|
102
|
+
*/
|
|
103
|
+
var TsconfigCache = class extends import_binding.TsconfigCache {
|
|
104
|
+
constructor() {
|
|
105
|
+
super(yarnPnp);
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
/** @hidden This is only expected to be used by Vite */
|
|
109
|
+
function resolveTsconfig(filename, cache) {
|
|
110
|
+
return (0, import_binding.resolveTsconfig)(filename, cache, yarnPnp);
|
|
111
|
+
}
|
|
112
|
+
//#endregion
|
|
113
|
+
export { minify as a, transformSync as i, resolveTsconfig as n, minifySync as o, transform as r, TsconfigCache as t };
|
|
@@ -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-C7TjtSci.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-BV_UWDF3.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-D7wlw16t.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-nddSVL89.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-BO4SlZV_.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";
|
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
import { a as RolldownLog } from "./logging-C6h4g8dA.mjs";
|
|
2
|
-
import {
|
|
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-Dsq9Azhm.mjs";
|
|
3
3
|
|
|
4
|
+
//#region src/utils/resolve-tsconfig.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Cache for tsconfig resolution to avoid redundant file system operations.
|
|
7
|
+
*
|
|
8
|
+
* The cache stores resolved tsconfig configurations keyed by their file paths.
|
|
9
|
+
* When transforming multiple files in the same project, tsconfig lookups are
|
|
10
|
+
* deduplicated, improving performance.
|
|
11
|
+
*
|
|
12
|
+
* @category Utilities
|
|
13
|
+
* @experimental
|
|
14
|
+
*/
|
|
15
|
+
declare class TsconfigCache extends TsconfigCache$1 {
|
|
16
|
+
constructor();
|
|
17
|
+
}
|
|
18
|
+
/** @hidden This is only expected to be used by Vite */
|
|
19
|
+
declare function resolveTsconfig(filename: string, cache?: TsconfigCache | null): BindingTsconfigResult | null;
|
|
20
|
+
//#endregion
|
|
4
21
|
//#region src/utils/parse.d.ts
|
|
5
22
|
/**
|
|
6
23
|
* Result of parsing a code
|
|
@@ -129,4 +146,4 @@ declare function transform(filename: string, sourceText: string, options?: Trans
|
|
|
129
146
|
*/
|
|
130
147
|
declare function transformSync(filename: string, sourceText: string, options?: TransformOptions | null, cache?: TsconfigCache | null): TransformResult;
|
|
131
148
|
//#endregion
|
|
132
|
-
export { MinifyOptions as a, minifySync as c, parse as d, parseSync as f, transformSync as i, ParseResult as l, TransformResult as n, MinifyResult as o, transform as r, minify as s, TransformOptions as t, ParserOptions as u };
|
|
149
|
+
export { MinifyOptions as a, minifySync as c, parse as d, parseSync as f, transformSync as i, ParseResult as l, resolveTsconfig as m, TransformResult as n, MinifyResult as o, TsconfigCache as p, transform as r, minify as s, TransformOptions as t, ParserOptions as u };
|
|
@@ -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-BV_UWDF3.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-nddSVL89.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-C7TjtSci.mjs";
|
|
6
|
+
import { t as aggregateBindingErrorsIntoJsError } from "./error-BO4SlZV_.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,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
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, 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-Dsq9Azhm.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-B5D1aA1B.mjs";
|
|
3
3
|
import * as ESTree from "@oxc-project/types";
|
|
4
4
|
import { Program } from "@oxc-project/types";
|
|
5
5
|
|