@voidzero-dev/vite-plus-core 0.1.20-alpha.1 → 0.1.20-alpha.3

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.
Files changed (46) hide show
  1. package/LICENSE +23 -538
  2. package/dist/rolldown/cli.mjs +6 -6
  3. package/dist/rolldown/config.d.mts +1 -1
  4. package/dist/rolldown/config.mjs +2 -2
  5. package/dist/rolldown/experimental-index.d.mts +2 -2
  6. package/dist/rolldown/experimental-index.mjs +8 -8
  7. package/dist/rolldown/filter-index.d.mts +1 -1
  8. package/dist/rolldown/index.d.mts +1 -1
  9. package/dist/rolldown/index.mjs +4 -4
  10. package/dist/rolldown/parallel-plugin-worker.mjs +2 -2
  11. package/dist/rolldown/parallel-plugin.d.mts +1 -1
  12. package/dist/rolldown/parse-ast-index.mjs +1 -1
  13. package/dist/rolldown/plugins-index.d.mts +2 -2
  14. package/dist/rolldown/plugins-index.mjs +2 -2
  15. package/dist/rolldown/shared/{bindingify-input-options-CQLSwbb0.mjs → bindingify-input-options-CwT4BXgL.mjs} +4 -4
  16. package/dist/rolldown/shared/{constructors-Dzji6NUq.mjs → constructors-C2EWPKW3.mjs} +1 -1
  17. package/dist/rolldown/shared/{constructors-C29s6i8O.d.mts → constructors-D0W3rNfA.d.mts} +1 -1
  18. package/dist/rolldown/shared/{define-config-DmrIgjVV.d.mts → define-config-5HJ1b9vG.d.mts} +14 -1
  19. package/dist/rolldown/shared/{error-DAA7ncC5.mjs → error-DL-e8-oE.mjs} +1 -1
  20. package/dist/rolldown/shared/{load-config-DKK5aKL7.mjs → load-config-DJUKhe3_.mjs} +1 -1
  21. package/dist/rolldown/shared/{normalize-string-or-regex-E9GT23QI.mjs → normalize-string-or-regex-CbQQ69gT.mjs} +1 -1
  22. package/dist/rolldown/shared/{parse-C4SGmMNT.mjs → parse-BG8jtBbb.mjs} +1 -1
  23. package/dist/rolldown/shared/{resolve-tsconfig-BVTabsge.mjs → resolve-tsconfig-CfYpGzid.mjs} +2 -2
  24. package/dist/rolldown/shared/{rolldown-DN-NFVZl.mjs → rolldown-DLFt25hZ.mjs} +1 -1
  25. package/dist/rolldown/shared/{rolldown-build-B-H35squ.mjs → rolldown-build-DrXmg2RO.mjs} +4 -4
  26. package/dist/rolldown/shared/{watch-DKEzXLor.mjs → watch-MZrSsVh8.mjs} +4 -4
  27. package/dist/rolldown/utils-index.mjs +2 -2
  28. package/dist/tsdown/{build-OX8uszs6-4hNTeOrB.js → build-CgGnBlCD-C-xp9dZ4.js} +16 -10
  29. package/dist/tsdown/{debug-CLlnG64L-CuCVzZmG.js → debug-CLlnG64L-Dn9UYJ-T.js} +2 -2
  30. package/dist/tsdown/{detect-DN3DXXYt-DtgPLlRO.js → detect-DN3DXXYt-VBvyr4oU.js} +1 -1
  31. package/dist/tsdown/{dist-CrrE8ZBn.js → dist-DJhmrSLH.js} +1 -1
  32. package/dist/tsdown/index-types.d.ts +277 -20353
  33. package/dist/tsdown/index.js +4 -4
  34. package/dist/tsdown/{main-BsfiKQP8.js → main-DZy5NlsL.js} +4 -4
  35. package/dist/tsdown/npm_entry_picomatch.cjs +6 -0
  36. package/dist/tsdown/run.js +3 -3
  37. package/dist/vite/client/client.mjs +17 -15
  38. package/dist/vite/node/chunks/dist.js +1 -1
  39. package/dist/vite/node/chunks/dist2.js +13 -0
  40. package/dist/vite/node/chunks/logger.js +1 -1
  41. package/dist/vite/node/chunks/node.js +475 -435
  42. package/dist/vite/node/index.d.ts +3 -3
  43. package/dist/vite/node/module-runner.d.ts +1 -1
  44. package/dist/vite/node/module-runner.js +2 -2
  45. package/package.json +10 -10
  46. /package/dist/rolldown/shared/{binding-DI_PGVIh.mjs → binding-BeU_1iEk.mjs} +0 -0
