@voidzero-dev/vite-plus-core 1.0.0-rc.1 → 1.1.0
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/LICENSE +29 -176
- package/dist/rolldown/cli.mjs +9 -8
- package/dist/rolldown/config.d.mts +1 -1
- package/dist/rolldown/config.mjs +2 -2
- package/dist/rolldown/experimental-index.d.mts +4 -4
- package/dist/rolldown/experimental-index.mjs +8 -8
- package/dist/rolldown/experimental-runtime-types.d.ts +25 -6
- package/dist/rolldown/experimental-runtime.d.ts +25 -6
- package/dist/rolldown/experimental-runtime.mjs +267 -255
- package/dist/rolldown/filter-index.d.mts +1 -1
- package/dist/rolldown/index.d.mts +3 -3
- package/dist/rolldown/index.mjs +4 -4
- package/dist/rolldown/parallel-plugin-worker.mjs +2 -2
- 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 -1
- package/dist/rolldown/plugins-index.d.mts +3 -3
- package/dist/rolldown/plugins-index.mjs +2 -2
- package/dist/rolldown/shared/{binding-BY0qR5iS.mjs → binding-B4m_2rFW.mjs} +27 -28
- package/dist/rolldown/shared/{binding-BTa6BPQe.d.mts → binding-tzp6Hc_3.d.mts} +1 -1
- package/dist/rolldown/shared/{bindingify-input-options-B8JHmN6_.mjs → bindingify-input-options-YtcpaV3r.mjs} +196 -13
- package/dist/rolldown/shared/{constructors-DuOq7MqW.d.mts → constructors-CGQ9ItSV.d.mts} +2 -2
- package/dist/rolldown/shared/{constructors-xEvVj3lN.mjs → constructors-DDRbtWM1.mjs} +1 -1
- package/dist/rolldown/shared/{create-bundler-option-COco-7P6.mjs → create-bundler-option-CFtx335R.mjs} +17 -8
- package/dist/rolldown/shared/{define-config-C7HCoqY8.d.mts → define-config-kIZKjX8Q.d.mts} +72 -2
- package/dist/rolldown/shared/{error-C7pxws0W.mjs → error-Bj1xBdEY.mjs} +2 -1
- package/dist/rolldown/shared/{load-config-DkUBnDsI.mjs → load-config-CiFPv7UH.mjs} +2 -2
- package/dist/rolldown/shared/{normalize-string-or-regex-F14uvr6D.mjs → normalize-string-or-regex-xyy0kCQR.mjs} +1 -1
- package/dist/rolldown/shared/{parse-BWeE7Vr9.mjs → parse-Zii6QoPp.mjs} +2 -2
- package/dist/rolldown/shared/{resolve-tsconfig-DHwpIs5e.mjs → resolve-tsconfig-DRWFAQ3v.mjs} +2 -2
- package/dist/rolldown/shared/{rolldown-Bue0gNT5.mjs → rolldown-BCQsxZbq.mjs} +4 -4
- package/dist/rolldown/shared/{transform-DK_nCt9j.d.mts → transform-D4RDjIPI.d.mts} +1 -1
- package/dist/rolldown/shared/{watch-RXhXN1aG.mjs → watch-CXhrnblH.mjs} +4 -4
- package/dist/rolldown/utils-index.d.mts +3 -3
- package/dist/rolldown/utils-index.mjs +5 -5
- package/dist/tsdown/{build-JVmLFaZt-DRlLhpV3.js → build-JVmLFaZt-k6Y-YuG9.js} +8 -8
- package/dist/tsdown/{debug-CpC4hV25-C-OYr2iI.js → debug-CpC4hV25-D_60QWpz.js} +2 -2
- package/dist/tsdown/{detect-Bg-d8iUV-Du8LljhG.js → detect-Bg-d8iUV--_V5C4Db.js} +1 -1
- package/dist/tsdown/{dist-VDcV1Qyy.js → dist-DquISSoY.js} +8 -8
- package/dist/tsdown/index-types.d.ts +5 -5
- package/dist/tsdown/index.js +4 -4
- package/dist/tsdown/{require-BbBF8Ii0-BDaWJgzA.js → require-BbBF8Ii0-S6Y65RhW.js} +1 -1
- package/dist/tsdown/{resolver-DE0_sy8o-Bi3xbRxi.js → resolver-DE0_sy8o-Pz8aksn9.js} +2 -2
- package/dist/tsdown/run.js +3 -3
- package/dist/tsdown/{target-DgdLrXba-DpO9JXxB.js → target-DgdLrXba-BygiKCU8.js} +3 -3
- package/dist/tsdown/{tsc-BLb4pSBY.js → tsc-2xhsE0Bf.js} +4 -4
- package/dist/tsdown/tsdown-css.js +1 -1
- package/dist/tsdown/tsdown-exe.js +3 -3
- package/dist/tsdown/{version-CQ98ZBpL-D6GAHapk.js → version-CQ98ZBpL-CKvh-HCu.js} +1 -1
- package/dist/vite/client/bundledDevClient.mjs +75 -329
- package/dist/vite/client/client.mjs +74 -23
- package/dist/vite/node/chunks/node.js +883 -666
- package/dist/vite/node/index.d.ts +3 -1
- package/dist/vite/node/module-runner.js +16 -2
- package/package.json +38 -21
- package/dist/rolldown/experimental-default-runtime.mjs +0 -116
- package/dist/rolldown/experimental-runtime-base.mjs +0 -95
|
@@ -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-xuHO4mAy.mjs";
|
|
2
|
-
import { H as ParserOptions, I as JsxOptions, L as ManglePropertiesOptions$1, M as BindingWatcherBundler, N as ExternalMemoryStatus, R as MinifyOptions$1, U as PreRenderedChunk, c as BindingHookResolveIdExtraArgs, d as BindingMagicString, g as BindingRenderedChunk, m as BindingPluginContextResolveOptions, q as TransformOptions$1, t as BindingBuiltinPluginName, v as BindingTransformHookExtraArgs } from "./binding-
|
|
2
|
+
import { H as ParserOptions, I as JsxOptions, L as ManglePropertiesOptions$1, M as BindingWatcherBundler, N as ExternalMemoryStatus, R as MinifyOptions$1, U as PreRenderedChunk, c as BindingHookResolveIdExtraArgs, d as BindingMagicString, g as BindingRenderedChunk, m as BindingPluginContextResolveOptions, q as TransformOptions$1, t as BindingBuiltinPluginName, v as BindingTransformHookExtraArgs } from "./binding-tzp6Hc_3.mjs";
|
|
3
3
|
import { TopLevelFilterExpression } from "@voidzero-dev/vite-plus-core/rolldown/pluginutils";
|
|
4
4
|
import { Program } from "@oxc-project/types";
|
|
5
5
|
//#region src/types/misc.d.ts
|
|
@@ -145,6 +145,8 @@ interface SourceMap {
|
|
|
145
145
|
sourcesContent: string[];
|
|
146
146
|
version: number;
|
|
147
147
|
debugId?: string;
|
|
148
|
+
ignoreList?: number[];
|
|
149
|
+
/** @deprecated Use `ignoreList` instead. */
|
|
148
150
|
x_google_ignoreList?: number[];
|
|
149
151
|
toString(): string;
|
|
150
152
|
toUrl(): string;
|
|
@@ -1002,6 +1004,10 @@ interface OutputOptions {
|
|
|
1002
1004
|
*
|
|
1003
1005
|
* > [!WARNING]
|
|
1004
1006
|
* > Enabling this option increases bundle size because wrapped modules need runtime init helpers.
|
|
1007
|
+
*
|
|
1008
|
+
* {@linkcode CodeSplittingOptions.experimentalInlineCommonChunks | experimentalInlineCommonChunks}
|
|
1009
|
+
* with a `maxSize` above `0` turns this option on when it is omitted.
|
|
1010
|
+
*
|
|
1005
1011
|
* @default false
|
|
1006
1012
|
*/
|
|
1007
1013
|
strictExecutionOrder?: boolean;
|
|
@@ -1242,6 +1248,63 @@ type CodeSplittingGroup = {
|
|
|
1242
1248
|
* @category Code Splitting
|
|
1243
1249
|
*/
|
|
1244
1250
|
type AdvancedChunksGroup = CodeSplittingGroup;
|
|
1251
|
+
/**
|
|
1252
|
+
* Options for `codeSplitting.experimentalInlineCommonChunks`.
|
|
1253
|
+
*
|
|
1254
|
+
* Small common chunks produced by automatic code splitting are replaced by a factory function
|
|
1255
|
+
* that is copied into the chunks reading them (a chunk whose static dependency already carries the
|
|
1256
|
+
* factory uses that copy). A registry in the runtime chunk makes sure the chunk's modules keep one
|
|
1257
|
+
* state, one execution and one set of export identities across all copies, so no entry downloads
|
|
1258
|
+
* code it could not reach with the option off.
|
|
1259
|
+
*
|
|
1260
|
+
* Before enabling it, check the plugins and code shapes that see a chunk's modules as one file:
|
|
1261
|
+
*
|
|
1262
|
+
* - A module of an inlined chunk appears in the `moduleIds` and `modules` of every chunk that
|
|
1263
|
+
* prints a copy, so a plugin that asks which chunk owns a module gets several answers. Vite's
|
|
1264
|
+
* CSS plugin, for example, emits a style module's CSS from every chunk whose `moduleIds` list
|
|
1265
|
+
* it; a Vite build passes `exclude: /\.(css|scss|sass|less|styl|stylus|pcss|postcss|sss)(\?|$)/`
|
|
1266
|
+
* so chunks holding styles stay files.
|
|
1267
|
+
* - A `renderChunk` hook whose rewrite yields different values in different directories makes
|
|
1268
|
+
* the copies differ, and the first chunk to run decides which text every reader sees; exclude
|
|
1269
|
+
* the modules concerned. Vite's asset URLs under a relative `base` resolve through
|
|
1270
|
+
* `import.meta.url` to the same URL from every copy and are not affected.
|
|
1271
|
+
* - The option turns `strictExecutionOrder` on when it is omitted. Strict execution order has an
|
|
1272
|
+
* open issue with top-level await inside static import cycles (rolldown/rolldown#9548), so run
|
|
1273
|
+
* the application under `strictExecutionOrder: true` before adding this option.
|
|
1274
|
+
* - Addons (`banner`, `intro`, `outro` and `footer`), including plugin hooks, apply to emitted
|
|
1275
|
+
* files. An inlined chunk shares the addon bindings of the file that registers its factory
|
|
1276
|
+
* first. Exclude modules that depend on separate file-local bindings or addon initialization order.
|
|
1277
|
+
* - A chunk that prints an inlined chunk names both sets of modules together, so a function or
|
|
1278
|
+
* class in either can get a `$1`-style suffix when the other declares the same name, and the
|
|
1279
|
+
* `.name` of an inlined chunk's function or class depends on which chunk loads first (under
|
|
1280
|
+
* `minify`, the mangled name does too). `output.keepNames` keeps every name.
|
|
1281
|
+
*
|
|
1282
|
+
* @experimental This feature is experimental. Its behavior and option shape may change in any release.
|
|
1283
|
+
*
|
|
1284
|
+
* @category Code Splitting
|
|
1285
|
+
*/
|
|
1286
|
+
type ExperimentalInlineCommonChunksOptions = {
|
|
1287
|
+
/**
|
|
1288
|
+
* Common chunks whose pre-render size (the sum of the transformed source sizes of their modules,
|
|
1289
|
+
* in bytes) is strictly smaller than this value are candidates for inlining.
|
|
1290
|
+
* Use `Infinity` to remove the size limit.
|
|
1291
|
+
*
|
|
1292
|
+
* A value greater than `0` requires `output.format: 'es'`, an explicit
|
|
1293
|
+
* `preserveEntrySignatures: false` and code splitting, and it turns on
|
|
1294
|
+
* {@linkcode OutputOptions.strictExecutionOrder | strictExecutionOrder} when that option is
|
|
1295
|
+
* omitted. `output.strictExecutionOrder: false` is an error, `output.preserveModules`,
|
|
1296
|
+
* `experimental.devMode` and `experimental.onDemandWrapping` must be off.
|
|
1297
|
+
*
|
|
1298
|
+
* @default 0
|
|
1299
|
+
*/
|
|
1300
|
+
maxSize?: number;
|
|
1301
|
+
/**
|
|
1302
|
+
* A matcher for module ids, or an array of them: a string (matched as a regular expression), a
|
|
1303
|
+
* RegExp, or a function, each applied like {@linkcode CodeSplittingGroup.test | test}. A common
|
|
1304
|
+
* chunk is kept as a file when any of its modules matches any matcher.
|
|
1305
|
+
*/
|
|
1306
|
+
exclude?: StringOrRegExp | CodeSplittingTestFunction | Array<StringOrRegExp | CodeSplittingTestFunction>;
|
|
1307
|
+
};
|
|
1245
1308
|
/**
|
|
1246
1309
|
* Configuration options for advanced code splitting.
|
|
1247
1310
|
*
|
|
@@ -1276,6 +1339,12 @@ type CodeSplittingOptions = {
|
|
|
1276
1339
|
* Groups to be used for code splitting.
|
|
1277
1340
|
*/
|
|
1278
1341
|
groups?: CodeSplittingGroup[];
|
|
1342
|
+
/**
|
|
1343
|
+
* Replace small automatic common chunks with factory copies in their consumers.
|
|
1344
|
+
*
|
|
1345
|
+
* @experimental This feature is experimental. Its behavior and option shape may change in any release.
|
|
1346
|
+
*/
|
|
1347
|
+
experimentalInlineCommonChunks?: ExperimentalInlineCommonChunksOptions;
|
|
1279
1348
|
};
|
|
1280
1349
|
/**
|
|
1281
1350
|
* Alias for {@linkcode CodeSplittingOptions}. Use this type for the `codeSplitting` option.
|
|
@@ -2629,6 +2698,7 @@ interface ExistingRawSourceMap {
|
|
|
2629
2698
|
sourcesContent?: (string | null | undefined)[] | undefined;
|
|
2630
2699
|
sourceRoot?: string | undefined;
|
|
2631
2700
|
version?: number | undefined;
|
|
2701
|
+
ignoreList?: number[] | undefined;
|
|
2632
2702
|
x_google_ignoreList?: number[] | undefined;
|
|
2633
2703
|
}
|
|
2634
2704
|
/** @inline @category Plugin APIs */
|
|
@@ -4117,4 +4187,4 @@ declare function defineConfig(config: RolldownOptions[]): RolldownOptions[];
|
|
|
4117
4187
|
declare function defineConfig(config: RolldownOptionsFunction): RolldownOptionsFunction;
|
|
4118
4188
|
declare function defineConfig(config: ConfigExport): ConfigExport;
|
|
4119
4189
|
//#endregion
|
|
4120
|
-
export { defineParallelPlugin as $,
|
|
4190
|
+
export { defineParallelPlugin as $, SourceMap as $t, ResolvedId as A, ChunkFileNamesFunction as At, ExistingRawSourceMap as B, ManglePropertiesOptions as Bt, ParallelPluginHooks as C, RolldownBuild as Ct, ResolveFileUrlArgs as D, AdvancedChunksGroup as Dt, PluginMeta as E, AddonFunction as Et, withFilter as F, CommentsOptions as Ft, EmittedAsset as G, MaybePromise as Gt, OutputBundle as H, ModuleFormat as Ht, BuiltinPlugin as I, ExperimentalInlineCommonChunksOptions as It, EmittedPrebuiltChunk as J, OutputAsset as Jt, EmittedChunk as K, PartialNull as Kt, RUNTIME_MODULE_ID as L, GeneratedCodeOptions as Lt, RolldownPluginOption as M, CodeSplittingGroup as Mt, SourceDescription as N, CodeSplittingNameFunction as Nt, ResolveIdExtraOptions as O, AdvancedChunksOptions as Ot, TransformResult as P, CodeSplittingOptions as Pt, DefineParallelPluginResult as Q, RolldownOutput as Qt, VERSION as R, GeneratedCodePreset as Rt, ObjectHook as S, rolldown as St, Plugin as T, build as Tt, TreeshakingOptions as U, OutputOptions as Ut, SourceMapInput as V, MinifyOptions as Vt, TransformPluginContext as W, PreRenderedAsset as Wt, PluginContext as X, RenderedChunk as Xt, GetModuleInfo as Y, OutputChunk as Yt, PluginContextResolveOptions as Z, RenderedModule as Zt, HookFilterExtension as _, watch as _t, ChunkOptimizationOptions as a, BufferEncoding as at, ModuleOptions as b, RolldownWatcherWatcherEventMap as bt, InputOption as c, RolldownFsModule as ct, OptimizationOptions as d, NormalizedInputOptions as dt, freeExternalMemory as en, MinimalPluginContext as et, WatcherFileWatcherOptions as f, TransformOptions as ft, FunctionPluginHooks as g, RolldownMagicString as gt, CustomPluginOptions as h, WarningHandlerWithDefault as ht, RolldownOptions as i, ModuleTypeFilter as it, RolldownPlugin as j, ChunkingContext as jt, ResolveIdResult as k, BuiltinModuleTag as kt, InputOptions as l, InternalModuleFormat as lt, AsyncPluginHooks as m, LoggingFunction as mt, RolldownOptionsFunction as n, SourcemapIgnoreListOption as nn, GeneralHookFilter as nt, ExternalOption as o, RolldownDirectoryEntry as ot, WatcherOptions as p, ChecksOptions as pt, EmittedFile as q, StringOrRegExp as qt, defineConfig as r, HookFilter as rt, ExternalOptionFunction as s, RolldownFileStats as st, ConfigExport as t, ModuleInfo as tn, PluginContextMeta as tt, ModuleTypes as u, NormalizedOutputOptions as ut, ImportKind as v, RolldownWatcher as vt, PartialResolvedId as w, BuildOptions as wt, ModuleType as x, WatchOptions as xt, LoadResult as y, RolldownWatcherEvent as yt, BundleError as z, GlobalsFunction as zt };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as require_binding } from "./binding-
|
|
1
|
+
import { t as require_binding } from "./binding-B4m_2rFW.mjs";
|
|
2
2
|
//#region src/types/sourcemap.ts
|
|
3
3
|
function bindingifySourcemap(map) {
|
|
4
4
|
if (map == null) return;
|
|
@@ -9,6 +9,7 @@ function bindingifySourcemap(map) {
|
|
|
9
9
|
sources: map.sources?.map((s) => s ?? void 0),
|
|
10
10
|
sourcesContent: map.sourcesContent?.map((s) => s ?? void 0),
|
|
11
11
|
names: map.names,
|
|
12
|
+
ignoreList: map.ignoreList,
|
|
12
13
|
x_google_ignoreList: map.x_google_ignoreList,
|
|
13
14
|
debugId: "debugId" in map ? map.debugId : void 0
|
|
14
15
|
} };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as rolldown } from "./rolldown-
|
|
1
|
+
import { t as rolldown } from "./rolldown-BCQsxZbq.mjs";
|
|
2
2
|
import fs from "node:fs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { readdir } from "node:fs/promises";
|
|
5
|
-
import { pathToFileURL } from "node:url";
|
|
6
5
|
import { cwd } from "node:process";
|
|
6
|
+
import { pathToFileURL } from "node:url";
|
|
7
7
|
//#region src/utils/load-config.ts
|
|
8
8
|
async function bundleTsConfig(configFile, isEsm) {
|
|
9
9
|
const dirnameVarName = "injected_original_dirname";
|
|
@@ -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-B4m_2rFW.mjs";
|
|
2
2
|
import { n as error, u as logPluginError } from "./logs-D6uA606S.mjs";
|
|
3
3
|
//#region src/builtin-plugin/utils.ts
|
|
4
4
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
@@ -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-B4m_2rFW.mjs";
|
|
2
|
+
//#region ../../../node_modules/.pnpm/oxc-parser@0.153.0/node_modules/oxc-parser/src-js/wrap.js
|
|
3
3
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
4
4
|
function wrap(result) {
|
|
5
5
|
let program, module, comments, errors;
|
package/dist/rolldown/shared/{resolve-tsconfig-DHwpIs5e.mjs → resolve-tsconfig-DRWFAQ3v.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-B4m_2rFW.mjs";
|
|
2
|
+
import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-Bj1xBdEY.mjs";
|
|
3
3
|
//#region src/utils/minify.ts
|
|
4
4
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
5
5
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
2
|
-
import { f as __decorate, h as PlainObjectLike, m as lazyProp, u as transformToRollupOutput } from "./bindingify-input-options-
|
|
3
|
-
import { l as PluginDriver, s as validateOption, t as createBundlerOptions } from "./create-bundler-option-
|
|
4
|
-
import { i as unwrapBindingResult } from "./error-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-B4m_2rFW.mjs";
|
|
2
|
+
import { f as __decorate, h as PlainObjectLike, m as lazyProp, u as transformToRollupOutput } from "./bindingify-input-options-YtcpaV3r.mjs";
|
|
3
|
+
import { l as PluginDriver, s as validateOption, t as createBundlerOptions } from "./create-bundler-option-CFtx335R.mjs";
|
|
4
|
+
import { i as unwrapBindingResult } from "./error-Bj1xBdEY.mjs";
|
|
5
5
|
//#region src/types/rolldown-output-impl.ts
|
|
6
6
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
7
7
|
var RolldownOutputImpl = class extends PlainObjectLike {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as RolldownLog } from "./logging-xuHO4mAy.mjs";
|
|
2
|
-
import { H as ParserOptions$1, J as TsconfigCache$1, K as SourceMap, R as MinifyOptions$1, V as ParseResult$1, a as BindingEnhancedTransformOptions, o as BindingEnhancedTransformResult, x as BindingTsconfigResult, z as MinifyResult$1 } from "./binding-
|
|
2
|
+
import { H as ParserOptions$1, J as TsconfigCache$1, K as SourceMap, R as MinifyOptions$1, V as ParseResult$1, a as BindingEnhancedTransformOptions, o as BindingEnhancedTransformResult, x as BindingTsconfigResult, z as MinifyResult$1 } from "./binding-tzp6Hc_3.mjs";
|
|
3
3
|
//#region src/utils/resolve-tsconfig.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Cache for tsconfig resolution to avoid redundant file system operations.
|
|
@@ -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-B4m_2rFW.mjs";
|
|
2
2
|
import { c as logMultipleWatcherOption } from "./logs-D6uA606S.mjs";
|
|
3
|
-
import { C as LOG_LEVEL_WARN } from "./bindingify-input-options-
|
|
3
|
+
import { C as LOG_LEVEL_WARN } from "./bindingify-input-options-YtcpaV3r.mjs";
|
|
4
4
|
import { t as arraify } from "./misc-DOSKtd97.mjs";
|
|
5
|
-
import { l as PluginDriver, t as createBundlerOptions } from "./create-bundler-option-
|
|
6
|
-
import { t as aggregateBindingErrorsIntoJsError } from "./error-
|
|
5
|
+
import { l as PluginDriver, t as createBundlerOptions } from "./create-bundler-option-CFtx335R.mjs";
|
|
6
|
+
import { t as aggregateBindingErrorsIntoJsError } from "./error-Bj1xBdEY.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,8 +1,8 @@
|
|
|
1
|
-
import { b as BindingTsconfigRawOptions, y 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 { b as BindingTsconfigRawOptions, y as BindingTsconfigCompilerOptions } from "./shared/binding-tzp6Hc_3.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-D4RDjIPI.mjs";
|
|
3
3
|
import * as ESTree from "@oxc-project/types";
|
|
4
4
|
import { Program } from "@oxc-project/types";
|
|
5
|
-
//#region ../../../node_modules/.pnpm/oxc-parser@0.
|
|
5
|
+
//#region ../../../node_modules/.pnpm/oxc-parser@0.153.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
|
|
6
6
|
interface VisitorObject$1 {
|
|
7
7
|
DebuggerStatement?: (node: ESTree.DebuggerStatement) => void;
|
|
8
8
|
"DebuggerStatement:exit"?: (node: ESTree.DebuggerStatement) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as parseSync, t as parse } from "./shared/parse-
|
|
2
|
-
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-
|
|
3
|
-
//#region ../../../node_modules/.pnpm/oxc-parser@0.
|
|
1
|
+
import { n as parseSync, t as parse } from "./shared/parse-Zii6QoPp.mjs";
|
|
2
|
+
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-DRWFAQ3v.mjs";
|
|
3
|
+
//#region ../../../node_modules/.pnpm/oxc-parser@0.153.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
|
|
4
4
|
function walkNode(node, visitors) {
|
|
5
5
|
if (node == null) return;
|
|
6
6
|
if (Array.isArray(node)) {
|
|
@@ -2008,7 +2008,7 @@ function walkTSUnionType(node, visitors) {
|
|
|
2008
2008
|
exit !== null && exit(node);
|
|
2009
2009
|
}
|
|
2010
2010
|
//#endregion
|
|
2011
|
-
//#region ../../../node_modules/.pnpm/oxc-parser@0.
|
|
2011
|
+
//#region ../../../node_modules/.pnpm/oxc-parser@0.153.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
|
|
2012
2012
|
/** Mapping from node type name to node type ID */
|
|
2013
2013
|
const NODE_TYPE_IDS_MAP = /* @__PURE__ */ new Map([
|
|
2014
2014
|
["DebuggerStatement", 0],
|
|
@@ -2178,7 +2178,7 @@ const NODE_TYPE_IDS_MAP = /* @__PURE__ */ new Map([
|
|
|
2178
2178
|
["TSUnionType", 164]
|
|
2179
2179
|
]);
|
|
2180
2180
|
//#endregion
|
|
2181
|
-
//#region ../../../node_modules/.pnpm/oxc-parser@0.
|
|
2181
|
+
//#region ../../../node_modules/.pnpm/oxc-parser@0.153.0/node_modules/oxc-parser/src-js/visit/visitor.js
|
|
2182
2182
|
let compiledVisitor;
|
|
2183
2183
|
function createCompiledVisitor() {
|
|
2184
2184
|
compiledVisitor = [];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { i as __toESM, n as __exportAll$1, t as __commonJSMin } from "./rolldown-runtime-B4iAMlE-.js";
|
|
2
2
|
import { a as noop, c as resolveRegex, d as toArray, i as matchPattern, l as slash, n as debounce, o as pkgExists, r as importWithError, s as resolveComma, t as createConcurrencyExecutor, u as styleText$1 } from "./style-DiMP8pYv-DIC5PXeH.js";
|
|
3
|
-
import { a as createSuppressWarnings, c as globalLogger, i as createLogger, l as prettyFormat, n as version, o as generateColor, r as LogLevels, s as getNameLabel } from "./debug-CpC4hV25-
|
|
3
|
+
import { a as createSuppressWarnings, c as globalLogger, i as createLogger, l as prettyFormat, n as version, o as generateColor, r as LogLevels, s as getNameLabel } from "./debug-CpC4hV25-D_60QWpz.js";
|
|
4
4
|
import { n as x, r as createDebug, t as exec } from "./main-CyNcZUzu.js";
|
|
5
|
-
import { a as parseRange, c as fsCopy, d as fsStat, f as lowestCommonAncestor, i as validateSea, l as fsExists, o as satisfies, p as stripExtname, r as resolveTarget, s as formatBytes, t as buildExe, u as fsRemove } from "./target-DgdLrXba-
|
|
6
|
-
import { S as RE_NODE_MODULES$1, _ as RE_CSS, b as RE_JS, t as coerce, v as RE_DTS } from "./version-CQ98ZBpL-
|
|
5
|
+
import { a as parseRange, c as fsCopy, d as fsStat, f as lowestCommonAncestor, i as validateSea, l as fsExists, o as satisfies, p as stripExtname, r as resolveTarget, s as formatBytes, t as buildExe, u as fsRemove } from "./target-DgdLrXba-BygiKCU8.js";
|
|
6
|
+
import { S as RE_NODE_MODULES$1, _ as RE_CSS, b as RE_JS, t as coerce, v as RE_DTS } from "./version-CQ98ZBpL-CKvh-HCu.js";
|
|
7
7
|
import module$1, { builtinModules, createRequire, isBuiltin } from "node:module";
|
|
8
8
|
import process$1 from "node:process";
|
|
9
9
|
import { formatWithOptions, inspect, isDeepStrictEqual, parseEnv, promisify } from "node:util";
|
|
@@ -1086,7 +1086,7 @@ i((e, n) => {
|
|
|
1086
1086
|
return m.substitutions.map((f) => E(f.replace("*", v)));
|
|
1087
1087
|
}, "resolvePathAlias");
|
|
1088
1088
|
//#endregion
|
|
1089
|
-
//#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@
|
|
1089
|
+
//#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_246e1a6b42eb96ae418f743999fb07f3/node_modules/tsdown/dist/deps-DCK8g4G9.mjs
|
|
1090
1090
|
const shimFile = path.resolve(import.meta.dirname, "..", "esm-shims.js");
|
|
1091
1091
|
const shimsInject = {
|
|
1092
1092
|
__dirname: [shimFile, "__dirname"],
|
|
@@ -5223,7 +5223,7 @@ function filterConfig(filter, configCwd, name) {
|
|
|
5223
5223
|
return toArray(filter).some((value) => name && name === value || cwd === value);
|
|
5224
5224
|
}
|
|
5225
5225
|
//#endregion
|
|
5226
|
-
//#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@
|
|
5226
|
+
//#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_246e1a6b42eb96ae418f743999fb07f3/node_modules/tsdown/dist/watch-UrMX4y5g.mjs
|
|
5227
5227
|
async function copy(options) {
|
|
5228
5228
|
if (!options.copy) return;
|
|
5229
5229
|
const resolved = await resolveCopyEntries(options);
|
|
@@ -5604,7 +5604,7 @@ var Hookable = class {
|
|
|
5604
5604
|
}
|
|
5605
5605
|
};
|
|
5606
5606
|
//#endregion
|
|
5607
|
-
//#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@
|
|
5607
|
+
//#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_246e1a6b42eb96ae418f743999fb07f3/node_modules/tsdown/dist/build-JVmLFaZt.mjs
|
|
5608
5608
|
var build_JVmLFaZt_exports = /* @__PURE__ */ __exportAll$1({
|
|
5609
5609
|
n: () => buildWithConfigs,
|
|
5610
5610
|
r: () => build_exports,
|
|
@@ -5910,7 +5910,7 @@ async function bundleDone(bundleByPkg, bundle) {
|
|
|
5910
5910
|
async function packTarball(packageJsonPath) {
|
|
5911
5911
|
const pkgDir = path.dirname(packageJsonPath);
|
|
5912
5912
|
const destination = await mkdtemp(path.join(tmpdir(), "tsdown-pack-"));
|
|
5913
|
-
const { detect } = await import("./detect-Bg-d8iUV
|
|
5913
|
+
const { detect } = await import("./detect-Bg-d8iUV--_V5C4Db.js");
|
|
5914
5914
|
try {
|
|
5915
5915
|
const detected = await detect({ cwd: pkgDir });
|
|
5916
5916
|
debug$1("Detected package manager: %o", detected);
|
|
@@ -6051,7 +6051,7 @@ async function resolveInputOptions(config, format, configDeps, bundle, cjsDts, i
|
|
|
6051
6051
|
if (nodeProtocol) plugins.push(NodeProtocolPlugin(nodeProtocol));
|
|
6052
6052
|
if (config.pkg || config.deps.neverBundle === true || config.deps.dts.neverBundle === true) plugins.push(DepsPlugin(config, bundle));
|
|
6053
6053
|
if (dts) {
|
|
6054
|
-
const { dts: dtsPlugin } = await import("./dist-
|
|
6054
|
+
const { dts: dtsPlugin } = await import("./dist-DquISSoY.js");
|
|
6055
6055
|
const options = {
|
|
6056
6056
|
tsconfig,
|
|
6057
6057
|
logger,
|
|
@@ -2,7 +2,7 @@ import { a as noop, d as toArray, s as resolveComma, u as styleText$1 } from "./
|
|
|
2
2
|
import { a as namespaces, i as enable, r as createDebug } from "./main-CyNcZUzu.js";
|
|
3
3
|
import process from "node:process";
|
|
4
4
|
import readline from "node:readline";
|
|
5
|
-
//#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@
|
|
5
|
+
//#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_246e1a6b42eb96ae418f743999fb07f3/node_modules/tsdown/dist/logger-D9XFzQl9.mjs
|
|
6
6
|
const LogLevels = {
|
|
7
7
|
silent: 0,
|
|
8
8
|
error: 1,
|
|
@@ -145,7 +145,7 @@ function hue2rgb(p, q, t) {
|
|
|
145
145
|
return p;
|
|
146
146
|
}
|
|
147
147
|
//#endregion
|
|
148
|
-
//#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@
|
|
148
|
+
//#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_246e1a6b42eb96ae418f743999fb07f3/node_modules/tsdown/dist/debug-CpC4hV25.mjs
|
|
149
149
|
var version = "0.23.0";
|
|
150
150
|
const debugLog = createDebug("tsdown:debug");
|
|
151
151
|
function enableDebug(debug) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import process from "node:process";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
|
-
//#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@
|
|
4
|
+
//#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_246e1a6b42eb96ae418f743999fb07f3/node_modules/tsdown/dist/detect-Bg-d8iUV.mjs
|
|
5
5
|
const AGENTS = [
|
|
6
6
|
"npm",
|
|
7
7
|
"yarn",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as RE_ROLLDOWN_RUNTIME, D as filename_to_dts, E as filename_js_to_dts, O as replaceTemplateName, S as RE_NODE_MODULES, T as filename_dts_to, _ as RE_CSS, b as RE_JS, k as resolveTemplateFn, v as RE_DTS, w as RE_TS, x as RE_JSON, y as RE_DTS_MAP } from "./version-CQ98ZBpL-
|
|
2
|
-
import { o as mt, s as te } from "./build-JVmLFaZt-
|
|
3
|
-
import { a as createDebug, i as tryResolve, n as require, r as requireTSApi, t as isTS70Installed } from "./require-BbBF8Ii0-
|
|
1
|
+
import { C as RE_ROLLDOWN_RUNTIME, D as filename_to_dts, E as filename_js_to_dts, O as replaceTemplateName, S as RE_NODE_MODULES, T as filename_dts_to, _ as RE_CSS, b as RE_JS, k as resolveTemplateFn, v as RE_DTS, w as RE_TS, x as RE_JSON, y as RE_DTS_MAP } from "./version-CQ98ZBpL-CKvh-HCu.js";
|
|
2
|
+
import { o as mt, s as te } from "./build-JVmLFaZt-k6Y-YuG9.js";
|
|
3
|
+
import { a as createDebug, i as tryResolve, n as require, r as requireTSApi, t as isTS70Installed } from "./require-BbBF8Ii0-S6Y65RhW.js";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import process from "node:process";
|
|
6
6
|
import { styleText } from "node:util";
|
|
@@ -13,7 +13,7 @@ import { tmpdir } from "node:os";
|
|
|
13
13
|
import { ResolverFactory, isolatedDeclarationSync } from "@voidzero-dev/vite-plus-core/rolldown/experimental";
|
|
14
14
|
import { generate } from "yuku-codegen";
|
|
15
15
|
import { parse as parse$1 } from "yuku-parser";
|
|
16
|
-
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.28.6_@typescript+native-preview@7.0.0-dev.20260605.
|
|
16
|
+
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.28.6_@typescript+native-preview@7.0.0-dev.20260605.1_@volar+types_969a2c93bc9b761d4191bb0e75b7732a/node_modules/rolldown-plugin-dts/dist/tsc-context.mjs
|
|
17
17
|
const debug$6 = createDebug("rolldown-plugin-dts:tsc-context");
|
|
18
18
|
/** Creates an empty, isolated TypeScript compiler context. */
|
|
19
19
|
function createContext() {
|
|
@@ -42,7 +42,7 @@ function invalidateContextFile(context, file) {
|
|
|
42
42
|
/** Shared compiler context used when no explicit context is provided. */
|
|
43
43
|
const globalContext = createContext();
|
|
44
44
|
//#endregion
|
|
45
|
-
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.28.6_@typescript+native-preview@7.0.0-dev.20260605.
|
|
45
|
+
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.28.6_@typescript+native-preview@7.0.0-dev.20260605.1_@volar+types_969a2c93bc9b761d4191bb0e75b7732a/node_modules/rolldown-plugin-dts/dist/custom-language-BR14iqr3.mjs
|
|
46
46
|
var LanguageContext = class {
|
|
47
47
|
languages;
|
|
48
48
|
patterns;
|
|
@@ -1297,7 +1297,7 @@ function ensureValue(value) {
|
|
|
1297
1297
|
return value && ALLOW_EXTENSIONS.has(extname(value)) ? value.replaceAll("\\", "/") : null;
|
|
1298
1298
|
}
|
|
1299
1299
|
//#endregion
|
|
1300
|
-
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.28.6_@typescript+native-preview@7.0.0-dev.20260605.
|
|
1300
|
+
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.28.6_@typescript+native-preview@7.0.0-dev.20260605.1_@volar+types_969a2c93bc9b761d4191bb0e75b7732a/node_modules/rolldown-plugin-dts/dist/index.mjs
|
|
1301
1301
|
function createDtsInputPlugin({ sideEffects }) {
|
|
1302
1302
|
return {
|
|
1303
1303
|
name: "rolldown-plugin-dts:dts-input",
|
|
@@ -1378,7 +1378,7 @@ var TscGenerator = class {
|
|
|
1378
1378
|
this.worker = createTscWorker();
|
|
1379
1379
|
return;
|
|
1380
1380
|
}
|
|
1381
|
-
this.tscModule = await import("./tsc-
|
|
1381
|
+
this.tscModule = await import("./tsc-2xhsE0Bf.js");
|
|
1382
1382
|
if (this.newContext) this.context = createContext();
|
|
1383
1383
|
}
|
|
1384
1384
|
async emit(_code, fileName) {
|
|
@@ -2922,7 +2922,7 @@ function createDtsResolvePlugin({ cwd, tsconfig, tsconfigRaw, resolver, sideEffe
|
|
|
2922
2922
|
async function resolveDtsPath(id, importer, rolldownResolution) {
|
|
2923
2923
|
let dtsPath;
|
|
2924
2924
|
if (resolver === "tsc") {
|
|
2925
|
-
const { tscResolve } = await import("./resolver-DE0_sy8o-
|
|
2925
|
+
const { tscResolve } = await import("./resolver-DE0_sy8o-Pz8aksn9.js");
|
|
2926
2926
|
dtsPath = tscResolve(id, importer, cwd, tsconfig, tsconfigRaw);
|
|
2927
2927
|
} else dtsPath = baseDtsResolver(id, importer);
|
|
2928
2928
|
debug$1("Using %s for dts import: %O -> %O", resolver, id, dtsPath);
|
|
@@ -58,7 +58,7 @@ declare global {
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
//#endregion
|
|
61
|
-
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.28.6_@typescript+native-preview@7.0.0-dev.20260605.
|
|
61
|
+
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.28.6_@typescript+native-preview@7.0.0-dev.20260605.1_@volar+types_969a2c93bc9b761d4191bb0e75b7732a/node_modules/rolldown-plugin-dts/dist/custom-language-CFzWzq69.d.mts
|
|
62
62
|
//#region src/custom-language.d.ts
|
|
63
63
|
/** @ts-ignore - TS 7 mismatch */
|
|
64
64
|
type FileExtensionInfo = import("typescript").FileExtensionInfo;
|
|
@@ -944,7 +944,7 @@ type TsConfigJson = {
|
|
|
944
944
|
references?: TsConfigJson.References[];
|
|
945
945
|
};
|
|
946
946
|
//#endregion
|
|
947
|
-
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.28.6_@typescript+native-preview@7.0.0-dev.20260605.
|
|
947
|
+
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.28.6_@typescript+native-preview@7.0.0-dev.20260605.1_@volar+types_969a2c93bc9b761d4191bb0e75b7732a/node_modules/rolldown-plugin-dts/dist/index.d.mts
|
|
948
948
|
//#region src/tsc/vue.d.ts
|
|
949
949
|
interface VueLanguageOptions {
|
|
950
950
|
/** @ts-ignore - optional dep */
|
|
@@ -1338,7 +1338,7 @@ interface StylusPreprocessorOptions {
|
|
|
1338
1338
|
[key: string]: any;
|
|
1339
1339
|
}
|
|
1340
1340
|
//#endregion
|
|
1341
|
-
//#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@
|
|
1341
|
+
//#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_246e1a6b42eb96ae418f743999fb07f3/node_modules/tsdown/dist/types-CYHmmaKd.d.mts
|
|
1342
1342
|
//#region src/utils/types.d.ts
|
|
1343
1343
|
type Overwrite<T, U> = Omit<T, keyof U> & U;
|
|
1344
1344
|
type Awaitable<T> = T | Promise<T>;
|
|
@@ -2780,7 +2780,7 @@ type ResolvedConfig = Overwrite<MarkPartial<Omit<UserConfig, "workspace" | "from
|
|
|
2780
2780
|
exe: false | ExeOptions;
|
|
2781
2781
|
}>;
|
|
2782
2782
|
//#endregion
|
|
2783
|
-
//#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@
|
|
2783
|
+
//#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_246e1a6b42eb96ae418f743999fb07f3/node_modules/tsdown/dist/config-DR1wR8P-.d.mts
|
|
2784
2784
|
//#region src/config/options.d.ts
|
|
2785
2785
|
/**
|
|
2786
2786
|
* Resolve user config into resolved configs
|
|
@@ -2801,7 +2801,7 @@ declare function defineConfig(options: UserConfig[]): UserConfig[];
|
|
|
2801
2801
|
declare function defineConfig(options: UserConfigFn): UserConfigFn;
|
|
2802
2802
|
declare function defineConfig(options: UserConfigExport): UserConfigExport;
|
|
2803
2803
|
//#endregion
|
|
2804
|
-
//#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@
|
|
2804
|
+
//#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_246e1a6b42eb96ae418f743999fb07f3/node_modules/tsdown/dist/index.d.mts
|
|
2805
2805
|
//#region src/build.d.ts
|
|
2806
2806
|
/**
|
|
2807
2807
|
* Build with tsdown.
|
package/dist/tsdown/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { c as globalLogger, n as version$1, t as enableDebug } from "./debug-CpC4hV25-
|
|
2
|
-
import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-JVmLFaZt-
|
|
1
|
+
import { c as globalLogger, n as version$1, t as enableDebug } from "./debug-CpC4hV25-D_60QWpz.js";
|
|
2
|
+
import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-JVmLFaZt-k6Y-YuG9.js";
|
|
3
3
|
import * as Rolldown from "@voidzero-dev/vite-plus-core/rolldown";
|
|
4
|
-
//#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@
|
|
4
|
+
//#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_246e1a6b42eb96ae418f743999fb07f3/node_modules/tsdown/dist/config.mjs
|
|
5
5
|
function defineConfig(options) {
|
|
6
6
|
return options;
|
|
7
7
|
}
|
|
8
8
|
//#endregion
|
|
9
|
-
//#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@
|
|
9
|
+
//#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_246e1a6b42eb96ae418f743999fb07f3/node_modules/tsdown/dist/index.mjs
|
|
10
10
|
const version = version$1;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { Rolldown, build$1 as build, buildWithConfigs, defineConfig, enableDebug, globalLogger, mergeConfig, resolveUserConfig, version };
|
|
@@ -287,7 +287,7 @@ function createDebug(namespace, options) {
|
|
|
287
287
|
}
|
|
288
288
|
enable(env.DEBUG || "");
|
|
289
289
|
//#endregion
|
|
290
|
-
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.28.6_@typescript+native-preview@7.0.0-dev.20260605.
|
|
290
|
+
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.28.6_@typescript+native-preview@7.0.0-dev.20260605.1_@volar+types_969a2c93bc9b761d4191bb0e75b7732a/node_modules/rolldown-plugin-dts/dist/require-BbBF8Ii0.mjs
|
|
291
291
|
const require = createRequire(import.meta.url);
|
|
292
292
|
const debug = createDebug("rolldown-plugin-dts:utils");
|
|
293
293
|
function tryRequire(moduleName) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as createDebug, r as requireTSApi } from "./require-BbBF8Ii0-
|
|
1
|
+
import { a as createDebug, r as requireTSApi } from "./require-BbBF8Ii0-S6Y65RhW.js";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.28.6_@typescript+native-preview@7.0.0-dev.20260605.
|
|
3
|
+
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.28.6_@typescript+native-preview@7.0.0-dev.20260605.1_@volar+types_969a2c93bc9b761d4191bb0e75b7732a/node_modules/rolldown-plugin-dts/dist/resolver-DE0_sy8o.mjs
|
|
4
4
|
const debug = createDebug("rolldown-plugin-dts:tsc-resolver");
|
|
5
5
|
const ts = requireTSApi();
|
|
6
6
|
function tscResolve(id, importer, cwd, tsconfig, tsconfigRaw, reference) {
|
package/dist/tsdown/run.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { u as styleText$1 } from "./style-DiMP8pYv-DIC5PXeH.js";
|
|
3
|
-
import { c as globalLogger, n as version, t as enableDebug } from "./debug-CpC4hV25-
|
|
3
|
+
import { c as globalLogger, n as version, t as enableDebug } from "./debug-CpC4hV25-D_60QWpz.js";
|
|
4
4
|
import { n as x } from "./main-CyNcZUzu.js";
|
|
5
5
|
import module from "node:module";
|
|
6
6
|
import process$1 from "node:process";
|
|
@@ -623,7 +623,7 @@ var CAC = class extends EventTarget {
|
|
|
623
623
|
*/
|
|
624
624
|
const cac = (name = "") => new CAC(name);
|
|
625
625
|
//#endregion
|
|
626
|
-
//#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@
|
|
626
|
+
//#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_246e1a6b42eb96ae418f743999fb07f3/node_modules/tsdown/dist/run.mjs
|
|
627
627
|
const cli = cac("tsdown");
|
|
628
628
|
cli.help().version(version);
|
|
629
629
|
cli.command("[...files]", "Bundle files", {
|
|
@@ -632,7 +632,7 @@ cli.command("[...files]", "Bundle files", {
|
|
|
632
632
|
}).option("-c, --config <filename>", "Use a custom config file").option("--config-loader <loader>", "Config loader to use: auto, native, tsx, unrun", { default: "auto" }).option("--no-config", "Disable config file").option("-f, --format <format>", "Bundle format: esm, cjs, iife, umd", { default: "esm" }).option("--clean", "Clean output directory, --no-clean to disable").option("--deps.never-bundle <module>", "Mark dependencies as external").option("--minify", "Minify output").option("--devtools", "Enable devtools integration").option("--debug [feat]", "Show debug logs").option("--target <target>", "Bundle target, e.g \"es2015\", \"esnext\"").option("-l, --logLevel <level>", "Set log level: info, warn, error, silent").option("--fail-on-warn", "Fail on warnings", { default: true }).option("--no-write", "Disable writing files to disk, incompatible with watch mode").option("-d, --out-dir <dir>", "Output directory", { default: "dist" }).option("--treeshake", "Tree-shake bundle", { default: true }).option("--sourcemap", "Generate source map", { default: false }).option("--shims", "Enable cjs and esm shims ", { default: false }).option("--platform <platform>", "Target platform", { default: "node" }).option("--dts", "Generate dts files").option("--publint", "Enable publint", { default: false }).option("--attw", "Enable Are the types wrong integration", { default: false }).option("--unused", "Enable unused dependencies check", { default: false }).option("-w, --watch [path]", "Watch mode").option("--ignore-watch <path>", "Ignore custom paths in watch mode").option("--from-vite [vitest]", "Reuse config from Vite or Vitest").option("--report", "Size report", { default: true }).option("--env.* <value>", "Define compile-time env variables").option("--env-file <file>", "Load environment variables from a file, when used together with --env, variables in --env take precedence").option("--env-prefix <prefix>", "Prefix for env variables to inject into the bundle", { default: "TSDOWN_" }).option("--on-success <command>", "Command to run on success").option("--copy <dir>", "Copy files to output dir").option("--tsconfig <tsconfig>", "Set tsconfig path").option("--unbundle", "Unbundle mode").option("--root <dir>", "Root directory of input files").option("--exe", "Bundle as executable").option("-W, --workspace [dir]", "Enable workspace mode").option("--concurrency <count>", "Maximum number of Rolldown builds to run in parallel").option("-F, --filter <pattern>", "Filter configs (cwd or name), e.g. /pkg-name$/ or pkg-name").option("--exports", "Generate package exports for package.json").action(async (input, flags) => {
|
|
633
633
|
globalLogger.level = flags.logLevel || "info";
|
|
634
634
|
globalLogger.info(`${styleText$1.blue(`tsdown v${version}`)} powered by ${styleText$1["#ff7e17,yellow"](`rolldown v${VERSION}`)}`);
|
|
635
|
-
const { build } = await import("./build-JVmLFaZt-
|
|
635
|
+
const { build } = await import("./build-JVmLFaZt-k6Y-YuG9.js").then((n) => n.r).then((n) => n.r);
|
|
636
636
|
if (input.length > 0) flags.entry = input;
|
|
637
637
|
await build(flags);
|
|
638
638
|
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { d as toArray, r as importWithError, s as resolveComma, u as styleText$1 } from "./style-DiMP8pYv-DIC5PXeH.js";
|
|
2
2
|
import { n as x, r as createDebug } from "./main-CyNcZUzu.js";
|
|
3
|
-
import { a as GREATER_LESS_THAN, c as LOOSE_PLAIN, d as compareParsed, f as formatComparableVersion, g as tryParse, h as safeRegex, i as FULL_PLAIN, l as XRANGE_PLAIN, m as parse$1, n as normalize$1, o as LONE_CARET, p as isGreaterOrEqual, r as BUILD, s as LONE_TILDE, u as XRANGE_PLAIN_LOOSE, v as RE_DTS } from "./version-CQ98ZBpL-
|
|
3
|
+
import { a as GREATER_LESS_THAN, c as LOOSE_PLAIN, d as compareParsed, f as formatComparableVersion, g as tryParse, h as safeRegex, i as FULL_PLAIN, l as XRANGE_PLAIN, m as parse$1, n as normalize$1, o as LONE_CARET, p as isGreaterOrEqual, r as BUILD, s as LONE_TILDE, u as XRANGE_PLAIN_LOOSE, v as RE_DTS } from "./version-CQ98ZBpL-CKvh-HCu.js";
|
|
4
4
|
import process from "node:process";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { access, cp, mkdir, mkdtemp, rm, stat, writeFile } from "node:fs/promises";
|
|
7
7
|
import { tmpdir } from "node:os";
|
|
8
|
-
//#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@
|
|
8
|
+
//#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_246e1a6b42eb96ae418f743999fb07f3/node_modules/tsdown/dist/format-DLxyxnif.mjs
|
|
9
9
|
function fsExists(path) {
|
|
10
10
|
return access(path).then(() => true, () => false);
|
|
11
11
|
}
|
|
@@ -290,7 +290,7 @@ function findMinimumForRange(range, options = {}) {
|
|
|
290
290
|
return minimum && testParsedRange(parsedRange, minimum) ? minimum : null;
|
|
291
291
|
}
|
|
292
292
|
//#endregion
|
|
293
|
-
//#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@
|
|
293
|
+
//#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_246e1a6b42eb96ae418f743999fb07f3/node_modules/tsdown/dist/target-DgdLrXba.mjs
|
|
294
294
|
const NODE_SEA_MIN_VERSION = "25.7.0";
|
|
295
295
|
const NODE_SEA_MIN_VERSION_PARSED = {
|
|
296
296
|
major: 25,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { v as RE_DTS, y as RE_DTS_MAP } from "./version-CQ98ZBpL-
|
|
2
|
-
import { a as createDebug, r as requireTSApi } from "./require-BbBF8Ii0-
|
|
3
|
-
import { t as globalContext } from "./dist-
|
|
1
|
+
import { v as RE_DTS, y as RE_DTS_MAP } from "./version-CQ98ZBpL-CKvh-HCu.js";
|
|
2
|
+
import { a as createDebug, r as requireTSApi } from "./require-BbBF8Ii0-S6Y65RhW.js";
|
|
3
|
+
import { t as globalContext } from "./dist-DquISSoY.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
6
|
-
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.28.6_@typescript+native-preview@7.0.0-dev.20260605.
|
|
6
|
+
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.28.6_@typescript+native-preview@7.0.0-dev.20260605.1_@volar+types_969a2c93bc9b761d4191bb0e75b7732a/node_modules/rolldown-plugin-dts/dist/tsc-CJA_TTZv.mjs
|
|
7
7
|
const debug$3 = createDebug("rolldown-plugin-dts:tsc-system");
|
|
8
8
|
const ts$3 = requireTSApi();
|
|
9
9
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as __toESM } from "./rolldown-runtime-B4iAMlE-.js";
|
|
2
2
|
import { d as toArray, r as importWithError, s as resolveComma } from "./style-DiMP8pYv-DIC5PXeH.js";
|
|
3
|
-
import { n as expandBaselineTarget } from "./target-DgdLrXba-
|
|
3
|
+
import { n as expandBaselineTarget } from "./target-DgdLrXba-BygiKCU8.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
6
6
|
import { readFileSync } from "node:fs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as x, r as createDebug } from "./main-CyNcZUzu.js";
|
|
2
|
-
import { g as tryParse, n as normalize$1, p as isGreaterOrEqual } from "./version-CQ98ZBpL-
|
|
2
|
+
import { g as tryParse, n as normalize$1, p as isGreaterOrEqual } from "./version-CQ98ZBpL-CKvh-HCu.js";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import process from "node:process";
|
|
5
5
|
import { styleText } from "node:util";
|
|
@@ -10,7 +10,7 @@ import { createReadStream, createWriteStream } from "node:fs";
|
|
|
10
10
|
import { access, chmod, mkdir, rename, rm } from "node:fs/promises";
|
|
11
11
|
import os from "node:os";
|
|
12
12
|
import { createHash } from "node:crypto";
|
|
13
|
-
//#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@
|
|
13
|
+
//#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_7b08cc352732b21e77c25829520d559f/node_modules/tsdown/dist/format-DLxyxnif.mjs
|
|
14
14
|
function fsExists(path) {
|
|
15
15
|
return access(path).then(() => true, () => false);
|
|
16
16
|
}
|
|
@@ -37,7 +37,7 @@ const factory = (...formats) => new Proxy(styleText.bind(void 0, formats), { get
|
|
|
37
37
|
} });
|
|
38
38
|
factory();
|
|
39
39
|
//#endregion
|
|
40
|
-
//#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@
|
|
40
|
+
//#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_7b08cc352732b21e77c25829520d559f/node_modules/tsdown/dist/target-DgdLrXba.mjs
|
|
41
41
|
const NODE_SEA_MIN_VERSION = "25.7.0";
|
|
42
42
|
const NODE_SEA_MIN_VERSION_PARSED = {
|
|
43
43
|
major: 25,
|