@voidzero-dev/vite-plus-core 0.1.20-alpha.0 → 0.1.20-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) 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-Cyywno42.js} +59 -53
  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-CaWgsVeS.js} +13 -13
  32. package/dist/tsdown/{dist-D_AJtdxQ.js → dist-CbhZqEsp.js} +3 -3
  33. package/dist/tsdown/{dist-DSi2MWPQ.js → dist-DL4hnQY2.js} +1 -1
  34. package/dist/tsdown/index-types.d.ts +277 -20353
  35. package/dist/tsdown/index.js +4 -4
  36. package/dist/tsdown/{main-BsfiKQP8.js → main-DZy5NlsL.js} +4 -4
  37. package/dist/tsdown/npm_entry_picomatch.cjs +6 -0
  38. package/dist/tsdown/run.js +3 -3
  39. package/dist/vite/client/client.mjs +17 -15
  40. package/dist/vite/node/chunks/dist.js +1 -1
  41. package/dist/vite/node/chunks/dist2.js +13 -0
  42. package/dist/vite/node/chunks/logger.js +1 -1
  43. package/dist/vite/node/chunks/node.js +475 -435
  44. package/dist/vite/node/index.d.ts +3 -3
  45. package/dist/vite/node/module-runner.d.ts +1 -1
  46. package/dist/vite/node/module-runner.js +2 -2
  47. package/package.json +10 -10
  48. /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,8 +1,8 @@
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
- import "./dist-D_AJtdxQ.js";
5
+ import "./dist-CbhZqEsp.js";
6
6
  import module$1, { builtinModules, createRequire, isBuiltin } from "node:module";
7
7
  import process$1, { env } from "node:process";
8
8
  import readline from "node:readline";
@@ -11,7 +11,7 @@ import path, { dirname, isAbsolute, join, parse, resolve } from "node:path";
11
11
  import { VERSION, build, watch } from "@voidzero-dev/vite-plus-core/rolldown";
12
12
  import { access, chmod, cp, mkdir, mkdtemp, readFile, readdir, rm, stat, writeFile } from "node:fs/promises";
13
13
  import { and, id, importerId, include } from "@voidzero-dev/vite-plus-core/rolldown/filter";
14
- import re, { existsSync, readFileSync, writeFileSync } from "node:fs";
14
+ import fs$1, { existsSync, readFileSync, writeFileSync } from "node:fs";
15
15
  import * as nativeFs from "fs";
16
16
  import { readdir as readdir$1, readdirSync, realpath, realpathSync, stat as stat$1, statSync } from "fs";
17
17
  import { basename, dirname as dirname$1, isAbsolute as isAbsolute$1, normalize as normalize$1, posix, relative, resolve as resolve$1, sep } from "path";
@@ -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
  }