@@ -1,11 +1,11 @@
1
- import { n as __toESM, t as require_binding } from "./shared/binding-DI_PGVIh.mjs";
2
- import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-E9GT23QI.mjs";
3
- import { o as transformToRollupOutput } from "./shared/bindingify-input-options-CQLSwbb0.mjs";
4
- import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-B-H35squ.mjs";
5
- import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-DAA7ncC5.mjs";
6
- import { n as parseSync$1, t as parse$1 } from "./shared/parse-C4SGmMNT.mjs";
7
- import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, m as viteWebWorkerPostPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWasmFallbackPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-Dzji6NUq.mjs";
8
- import { a as minify$1, i as transformSync$1, n as resolveTsconfig, o as minifySync$1, r as transform$1, t as TsconfigCache$1 } from "./shared/resolve-tsconfig-BVTabsge.mjs";
1
+ import { n as __toESM, t as require_binding } from "./shared/binding-BeU_1iEk.mjs";
2
+ import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-CbQQ69gT.mjs";
3
+ import { o as transformToRollupOutput } from "./shared/bindingify-input-options-CwT4BXgL.mjs";
4
+ import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-DrXmg2RO.mjs";
5
+ import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-DL-e8-oE.mjs";
6
+ import { n as parseSync$1, t as parse$1 } from "./shared/parse-BG8jtBbb.mjs";
7
+ import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, m as viteWebWorkerPostPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWasmFallbackPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-C2EWPKW3.mjs";
8
+ import { a as minify$1, i as transformSync$1, n as resolveTsconfig, o as minifySync$1, r as transform$1, t as TsconfigCache$1 } from "./shared/resolve-tsconfig-CfYpGzid.mjs";
9
9
  import { pathToFileURL } from "node:url";
10
10
  //#region src/api/dev/dev-engine.ts
11
11
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
@@ -1,4 +1,4 @@
1
- import { M as withFilter } from "./shared/define-config-DmrIgjVV.mjs";
1
+ import { M as withFilter } from "./shared/define-config-5HJ1b9vG.mjs";
2
2
 
3
3
  //#region ../pluginutils/dist/filter/composable-filters.d.ts
4
4
  type StringOrRegExp = string | RegExp;
@@ -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
2
  import { z as PreRenderedChunk } from "./shared/binding-zH1vcmbM.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-DmrIgjVV.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-5HJ1b9vG.mjs";
4
4
  export { AddonFunction, AdvancedChunksGroup, AdvancedChunksOptions, AsyncPluginHooks, BufferEncoding, BuildOptions, BundleError, ChecksOptions, ChunkFileNamesFunction, ChunkingContext, CodeSplittingGroup, CodeSplittingNameFunction, CodeSplittingOptions, CommentsOptions, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedChunk, EmittedFile, EmittedPrebuiltChunk, ExistingRawSourceMap, ExternalOption, ExternalOptionFunction, FunctionPluginHooks, GeneralHookFilter, GeneratedCodeOptions, GeneratedCodePreset, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OptimizationOptions, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PluginContextResolveOptions, PreRenderedAsset, PreRenderedChunk, RUNTIME_MODULE_ID, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownDirectoryEntry, RolldownError, RolldownError as RollupError, RolldownFileStats, RolldownFsModule, RolldownLog, RolldownLog as RollupLog, RolldownLogWithString, RolldownLogWithString as RollupLogWithString, RolldownMagicString, RolldownOptions, RolldownOptionsFunction, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RolldownWatcherWatcherEventMap, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformOptions, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherFileWatcherOptions, WatcherOptions, build, defineConfig, rolldown, watch };
@@ -1,7 +1,7 @@
1
- import { n as __toESM, t as require_binding } from "./shared/binding-DI_PGVIh.mjs";
2
- import { n as onExit, t as watch } from "./shared/watch-DKEzXLor.mjs";
3
- import { a as RolldownMagicString, b as RUNTIME_MODULE_ID, x as VERSION } from "./shared/bindingify-input-options-CQLSwbb0.mjs";
4
- import { t as rolldown } from "./shared/rolldown-DN-NFVZl.mjs";
1
+ import { n as __toESM, t as require_binding } from "./shared/binding-BeU_1iEk.mjs";
2
+ import { n as onExit, t as watch } from "./shared/watch-MZrSsVh8.mjs";
3
+ import { a as RolldownMagicString, b as RUNTIME_MODULE_ID, x as VERSION } from "./shared/bindingify-input-options-CwT4BXgL.mjs";
4
+ import { t as rolldown } from "./shared/rolldown-DLFt25hZ.mjs";
5
5
  import { t as defineConfig } from "./shared/define-config-DJOr6Iwt.mjs";
6
6
  import { isMainThread } from "node:worker_threads";
7
7
  //#region src/setup.ts
@@ -1,5 +1,5 @@
1
- import { n as __toESM, t as require_binding } from "./shared/binding-DI_PGVIh.mjs";
2
- import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-CQLSwbb0.mjs";
1
+ import { n as __toESM, t as require_binding } from "./shared/binding-BeU_1iEk.mjs";
2
+ import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-CwT4BXgL.mjs";
3
3
  import { parentPort, workerData } from "node:worker_threads";
4
4
  //#region src/parallel-plugin-worker.ts
5
5
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
@@ -1,4 +1,4 @@
1
- import { w as Plugin, zt as MaybePromise } from "./shared/define-config-DmrIgjVV.mjs";
1
+ import { w as Plugin, zt as MaybePromise } from "./shared/define-config-5HJ1b9vG.mjs";
2
2
 
3
3
  //#region src/plugin/parallel-plugin-implementation.d.ts
4
4
  type ParallelPluginImplementation = Plugin;