@@ -3202,87 +3208,87 @@ quansync$1({
3202
3208
  */
3203
3209
  const quansync = quansync$1;
3204
3210
  quansync$1({
3205
- sync: re.readFileSync,
3206
- async: re.promises.readFile
3211
+ sync: fs$1.readFileSync,
3212
+ async: fs$1.promises.readFile
3207
3213
  });
3208
3214
  quansync$1({
3209
- sync: re.writeFileSync,
3210
- async: re.promises.writeFile
3215
+ sync: fs$1.writeFileSync,
3216
+ async: fs$1.promises.writeFile
3211
3217
  });
3212
3218
  quansync$1({
3213
- sync: re.unlinkSync,
3214
- async: re.promises.unlink
3219
+ sync: fs$1.unlinkSync,
3220
+ async: fs$1.promises.unlink
3215
3221
  });
3216
3222
  quansync$1({
3217
- sync: re.accessSync,
3218
- async: re.promises.access
3223
+ sync: fs$1.accessSync,
3224
+ async: fs$1.promises.access
3219
3225
  });
3220
3226
  /**
3221
3227
  * @link https://nodejs.org/api/fs.html#fspromisesstatpath-options
3222
3228
  */
3223
3229
  const stat$2 = quansync$1({
3224
- sync: re.statSync,
3225
- async: re.promises.stat
3230
+ sync: fs$1.statSync,
3231
+ async: fs$1.promises.stat
3226
3232
  });
3227
3233
  const lstat = quansync$1({
3228
- sync: re.lstatSync,
3229
- async: re.promises.lstat
3234
+ sync: fs$1.lstatSync,
3235
+ async: fs$1.promises.lstat
3230
3236
  });
3231
3237
  quansync$1({
3232
- sync: re.copyFileSync,
3233
- async: re.promises.copyFile
3238
+ sync: fs$1.copyFileSync,
3239
+ async: fs$1.promises.copyFile
3234
3240
  });
3235
3241
  quansync$1({
3236
- sync: re.rmSync,
3237
- async: re.promises.rm
3242
+ sync: fs$1.rmSync,
3243
+ async: fs$1.promises.rm
3238
3244
  });
3239
3245
  quansync$1({
3240
- sync: re.mkdirSync,
3241
- async: re.promises.mkdir
3246
+ sync: fs$1.mkdirSync,
3247
+ async: fs$1.promises.mkdir
3242
3248
  });
3243
3249
  quansync$1({
3244
- sync: re.renameSync,
3245
- async: re.promises.rename
3250
+ sync: fs$1.renameSync,
3251
+ async: fs$1.promises.rename
3246
3252
  });
3247
3253
  quansync$1({
3248
- sync: re.readdirSync,
3249
- async: re.promises.readdir
3254
+ sync: fs$1.readdirSync,
3255
+ async: fs$1.promises.readdir
3250
3256
  });
3251
3257
  quansync$1({
3252
- sync: re.realpathSync,
3253
- async: re.promises.realpath
3258
+ sync: fs$1.realpathSync,
3259
+ async: fs$1.promises.realpath
3254
3260
  });
3255
3261
  quansync$1({
3256
- sync: re.readlinkSync,
3257
- async: re.promises.readlink
3262
+ sync: fs$1.readlinkSync,
3263
+ async: fs$1.promises.readlink
3258
3264
  });
3259
3265
  quansync$1({
3260
- sync: re.symlinkSync,
3261
- async: re.promises.symlink
3266
+ sync: fs$1.symlinkSync,
3267
+ async: fs$1.promises.symlink
3262
3268
  });
3263
3269
  quansync$1({
3264
- sync: re.chownSync,
3265
- async: re.promises.chown
3270
+ sync: fs$1.chownSync,
3271
+ async: fs$1.promises.chown
3266
3272
  });
3267
3273
  quansync$1({
3268
- sync: re.lchownSync,
3269
- async: re.promises.lchown
3274
+ sync: fs$1.lchownSync,
3275
+ async: fs$1.promises.lchown
3270
3276
  });
3271
3277
  quansync$1({
3272
- sync: re.chmodSync,
3273
- async: re.promises.chmod
3278
+ sync: fs$1.chmodSync,
3279
+ async: fs$1.promises.chmod
3274
3280
  });
3275
3281
  quansync$1({
3276
- sync: re.utimesSync,
3277
- async: re.promises.utimes
3282
+ sync: fs$1.utimesSync,
3283
+ async: fs$1.promises.utimes
3278
3284
  });
3279
3285
  quansync$1({
3280
- sync: re.lutimesSync,
3281
- async: re.promises.lutimes
3286
+ sync: fs$1.lutimesSync,
3287
+ async: fs$1.promises.lutimes
3282
3288
  });
3283
3289
  quansync$1({
3284
- sync: re.mkdtempSync,
3285
- async: re.promises.mkdtemp
3290
+ sync: fs$1.mkdtempSync,
3291
+ async: fs$1.promises.mkdtemp
3286
3292
  });
3287
3293
  //#endregion
3288
3294
  //#region ../../node_modules/.pnpm/unconfig-core@7.5.0/node_modules/unconfig-core/dist/index.mjs
@@ -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-CaWgsVeS.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}`);
@@ -5044,7 +5050,7 @@ async function resolveInputOptions(config, format, configDeps, bundle, cjsDts, i
5044
5050
  if (nodeProtocol) plugins.push(NodeProtocolPlugin(nodeProtocol));
5045
5051
  if (config.pkg || config.deps.skipNodeModulesBundle) plugins.push(DepsPlugin(config, bundle));
5046
5052
  if (dts) {
5047
- const { dts: dtsPlugin } = await import("./dist-DSi2MWPQ.js");
5053
+ const { dts: dtsPlugin } = await import("./dist-DL4hnQY2.js");
5048
5054
  const { cjsReexport: _, ...dtsPluginOptions } = dts;
5049
5055
  const options = {
5050
5056
  tsconfig,
@@ -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",
@@ -3,12 +3,12 @@ import process from "node:process";
3
3
  import "node:child_process";
4
4
  import path from "node:path";
5
5
  import { rolldown } from "@voidzero-dev/vite-plus-core/rolldown";
6
- import re, { existsSync } from "node:fs";
6
+ import fs, { existsSync } from "node:fs";
7
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
  */
@@ -54,7 +54,7 @@ function resolveOptions(options = {}) {
54
54
  inputOptions: options.inputOptions,
55
55
  outputOptions: options.outputOptions
56
56
  };
57
- if (!re.existsSync(resolvedOptions.path)) throw new Error(`[unrun] File not found: ${resolvedOptions.path}`);
57
+ if (!fs.existsSync(resolvedOptions.path)) throw new Error(`[unrun] File not found: ${resolvedOptions.path}`);
58
58
  if (!new Set([
59
59
  "none",
60
60
  "jiti",
@@ -268,7 +268,7 @@ function createJsonLoader() {
268
268
  let isRequire = false;
269
269
  try {
270
270
  if (importer) {
271
- const src = re.readFileSync(importer, "utf8");
271
+ const src = fs.readFileSync(importer, "utf8");
272
272
  const escaped = source.replaceAll(/[.*+?^${}()|[\]\\]/g, (m) => `\\${m}`);
273
273
  const pattern = String.raw`\brequire\s*\(\s*['"]${escaped}['"]\s*\)`;
274
274
  isRequire = new RegExp(pattern).test(src);
@@ -281,7 +281,7 @@ function createJsonLoader() {
281
281
  handler(id) {
282
282
  try {
283
283
  const realId = id.replace(/\?unrun-json\.(?:mjs|cjs)$/, "");
284
- const src = re.readFileSync(realId, "utf8");
284
+ const src = fs.readFileSync(realId, "utf8");
285
285
  const data = JSON.parse(src);
286
286
  const jsonLiteral = JSON.stringify(data);
287
287
  if (id.endsWith("?unrun-json.cjs")) return { code: `const __data = ${jsonLiteral}\ntry { Object.defineProperty(__data, 'default', { value: __data, enumerable: false, configurable: true }) } catch {}\nmodule.exports = __data\n` };
@@ -375,7 +375,7 @@ function createRequireResolveFix(options) {
375
375
  ".cjs"
376
376
  ]) {
377
377
  const testPath = path.resolve(baseDir, id + ext);
378
- if (re.existsSync(testPath)) return JSON.stringify(testPath);
378
+ if (fs.existsSync(testPath)) return JSON.stringify(testPath);
379
379
  }
380
380
  const resolvedPath = path.resolve(baseDir, id);
381
381
  return JSON.stringify(resolvedPath);
@@ -416,7 +416,7 @@ function createSourceContextShimsPlugin() {
416
416
  const normalizedPhysicalId = path.normalize(physicalId);
417
417
  let code;
418
418
  try {
419
- code = re.readFileSync(normalizedPhysicalId, "utf8");
419
+ code = fs.readFileSync(normalizedPhysicalId, "utf8");
420
420
  } catch {
421
421
  return null;
422
422
  }
@@ -658,7 +658,7 @@ function cleanModule(moduleUrl, options) {
658
658
  try {
659
659
  if (moduleUrl.startsWith("file://")) {
660
660
  const filePath = new URL(moduleUrl);
661
- re.unlinkSync(filePath);
661
+ fs.unlinkSync(filePath);
662
662
  }
663
663
  } catch (error) {
664
664
  if (error.code !== "ENOENT") throw error;
@@ -682,14 +682,14 @@ function writeModule(code, options) {
682
682
  const projectNodeModules = path.join(process.cwd(), "node_modules");
683
683
  const outDir = path.join(projectNodeModules, ".unrun");
684
684
  const outFile = path.join(outDir, fname);
685
- if (!re.existsSync(outFile)) try {
686
- re.mkdirSync(outDir, { recursive: true });
687
- re.writeFileSync(outFile, code, "utf8");
685
+ if (!fs.existsSync(outFile)) try {
686
+ fs.mkdirSync(outDir, { recursive: true });
687
+ fs.writeFileSync(outFile, code, "utf8");
688
688
  } catch {
689
689
  const fallbackDir = path.join(tmpdir(), "unrun-cache");
690
690
  const fallbackFile = path.join(fallbackDir, fname);
691
- re.mkdirSync(fallbackDir, { recursive: true });
692
- re.writeFileSync(fallbackFile, code, "utf8");
691
+ fs.mkdirSync(fallbackDir, { recursive: true });
692
+ fs.writeFileSync(fallbackFile, code, "utf8");
693
693
  moduleUrl = pathToFileURL(fallbackFile).href;
694
694
  }
695
695
  moduleUrl = moduleUrl || pathToFileURL(outFile).href;