@@ -1,5 +1,5 @@
1
1
  import { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from "./shared/logs-D80CXhvg.mjs";
2
- import { n as parseSync, t as parse } from "./shared/parse-C4SGmMNT.mjs";
2
+ import { n as parseSync, t as parse } from "./shared/parse-BG8jtBbb.mjs";
3
3
  //#region src/parse-ast-index.ts
4
4
  function wrap(result, filename, sourceText) {
5
5
  if (result.errors.length > 0) return normalizeParseError(filename, sourceText, result.errors);
@@ -1,6 +1,6 @@
1
1
  import { m as BindingReplacePluginConfig } from "./shared/binding-zH1vcmbM.mjs";
2
- import { N as BuiltinPlugin } from "./shared/define-config-DmrIgjVV.mjs";
3
- import { t as esmExternalRequirePlugin } from "./shared/constructors-C29s6i8O.mjs";
2
+ import { N as BuiltinPlugin } from "./shared/define-config-5HJ1b9vG.mjs";
3
+ import { t as esmExternalRequirePlugin } from "./shared/constructors-D0W3rNfA.mjs";
4
4
 
5
5
  //#region src/builtin-plugin/replace-plugin.d.ts
6
6
  /**
@@ -1,5 +1,5 @@
1
- import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-E9GT23QI.mjs";
2
- import { t as esmExternalRequirePlugin } from "./shared/constructors-Dzji6NUq.mjs";
1
+ import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-CbQQ69gT.mjs";
2
+ import { t as esmExternalRequirePlugin } from "./shared/constructors-C2EWPKW3.mjs";
3
3
  //#region src/builtin-plugin/replace-plugin.ts
4
4
  /**
5
5
  * Replaces targeted strings in files while bundling.
@@ -1,8 +1,8 @@
1
- import { n as __toESM, t as require_binding } from "./binding-DI_PGVIh.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-BeU_1iEk.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-E9GT23QI.mjs";
3
+ import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-CbQQ69gT.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-DAA7ncC5.mjs";
5
+ import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-DL-e8-oE.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.126.0/helpers/decorate.js
220
+ //#region \0@oxc-project+runtime@0.127.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);
@@ -1,4 +1,4 @@
1
- import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-E9GT23QI.mjs";
1
+ import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-CbQQ69gT.mjs";
2
2
  //#region src/builtin-plugin/constructors.ts
3
3
  function viteModulePreloadPolyfillPlugin(config) {
4
4
  return new BuiltinPlugin("builtin:vite-module-preload-polyfill", config);
@@ -1,5 +1,5 @@
1
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-zH1vcmbM.mjs";
2
- import { N as BuiltinPlugin, Vt as StringOrRegExp } from "./define-config-DmrIgjVV.mjs";
2
+ import { N as BuiltinPlugin, Vt as StringOrRegExp } from "./define-config-5HJ1b9vG.mjs";
3
3
 
4
4
  //#region src/builtin-plugin/constructors.d.ts
5
5
  declare function viteModulePreloadPolyfillPlugin(config?: BindingViteModulePreloadPolyfillPluginConfig): BuiltinPlugin;
@@ -152,8 +152,21 @@ interface SourceMap {
152
152
  }
153
153
  /** @category Plugin APIs */
154
154
  interface RenderedModule {
155
+ /**
156
+ * The rendered code of this module.
157
+ *
158
+ * The unused variables and functions are removed.
159
+ */
155
160
  readonly code: string | null;
161
+ /**
162
+ * The length of the rendered code of this module.
163
+ */
156
164
  renderedLength: number;
165
+ /**
166
+ * The list of exported names from this module.
167
+ *
168
+ * The names that are not used are not included.
169
+ */
157
170
  renderedExports: string[];
158
171
  }
159
172
  /**
@@ -2481,7 +2494,7 @@ interface ExistingRawSourceMap {
2481
2494
  mappings: string;
2482
2495
  names?: string[];
2483
2496
  sources?: (string | null)[];
2484
- sourcesContent?: (string | null)[];
2497
+ sourcesContent?: (string | null | undefined)[];
2485
2498
  sourceRoot?: string;
2486
2499
  version?: number;
2487
2500
  x_google_ignoreList?: number[];
@@ -1,4 +1,4 @@
1
- import { t as require_binding } from "./binding-DI_PGVIh.mjs";
1
+ import { t as require_binding } from "./binding-BeU_1iEk.mjs";
2
2
  //#region src/types/sourcemap.ts
3
3
  function bindingifySourcemap(map) {
4
4
  if (map == null) return;
@@ -1,4 +1,4 @@
1
- import { t as rolldown } from "./rolldown-DN-NFVZl.mjs";
1
+ import { t as rolldown } from "./rolldown-DLFt25hZ.mjs";
2
2
  import fs from "node:fs";
3
3
  import path from "node:path";
4
4
  import { readdir } from "node:fs/promises";
@@ -1,4 +1,4 @@
1
- import { n as __toESM, t as require_binding } from "./binding-DI_PGVIh.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-BeU_1iEk.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-DI_PGVIh.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-BeU_1iEk.mjs";
2
2
  //#region ../../../node_modules/.pnpm/oxc-parser@0.127.0/node_modules/oxc-parser/src-js/wrap.js
3
3
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
4
4
  function wrap(result) {
@@ -1,5 +1,5 @@
1
- import { n as __toESM, t as require_binding } from "./binding-DI_PGVIh.mjs";
2
- import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-DAA7ncC5.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-BeU_1iEk.mjs";
2
+ import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-DL-e8-oE.mjs";
3
3
  //#region src/utils/minify.ts
4
4
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-B-H35squ.mjs";
1
+ import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-DrXmg2RO.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-DI_PGVIh.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-BeU_1iEk.mjs";
2
2
  import { i as logInputHookInOutputPlugin, n as error } from "./logs-D80CXhvg.mjs";
3
- import { n as BuiltinPlugin } from "./normalize-string-or-regex-E9GT23QI.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-CQLSwbb0.mjs";
3
+ import { n as BuiltinPlugin } from "./normalize-string-or-regex-CbQQ69gT.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-CwT4BXgL.mjs";
5
5
  import { i as unimplemented } from "./misc-DJYbNKZX.mjs";
6
- import { i as unwrapBindingResult } from "./error-DAA7ncC5.mjs";
6
+ import { i as unwrapBindingResult } from "./error-DL-e8-oE.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,9 +1,9 @@
1
- import { n as __toESM, t as require_binding } from "./binding-DI_PGVIh.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-BeU_1iEk.mjs";
2
2
  import { o as logMultipleWatcherOption } from "./logs-D80CXhvg.mjs";
3
- import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-CQLSwbb0.mjs";
3
+ import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-CwT4BXgL.mjs";
4
4
  import { t as arraify } from "./misc-DJYbNKZX.mjs";
5
- import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-B-H35squ.mjs";
6
- import { t as aggregateBindingErrorsIntoJsError } from "./error-DAA7ncC5.mjs";
5
+ import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-DrXmg2RO.mjs";
6
+ import { t as aggregateBindingErrorsIntoJsError } from "./error-DL-e8-oE.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 { n as parseSync, t as parse } from "./shared/parse-C4SGmMNT.mjs";
2
- import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-BVTabsge.mjs";
1
+ import { n as parseSync, t as parse } from "./shared/parse-BG8jtBbb.mjs";
2
+ import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-CfYpGzid.mjs";
3
3
  //#region ../../../node_modules/.pnpm/oxc-parser@0.127.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
4
4
  function walkNode(node, visitors) {
5
5
  if (node == null) return;
@@ -1,5 +1,5 @@
1
1
  import { n as __exportAll$1, r as __toESM, t as __commonJSMin } from "./chunk-N93fKeF6.js";
2
- import { C as promiseWithResolvers, D as toArray, E as slash, S as pkgExists, T as resolveRegex, _ as yellow, a as createLogger, b as matchPattern, c as globalLogger, d as bold, f as dim, g as underline, h as red, i as LogLevels, l as prettyFormat, n as W, o as generateColor, p as green, r as version, s as getNameLabel, t as U, u as blue, v as debounce, w as resolveComma, x as noop, y as importWithError } from "./main-BsfiKQP8.js";
2
+ import { C as promiseWithResolvers, D as toArray, E as slash, S as pkgExists, T as resolveRegex, _ as yellow, a as createLogger, b as matchPattern, c as globalLogger, d as bold, f as dim, g as underline, h as red, i as LogLevels, l as prettyFormat, n as W, o as generateColor, p as green, r as version, s as getNameLabel, t as U, u as blue, v as debounce, w as resolveComma, x as noop, y as importWithError } from "./main-DZy5NlsL.js";
3
3
  import { t as createDebug } from "./node-B3Gdtau1.js";
4
4
  import { d as filename_js_to_dts, i as RE_JS, n as RE_DTS, o as RE_NODE_MODULES$1, t as RE_CSS } from "./filename-DQnUJlio-DHPB7cQg.js";
5
5
  import "./dist-D_AJtdxQ.js";
@@ -23,7 +23,7 @@ import { AsyncLocalStorage } from "node:async_hooks";
23
23
  import { Buffer } from "node:buffer";
24
24
  import { brotliCompress, gzip } from "node:zlib";
25
25
  import { importGlobPlugin } from "@voidzero-dev/vite-plus-core/rolldown/experimental";
26
- //#region ../../node_modules/.pnpm/tsdown@0.21.9_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.9_@tsdown+exe@0.21.9_@type_52058320c0a42ed3e52f8161aa9d656f/node_modules/tsdown/dist/fs-Dd6Htx2P.mjs
26
+ //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_43eb91aec0ed7105f0ebbe65dd74eb9a/node_modules/tsdown/dist/fs-Dd6Htx2P.mjs
27
27
  function fsExists(path) {
28
28
  return access(path).then(() => true, () => false);
29
29
  }
@@ -66,7 +66,7 @@ function stripExtname(filePath) {
66
66
  return filePath.slice(0, -ext.length);
67
67
  }
68
68
  //#endregion
69
- //#region ../../node_modules/.pnpm/tsdown@0.21.9_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.9_@tsdown+exe@0.21.9_@type_52058320c0a42ed3e52f8161aa9d656f/node_modules/tsdown/dist/format-CajNSstg.mjs
69
+ //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_43eb91aec0ed7105f0ebbe65dd74eb9a/node_modules/tsdown/dist/format-CajNSstg.mjs
70
70
  const shimFile = path.resolve(import.meta.dirname, "..", "esm-shims.js");
71
71
  function getShimsInject(format, platform) {
72
72
  if (format === "es" && platform === "node") return {
@@ -976,6 +976,9 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
976
976
  CHAR_UNDERSCORE: 95,
977
977
  CHAR_VERTICAL_LINE: 124,
978
978
  CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
979
+ /**
980
+ * Create EXTGLOB_CHARS
981
+ */
979
982
  extglobChars(chars) {
980
983
  return {
981
984
  "!": {
@@ -1005,6 +1008,9 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1005
1008
  }
1006
1009
  };
1007
1010
  },
1011
+ /**
1012
+ * Create GLOB_CHARS
1013
+ */
1008
1014
  globChars(win32) {
1009
1015
  return win32 === true ? WINDOWS_CHARS : POSIX_CHARS;
1010
1016
  }
@@ -3361,7 +3367,7 @@ function createConfigCoreLoader(options) {
3361
3367
  };
3362
3368
  }
3363
3369
  //#endregion
3364
- //#region ../../node_modules/.pnpm/tsdown@0.21.9_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.9_@tsdown+exe@0.21.9_@type_52058320c0a42ed3e52f8161aa9d656f/node_modules/tsdown/dist/options-8hmVMssn.mjs
3370
+ //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_43eb91aec0ed7105f0ebbe65dd74eb9a/node_modules/tsdown/dist/options-8hmVMssn.mjs
3365
3371
  const __cjs_require$1 = createRequire(import.meta.url);
3366
3372
  const picomatch = __cjs_require$1("./npm_entry_picomatch.cjs");
3367
3373
  const satisfies$1 = __cjs_require$1("./npm_entry_semver_functions_satisfies.cjs");
@@ -4007,7 +4013,7 @@ async function nativeImport(id) {
4007
4013
  return [mod.default || mod, deps];
4008
4014
  }
4009
4015
  async function unrunImport(id) {
4010
- const { unrun } = await import("./dist-CrrE8ZBn.js");
4016
+ const { unrun } = await import("./dist-DJhmrSLH.js");
4011
4017
  const { module, dependencies } = await unrun({ path: pathToFileURL(id).href });
4012
4018
  return [module, new Set(dependencies)];
4013
4019
  }
@@ -4216,7 +4222,7 @@ function filterConfig(filter, configCwd, name) {
4216
4222
  return toArray(filter).some((value) => name && name === value || cwd === value);
4217
4223
  }
4218
4224
  //#endregion
4219
- //#region ../../node_modules/.pnpm/tsdown@0.21.9_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.9_@tsdown+exe@0.21.9_@type_52058320c0a42ed3e52f8161aa9d656f/node_modules/tsdown/dist/watch-D6EGzM6P.mjs
4225
+ //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_43eb91aec0ed7105f0ebbe65dd74eb9a/node_modules/tsdown/dist/watch-D6EGzM6P.mjs
4220
4226
  async function copy(options) {
4221
4227
  if (!options.copy) return;
4222
4228
  const resolved = await resolveCopyEntries(options);
@@ -4596,8 +4602,8 @@ var Hookable = class {
4596
4602
  }
4597
4603
  };
4598
4604
  //#endregion
4599
- //#region ../../node_modules/.pnpm/tsdown@0.21.9_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.9_@tsdown+exe@0.21.9_@type_52058320c0a42ed3e52f8161aa9d656f/node_modules/tsdown/dist/build-OX8uszs6.mjs
4600
- var build_OX8uszs6_exports = /* @__PURE__ */ __exportAll$1({
4605
+ //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_43eb91aec0ed7105f0ebbe65dd74eb9a/node_modules/tsdown/dist/build-CgGnBlCD.mjs
4606
+ var build_CgGnBlCD_exports = /* @__PURE__ */ __exportAll$1({
4601
4607
  n: () => buildWithConfigs,
4602
4608
  r: () => build_exports,
4603
4609
  t: () => build$1
@@ -4908,7 +4914,7 @@ async function bundleDone(bundleByPkg, bundle) {
4908
4914
  async function packTarball(packageJsonPath) {
4909
4915
  const pkgDir = path.dirname(packageJsonPath);
4910
4916
  const destination = await mkdtemp(path.join(tmpdir(), "tsdown-pack-"));
4911
- const { detect } = await import("./detect-DN3DXXYt-DtgPLlRO.js");
4917
+ const { detect } = await import("./detect-DN3DXXYt-VBvyr4oU.js");
4912
4918
  try {
4913
4919
  const detected = await detect({ cwd: pkgDir });
4914
4920
  if (detected?.name === "deno") throw new Error(`Cannot pack tarball for Deno projects at ${pkgDir}`);
@@ -5397,4 +5403,4 @@ async function buildSingle(config, configDeps, isDualFormat, clean, restart, don
5397
5403
  }
5398
5404
  }
5399
5405
  //#endregion
5400
- export { resolveUserConfig as a, mergeConfig as i, buildWithConfigs as n, build_OX8uszs6_exports as r, build$1 as t };
5406
+ export { resolveUserConfig as a, mergeConfig as i, buildWithConfigs as n, build_CgGnBlCD_exports as r, build$1 as t };
@@ -1,6 +1,6 @@
1
- import { D as toArray, w as resolveComma } from "./main-BsfiKQP8.js";
1
+ import { D as toArray, w as resolveComma } from "./main-DZy5NlsL.js";
2
2
  import { n as enable, r as namespaces, t as createDebug } from "./node-B3Gdtau1.js";
3
- //#region ../../node_modules/.pnpm/tsdown@0.21.9_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.9_@tsdown+exe@0.21.9_@type_52058320c0a42ed3e52f8161aa9d656f/node_modules/tsdown/dist/debug-CLlnG64L.mjs
3
+ //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_43eb91aec0ed7105f0ebbe65dd74eb9a/node_modules/tsdown/dist/debug-CLlnG64L.mjs
4
4
  const debugLog = createDebug("tsdown:debug");
5
5
  function enableDebug(debug) {
6
6
  if (!debug) return;
@@ -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.21.9_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.9_@tsdown+exe@0.21.9_@type_52058320c0a42ed3e52f8161aa9d656f/node_modules/tsdown/dist/detect-DN3DXXYt.mjs
4
+ //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_43eb91aec0ed7105f0ebbe65dd74eb9a/node_modules/tsdown/dist/detect-DN3DXXYt.mjs
5
5
  const AGENTS = [
6
6
  "npm",
7
7
  "yarn",
@@ -8,7 +8,7 @@ import { tmpdir } from "node:os";
8
8
  import { fileURLToPath, pathToFileURL } from "node:url";
9
9
  import { Buffer } from "node:buffer";
10
10
  import crypto from "node:crypto";
11
- //#region ../../node_modules/.pnpm/unrun@0.2.36/node_modules/unrun/dist/src-GU5PtktT.mjs
11
+ //#region ../../node_modules/.pnpm/unrun@0.2.37/node_modules/unrun/dist/src-GU5PtktT.mjs
12
12
  /**
13
13
  * Applies preset-specific handling to the loaded module.
14
14
  */