@voidzero-dev/vite-plus-core 0.2.8 → 0.2.9

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 (58) hide show
  1. package/LICENSE +30 -1
  2. package/dist/rolldown/cli.mjs +14 -10
  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/binding-CKyeQZen.mjs +673 -0
  16. package/dist/rolldown/shared/{bindingify-input-options-B03y7DfJ.mjs → bindingify-input-options-44iPAymO.mjs} +6 -10
  17. package/dist/rolldown/shared/{constructors-COwFYQna.mjs → constructors-6Zc-JFd7.mjs} +1 -1
  18. package/dist/rolldown/shared/{constructors-ALilxAii.d.mts → constructors-XaIbWpwJ.d.mts} +1 -1
  19. package/dist/rolldown/shared/{create-bundler-option-B-tSTZRt.mjs → create-bundler-option-e1FU0w0P.mjs} +3 -3
  20. package/dist/rolldown/shared/{define-config-DSMNXceb.d.mts → define-config-DVsXPNaU.d.mts} +0 -4
  21. package/dist/rolldown/shared/{error-nLggAzpQ.mjs → error-BzLGqhSQ.mjs} +1 -1
  22. package/dist/rolldown/shared/{load-config-O4G7NVNA.mjs → load-config-C6QXSnoS.mjs} +1 -1
  23. package/dist/rolldown/shared/{normalize-string-or-regex-Cj-DgIV1.mjs → normalize-string-or-regex-DYjJ67tj.mjs} +1 -1
  24. package/dist/rolldown/shared/{parse-CQfUbVuN.mjs → parse-uDDyc1el.mjs} +2 -2
  25. package/dist/rolldown/shared/{resolve-tsconfig-CE3HNSOK.mjs → resolve-tsconfig-Bcd82vVT.mjs} +2 -2
  26. package/dist/rolldown/shared/{rolldown-qV_fUwyM.mjs → rolldown-CCbQNGZt.mjs} +4 -4
  27. package/dist/rolldown/shared/{watch-BNIsji74.mjs → watch-vuOCmvFs.mjs} +5 -5
  28. package/dist/rolldown/utils-index.d.mts +1 -1
  29. package/dist/rolldown/utils-index.mjs +15 -13
  30. package/dist/tsdown/{build-D_enfyvD-X5SFXZZc.js → build-D_enfyvD-Dg1eKRD4.js} +20 -16
  31. package/dist/tsdown/{debug-CKcBYQLP-avlAPNcV.js → debug-CKcBYQLP-C3NhYhrk.js} +3 -3
  32. package/dist/tsdown/{detect-DGhJGEqb-CGd2brAW.js → detect-DGhJGEqb-6CTf16BW.js} +1 -1
  33. package/dist/tsdown/{dist-BZO8q3c0.js → dist-DyXLnzyh.js} +4 -4
  34. package/dist/tsdown/index-types.d.ts +3 -3
  35. package/dist/tsdown/index.js +4 -4
  36. package/dist/tsdown/internal-DKworeK4.js +3 -0
  37. package/dist/tsdown/{main-Jz_9T-KA.js → main-DiierkER.js} +210 -196
  38. package/dist/tsdown/npm_entry_picomatch.cjs +10 -6
  39. package/dist/tsdown/npm_entry_tree-kill.cjs +4 -2
  40. package/dist/tsdown/{resolver-cwLsPb2o-BqQjnCbF.js → resolver-cwLsPb2o-Dk4xdAGE.js} +2 -2
  41. package/dist/tsdown/run.js +6 -6
  42. package/dist/tsdown/{src-D5keKqGd.js → src-drVPfX63.js} +1 -1
  43. package/dist/tsdown/{target-Bab3CUeB-CERZYTwS.js → target-Bab3CUeB-DQ0pKhCv.js} +5 -5
  44. package/dist/tsdown/{tsc-DmzrnJwy.js → tsc-JnMl2z7d.js} +3 -3
  45. package/dist/tsdown/tsdown-css.js +4 -4
  46. package/dist/tsdown/tsdown-exe.js +4 -4
  47. package/dist/vite/client/bundledDevClient.mjs +330 -14
  48. package/dist/vite/client/client.mjs +20 -14
  49. package/dist/vite/node/chunks/build.js +51 -45
  50. package/dist/vite/node/chunks/dist.js +36 -29
  51. package/dist/vite/node/chunks/dist2.js +193 -149
  52. package/dist/vite/node/chunks/node.js +931 -793
  53. package/dist/vite/node/chunks/postcss-import.js +10 -9
  54. package/dist/vite/node/index.d.ts +7 -5
  55. package/dist/vite/node/module-runner.js +23 -17
  56. package/package.json +26 -20
  57. package/dist/rolldown/shared/binding-DwUQWZOo.mjs +0 -662
  58. package/dist/tsdown/internal-DyaNxVWW.js +0 -3
@@ -1,8 +1,8 @@
1
- import { n as __toESM, t as require_binding } from "./binding-DwUQWZOo.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-CKyeQZen.mjs";
2
2
  import { i as logFailedValidation, l as logPluginError, n as error, o as logInvalidLogPosition, r as logCycleLoading, t as augmentCodeLocation } from "./logs-DmYCAKcW.mjs";
3
- import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-Cj-DgIV1.mjs";
3
+ import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-DYjJ67tj.mjs";
4
4
  import { i as noop, n as isPathFragment, o as unreachable, s as unsupported, t as arraify } from "./misc-DOSKtd97.mjs";
5
- import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-nLggAzpQ.mjs";
5
+ import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-BzLGqhSQ.mjs";
6
6
  import { parseAst } from "../parse-ast-index.mjs";
7
7
  import fs from "node:fs";
8
8
  import path from "node:path";
@@ -10,7 +10,7 @@ import * as filter from "@voidzero-dev/vite-plus-core/rolldown/pluginutils";
10
10
  import fsp from "node:fs/promises";
11
11
  import { fileURLToPath } from "node:url";
12
12
  //#region package.json
13
- var version = "1.2.2";
13
+ var version = "1.2.3";
14
14
  var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
15
15
  //#endregion
16
16
  //#region src/constants/version.ts
@@ -236,7 +236,7 @@ function bindingAssetSource(source) {
236
236
  return { inner: source };
237
237
  }
238
238
  //#endregion
239
- //#region \0@oxc-project+runtime@0.142.0/helpers/esm/decorate.js
239
+ //#region \0@oxc-project+runtime@0.143.0/helpers/esm/decorate.js
240
240
  function __decorate(decorators, target, key, desc) {
241
241
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
242
242
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -2342,11 +2342,7 @@ function bindingifyInput(input) {
2342
2342
  }
2343
2343
  function bindingifyWatch(watch) {
2344
2344
  if (watch) {
2345
- if (watch.notify) console.warn("The \"watch.notify\" option is deprecated. Please use \"watch.watcher\" instead.");
2346
- const watcher = {
2347
- ...watch.notify,
2348
- ...watch.watcher
2349
- };
2345
+ const watcher = watch.watcher ?? {};
2350
2346
  return {
2351
2347
  buildDelay: watch.buildDelay,
2352
2348
  skipWrite: watch.skipWrite,
@@ -1,4 +1,4 @@
1
- import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-Cj-DgIV1.mjs";
1
+ import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-DYjJ67tj.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 { C as BindingViteJsonPluginConfig, D as BindingViteReporterPluginConfig, E as BindingViteReactRefreshWrapperPluginConfig, O as BindingViteResolvePluginConfig, S as BindingViteImportGlobPluginConfig, T as BindingViteModulePreloadPolyfillPluginConfig, b as BindingViteBuildImportAnalysisPluginConfig, l as BindingIsolatedDeclarationPluginConfig, s as BindingEsmExternalRequirePluginConfig, x as BindingViteDynamicImportVarsPluginConfig } from "./binding-CVtkJvyl.mjs";
2
- import { Gt as StringOrRegExp, I as BuiltinPlugin } from "./define-config-DSMNXceb.mjs";
2
+ import { Gt as StringOrRegExp, I as BuiltinPlugin } from "./define-config-DVsXPNaU.mjs";
3
3
  //#region src/builtin-plugin/constructors.d.ts
4
4
  declare function viteModulePreloadPolyfillPlugin(config?: BindingViteModulePreloadPolyfillPluginConfig): BuiltinPlugin;
5
5
  type DynamicImportVarsPluginConfig = Omit<BindingViteDynamicImportVarsPluginConfig, "include" | "exclude"> & {
@@ -1,7 +1,7 @@
1
- import { n as __toESM, t as require_binding } from "./binding-DwUQWZOo.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-CKyeQZen.mjs";
2
2
  import { a as logInputHookInOutputPlugin, n as error } from "./logs-DmYCAKcW.mjs";
3
- import { n as BuiltinPlugin } from "./normalize-string-or-regex-Cj-DgIV1.mjs";
4
- import { C as LOG_LEVEL_WARN, T as VERSION, _ as getParallelPluginInfo, a as measureIfFunction, b as LOG_LEVEL_DEBUG, c as PluginContextData, d as transformRenderedChunk, g as MinimalPluginContextImpl, i as measureHookCost, l as transformModuleInfo, o as pluginTimingsRecorderFor, p as transformAssetSource, r as OUTPUT_OPTIONS_OWNER, t as bindingifyInputOptions, v as normalizeHook, w as logLevelPriority, y as normalizeLog } from "./bindingify-input-options-B03y7DfJ.mjs";
3
+ import { n as BuiltinPlugin } from "./normalize-string-or-regex-DYjJ67tj.mjs";
4
+ import { C as LOG_LEVEL_WARN, T as VERSION, _ as getParallelPluginInfo, a as measureIfFunction, b as LOG_LEVEL_DEBUG, c as PluginContextData, d as transformRenderedChunk, g as MinimalPluginContextImpl, i as measureHookCost, l as transformModuleInfo, o as pluginTimingsRecorderFor, p as transformAssetSource, r as OUTPUT_OPTIONS_OWNER, t as bindingifyInputOptions, v as normalizeHook, w as logLevelPriority, y as normalizeLog } from "./bindingify-input-options-44iPAymO.mjs";
5
5
  import { a as unimplemented } from "./misc-DOSKtd97.mjs";
6
6
  import { Worker } from "node:worker_threads";
7
7
  import path, { sep } from "node:path";
@@ -3376,10 +3376,6 @@ interface WatcherOptions {
3376
3376
  * File watcher options for configuring how file changes are detected.
3377
3377
  */
3378
3378
  watcher?: WatcherFileWatcherOptions;
3379
- /**
3380
- * @deprecated Use {@linkcode watcher} instead.
3381
- */
3382
- notify?: WatcherFileWatcherOptions;
3383
3379
  /**
3384
3380
  * Filter to limit the file-watching to certain files.
3385
3381
  *
@@ -1,4 +1,4 @@
1
- import { t as require_binding } from "./binding-DwUQWZOo.mjs";
1
+ import { t as require_binding } from "./binding-CKyeQZen.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-qV_fUwyM.mjs";
1
+ import { t as rolldown } from "./rolldown-CCbQNGZt.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-DwUQWZOo.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-CKyeQZen.mjs";
2
2
  import { l as logPluginError, n as error } from "./logs-DmYCAKcW.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-DwUQWZOo.mjs";
2
- //#region ../../../node_modules/.pnpm/oxc-parser@0.142.0/node_modules/oxc-parser/src-js/wrap.js
1
+ import { n as __toESM, t as require_binding } from "./binding-CKyeQZen.mjs";
2
+ //#region ../../../node_modules/.pnpm/oxc-parser@0.143.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;
@@ -1,5 +1,5 @@
1
- import { n as __toESM, t as require_binding } from "./binding-DwUQWZOo.mjs";
2
- import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-nLggAzpQ.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-CKyeQZen.mjs";
2
+ import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-BzLGqhSQ.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-DwUQWZOo.mjs";
2
- import { f as __decorate, h as PlainObjectLike, m as lazyProp, u as transformToRollupOutput } from "./bindingify-input-options-B03y7DfJ.mjs";
3
- import { l as PluginDriver, s as validateOption, t as createBundlerOptions } from "./create-bundler-option-B-tSTZRt.mjs";
4
- import { i as unwrapBindingResult } from "./error-nLggAzpQ.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-CKyeQZen.mjs";
2
+ import { f as __decorate, h as PlainObjectLike, m as lazyProp, u as transformToRollupOutput } from "./bindingify-input-options-44iPAymO.mjs";
3
+ import { l as PluginDriver, s as validateOption, t as createBundlerOptions } from "./create-bundler-option-e1FU0w0P.mjs";
4
+ import { i as unwrapBindingResult } from "./error-BzLGqhSQ.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,9 +1,9 @@
1
- import { n as __toESM, t as require_binding } from "./binding-DwUQWZOo.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-CKyeQZen.mjs";
2
2
  import { s as logMultipleWatcherOption } from "./logs-DmYCAKcW.mjs";
3
- import { C as LOG_LEVEL_WARN } from "./bindingify-input-options-B03y7DfJ.mjs";
3
+ import { C as LOG_LEVEL_WARN } from "./bindingify-input-options-44iPAymO.mjs";
4
4
  import { t as arraify } from "./misc-DOSKtd97.mjs";
5
- import { l as PluginDriver, t as createBundlerOptions } from "./create-bundler-option-B-tSTZRt.mjs";
6
- import { t as aggregateBindingErrorsIntoJsError } from "./error-nLggAzpQ.mjs";
5
+ import { l as PluginDriver, t as createBundlerOptions } from "./create-bundler-option-e1FU0w0P.mjs";
6
+ import { t as aggregateBindingErrorsIntoJsError } from "./error-BzLGqhSQ.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.
@@ -327,7 +327,7 @@ function warnMultiplePollingOptions(bundlerOptions) {
327
327
  let found = false;
328
328
  for (const option of bundlerOptions) {
329
329
  const watch = option.inputOptions.watch;
330
- const watcher = watch && typeof watch === "object" ? watch.watcher ?? watch.notify : void 0;
330
+ const watcher = watch && typeof watch === "object" ? watch.watcher : void 0;
331
331
  if (watcher && (watcher.usePolling != null || watcher.pollInterval != null)) {
332
332
  if (found) {
333
333
  option.onLog(LOG_LEVEL_WARN, logMultipleWatcherOption());
@@ -2,7 +2,7 @@ import { _ as BindingTsconfigCompilerOptions, v as BindingTsconfigRawOptions } f
2
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-WmU_cI8e.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.142.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
5
+ //#region ../../../node_modules/.pnpm/oxc-parser@0.143.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-CQfUbVuN.mjs";
2
- import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-CE3HNSOK.mjs";
3
- //#region ../../../node_modules/.pnpm/oxc-parser@0.142.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
1
+ import { n as parseSync, t as parse } from "./shared/parse-uDDyc1el.mjs";
2
+ import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-Bcd82vVT.mjs";
3
+ //#region ../../../node_modules/.pnpm/oxc-parser@0.143.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.142.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
2011
+ //#region ../../../node_modules/.pnpm/oxc-parser@0.143.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.142.0/node_modules/oxc-parser/src-js/visit/visitor.js
2181
+ //#region ../../../node_modules/.pnpm/oxc-parser@0.143.0/node_modules/oxc-parser/src-js/visit/visitor.js
2182
2182
  let compiledVisitor;
2183
2183
  function createCompiledVisitor() {
2184
2184
  compiledVisitor = [];
@@ -2241,14 +2241,16 @@ function addVisitorToCompiled(visitor) {
2241
2241
  const typeId = NODE_TYPE_IDS_MAP.get(name);
2242
2242
  if (typeId === void 0) throw new Error(`Unknown node type '${name}' in visitor object`);
2243
2243
  const existing = compiledVisitor[typeId];
2244
- if (typeId < 27) if (existing === null) compiledVisitor[typeId] = visitFn;
2245
- else if (Array.isArray(existing)) if (isExit) existing.push(visitFn);
2246
- else existing.splice(existing.length - 1, 0, visitFn);
2247
- else {
2248
- compiledVisitor[typeId] = isExit ? createVisitFnArray(existing, visitFn) : createVisitFnArray(visitFn, existing);
2249
- mergedLeafVisitorTypeIds.push(typeId);
2250
- }
2251
- else if (existing === null) {
2244
+ if (typeId < 27) {
2245
+ if (existing === null) compiledVisitor[typeId] = visitFn;
2246
+ else if (Array.isArray(existing)) {
2247
+ if (isExit) existing.push(visitFn);
2248
+ else existing.splice(existing.length - 1, 0, visitFn);
2249
+ } else {
2250
+ compiledVisitor[typeId] = isExit ? createVisitFnArray(existing, visitFn) : createVisitFnArray(visitFn, existing);
2251
+ mergedLeafVisitorTypeIds.push(typeId);
2252
+ }
2253
+ } else if (existing === null) {
2252
2254
  const enterExit = compiledVisitor[typeId] = getEnterExitObject();
2253
2255
  if (isExit) enterExit.exit = visitFn;
2254
2256
  else enterExit.enter = visitFn;
@@ -1,6 +1,6 @@
1
- import { A as __toESM, C as resolveComma, D as __commonJSMin, E as toArray, O as __exportAll$1, S as pkgExists, T as slash, _ as createConcurrencyExecutor, b as matchPattern, c as blue, d as green, g as yellow, h as underline, l as bold, n as z, r as createDebug, t as R, u as dim, v as debounce, w as resolveRegex, x as noop, y as importWithError } from "./main-Jz_9T-KA.js";
2
- 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-CKcBYQLP-avlAPNcV.js";
3
- import { A as fsStat, D as fsCopy, E as formatBytes, M as stripExtname, O as fsExists, S as filename_js_to_dts, a as resolveTarget, d as satisfies, g as RE_JS, j as lowestCommonAncestor, k as fsRemove, m as RE_DTS, o as validateSea, p as RE_CSS, r as buildExe, s as coerce, u as parseRange, v as RE_NODE_MODULES$1 } from "./target-Bab3CUeB-CERZYTwS.js";
1
+ import { A as __toESM, C as resolveComma, D as __commonJSMin, E as toArray, O as __exportAll$1, S as pkgExists, T as slash, _ as createConcurrencyExecutor, b as matchPattern, c as blue, d as green, g as yellow, h as underline, l as bold, n as x, r as createDebug, t as exec, u as dim, v as debounce, w as resolveRegex, x as noop, y as importWithError } from "./main-DiierkER.js";
2
+ 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-CKcBYQLP-C3NhYhrk.js";
3
+ import { A as fsStat, D as fsCopy, E as formatBytes, M as stripExtname, O as fsExists, S as filename_js_to_dts, a as resolveTarget, d as satisfies, g as RE_JS, j as lowestCommonAncestor, k as fsRemove, m as RE_DTS, o as validateSea, p as RE_CSS, r as buildExe, s as coerce, u as parseRange, v as RE_NODE_MODULES$1 } from "./target-Bab3CUeB-DQ0pKhCv.js";
4
4
  import { n as ee } from "./dist-CMKwGGNp.js";
5
5
  import module$1, { builtinModules, createRequire, isBuiltin } from "node:module";
6
6
  import process$1 from "node:process";
@@ -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.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/deps-B_uZzM4C.mjs
26
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_8361ec2a4d03114085b1954a2fc42e35/node_modules/tsdown/dist/deps-B_uZzM4C.mjs
27
27
  const shimFile = path.resolve(import.meta.dirname, "..", "esm-shims.js");
28
28
  const shimsInject = {
29
29
  __dirname: [shimFile, "__dirname"],
@@ -1776,10 +1776,12 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1776
1776
  }
1777
1777
  return esc ? m : `\\${m}`;
1778
1778
  });
1779
- if (backslashes === true) if (opts.unescape === true) output = output.replace(/\\/g, "");
1780
- else output = output.replace(/\\+/g, (m) => {
1781
- return m.length % 2 === 0 ? "\\\\" : m ? "\\" : "";
1782
- });
1779
+ if (backslashes === true) {
1780
+ if (opts.unescape === true) output = output.replace(/\\/g, "");
1781
+ else output = output.replace(/\\+/g, (m) => {
1782
+ return m.length % 2 === 0 ? "\\\\" : m ? "\\" : "";
1783
+ });
1784
+ }
1783
1785
  if (output === input && opts.contains === true) {
1784
1786
  state.output = input;
1785
1787
  return state;
@@ -2550,8 +2552,10 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2550
2552
  output = format ? format(input) : input;
2551
2553
  match = output === glob;
2552
2554
  }
2553
- if (match === false || opts.capture === true) if (opts.matchBase === true || opts.basename === true) match = picomatch.matchBase(input, regex, options, posix);
2554
- else match = regex.exec(output);
2555
+ if (match === false || opts.capture === true) {
2556
+ if (opts.matchBase === true || opts.basename === true) match = picomatch.matchBase(input, regex, options, posix);
2557
+ else match = regex.exec(output);
2558
+ }
2555
2559
  return {
2556
2560
  isMatch: Boolean(match),
2557
2561
  match,
@@ -4183,7 +4187,7 @@ function filterConfig(filter, configCwd, name) {
4183
4187
  return toArray(filter).some((value) => name && name === value || cwd === value);
4184
4188
  }
4185
4189
  //#endregion
4186
- //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/watch-DOMHXvCH.mjs
4190
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_8361ec2a4d03114085b1954a2fc42e35/node_modules/tsdown/dist/watch-DOMHXvCH.mjs
4187
4191
  async function copy(options) {
4188
4192
  if (!options.copy) return;
4189
4193
  const resolved = await resolveCopyEntries(options);
@@ -4563,7 +4567,7 @@ var Hookable = class {
4563
4567
  }
4564
4568
  };
4565
4569
  //#endregion
4566
- //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/build-D_enfyvD.mjs
4570
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_8361ec2a4d03114085b1954a2fc42e35/node_modules/tsdown/dist/build-D_enfyvD.mjs
4567
4571
  var build_D_enfyvD_exports = /* @__PURE__ */ __exportAll$1({
4568
4572
  n: () => buildWithConfigs,
4569
4573
  r: () => build_exports,
@@ -4697,7 +4701,7 @@ function executeOnSuccess(config) {
4697
4701
  if (!config.onSuccess) return;
4698
4702
  const ab = new AbortController();
4699
4703
  if (typeof config.onSuccess === "string") {
4700
- const p = z(config.onSuccess, [], { nodeOptions: {
4704
+ const p = exec(config.onSuccess, [], { nodeOptions: {
4701
4705
  shell: true,
4702
4706
  stdio: "inherit",
4703
4707
  cwd: config.cwd
@@ -4878,7 +4882,7 @@ async function bundleDone(bundleByPkg, bundle) {
4878
4882
  async function packTarball(packageJsonPath) {
4879
4883
  const pkgDir = path.dirname(packageJsonPath);
4880
4884
  const destination = await mkdtemp(path.join(tmpdir(), "tsdown-pack-"));
4881
- const { detect } = await import("./detect-DGhJGEqb-CGd2brAW.js");
4885
+ const { detect } = await import("./detect-DGhJGEqb-6CTf16BW.js");
4882
4886
  try {
4883
4887
  const detected = await detect({ cwd: pkgDir });
4884
4888
  debug$1("Detected package manager: %o", detected);
@@ -4949,7 +4953,7 @@ async function pack(dir, pm, destination, ignoreScripts) {
4949
4953
  args.push("--ignore-scripts");
4950
4954
  break;
4951
4955
  }
4952
- const output = await R(command, args, {
4956
+ const output = await x(command, args, {
4953
4957
  nodePath: false,
4954
4958
  nodeOptions: { cwd: dir }
4955
4959
  });
@@ -5023,7 +5027,7 @@ async function resolveInputOptions(config, format, configDeps, bundle, cjsDts, i
5023
5027
  if (nodeProtocol) plugins.push(NodeProtocolPlugin(nodeProtocol));
5024
5028
  if (config.pkg || config.deps.skipNodeModulesBundle || config.deps.neverBundle === true || config.deps.dts.neverBundle === true) plugins.push(DepsPlugin(config, bundle));
5025
5029
  if (dts) {
5026
- const { dts: dtsPlugin } = await import("./dist-BZO8q3c0.js");
5030
+ const { dts: dtsPlugin } = await import("./dist-DyXLnzyh.js");
5027
5031
  const { cjsReexport: _, ...dtsPluginOptions } = dts;
5028
5032
  const options = {
5029
5033
  tsconfig,
@@ -1,7 +1,7 @@
1
- import { C as resolveComma, E as toArray, a as namespaces, c as blue, d as green, g as yellow, i as enable, m as rgb, o as bgRed, r as createDebug, s as bgYellow, x as noop, l as bold, p as red } from "./main-Jz_9T-KA.js";
1
+ import { C as resolveComma, E as toArray, a as namespaces, c as blue, d as green, g as yellow, i as enable, m as rgb, o as bgRed, r as createDebug, s as bgYellow, x as noop, l as bold, p as red } from "./main-DiierkER.js";
2
2
  import process from "node:process";
3
3
  import readline from "node:readline";
4
- //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/logger-Das7E2bJ.mjs
4
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_8361ec2a4d03114085b1954a2fc42e35/node_modules/tsdown/dist/logger-Das7E2bJ.mjs
5
5
  const LogLevels = {
6
6
  silent: 0,
7
7
  error: 1,
@@ -140,7 +140,7 @@ function hue2rgb(p, q, t) {
140
140
  return p;
141
141
  }
142
142
  //#endregion
143
- //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/debug-CKcBYQLP.mjs
143
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_8361ec2a4d03114085b1954a2fc42e35/node_modules/tsdown/dist/debug-CKcBYQLP.mjs
144
144
  var version = "0.22.14";
145
145
  const debugLog = createDebug("tsdown:debug");
146
146
  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.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/detect-DGhJGEqb.mjs
4
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_8361ec2a4d03114085b1954a2fc42e35/node_modules/tsdown/dist/detect-DGhJGEqb.mjs
5
5
  const AGENTS = [
6
6
  "npm",
7
7
  "yarn",
@@ -1,5 +1,5 @@
1
- import { r as createDebug } from "./main-Jz_9T-KA.js";
2
- import { C as filename_to_dts, S as filename_js_to_dts, T as resolveTemplateFn, _ as RE_JSON, b as RE_TS, g as RE_JS, h as RE_DTS_MAP, m as RE_DTS, p as RE_CSS, v as RE_NODE_MODULES, w as replaceTemplateName, x as filename_dts_to, y as RE_ROLLDOWN_RUNTIME } from "./target-Bab3CUeB-CERZYTwS.js";
1
+ import { r as createDebug } from "./main-DiierkER.js";
2
+ import { C as filename_to_dts, S as filename_js_to_dts, T as resolveTemplateFn, _ as RE_JSON, b as RE_TS, g as RE_JS, h as RE_DTS_MAP, m as RE_DTS, p as RE_CSS, v as RE_NODE_MODULES, w as replaceTemplateName, x as filename_dts_to, y as RE_ROLLDOWN_RUNTIME } from "./target-Bab3CUeB-DQ0pKhCv.js";
3
3
  import { n as ee, t as at } from "./dist-CMKwGGNp.js";
4
4
  import { createRequire } from "node:module";
5
5
  import process from "node:process";
@@ -1365,7 +1365,7 @@ function createGeneratePlugin({ generator, entry, tsconfig, tsconfigRaw, build,
1365
1365
  if (generator === "tsgo") tsgoContext = await runTsgo(logger, rootDir, tsconfig, sourcemap, tsgo.path);
1366
1366
  else if (generator === "tsc") if (parallel) tscWorker = createTscWorker();
1367
1367
  else {
1368
- tscModule = await import("./tsc-DmzrnJwy.js");
1368
+ tscModule = await import("./tsc-JnMl2z7d.js");
1369
1369
  if (newContext) tscContext = createContext();
1370
1370
  }
1371
1371
  if (!Array.isArray(options.input)) for (const [name, id] of Object.entries(options.input)) {
@@ -2619,7 +2619,7 @@ function createDtsResolvePlugin({ cwd, tsconfig, tsconfigRaw, resolver, sideEffe
2619
2619
  async function resolveDtsPath(id, importer, rolldownResolution) {
2620
2620
  let dtsPath;
2621
2621
  if (resolver === "tsc") {
2622
- const { tscResolve } = await import("./resolver-cwLsPb2o-BqQjnCbF.js");
2622
+ const { tscResolve } = await import("./resolver-cwLsPb2o-Dk4xdAGE.js");
2623
2623
  dtsPath = tscResolve(id, importer, cwd, tsconfig, tsconfigRaw);
2624
2624
  } else dtsPath = baseDtsResolver(id, importer);
2625
2625
  debug$1("Using %s for dts import: %O -> %O", resolver, id, dtsPath);
@@ -1373,7 +1373,7 @@ interface TsgoOptions {
1373
1373
  path?: string;
1374
1374
  }
1375
1375
  //#endregion
1376
- //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/types-DP3_0kws.d.mts
1376
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_8361ec2a4d03114085b1954a2fc42e35/node_modules/tsdown/dist/types-DP3_0kws.d.mts
1377
1377
  //#region src/utils/types.d.ts
1378
1378
  type Overwrite<T, U> = Omit<T, keyof U> & U;
1379
1379
  type Awaitable<T> = T | Promise<T>;
@@ -2858,7 +2858,7 @@ type ResolvedConfig = Overwrite<MarkPartial<Omit<UserConfig, "workspace" | "from
2858
2858
  exe: false | ExeOptions;
2859
2859
  }>;
2860
2860
  //#endregion
2861
- //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/config-Dnbs_AoW.d.mts
2861
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_8361ec2a4d03114085b1954a2fc42e35/node_modules/tsdown/dist/config-Dnbs_AoW.d.mts
2862
2862
  //#region src/config/options.d.ts
2863
2863
  /**
2864
2864
  * Resolve user config into resolved configs
@@ -2879,7 +2879,7 @@ declare function defineConfig(options: UserConfig[]): UserConfig[];
2879
2879
  declare function defineConfig(options: UserConfigFn): UserConfigFn;
2880
2880
  declare function defineConfig(options: UserConfigExport): UserConfigExport;
2881
2881
  //#endregion
2882
- //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/index.d.mts
2882
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_8361ec2a4d03114085b1954a2fc42e35/node_modules/tsdown/dist/index.d.mts
2883
2883
  //#region src/build.d.ts
2884
2884
  /**
2885
2885
  * Build with tsdown.
@@ -1,12 +1,12 @@
1
- import { c as globalLogger, n as version$1, t as enableDebug } from "./debug-CKcBYQLP-avlAPNcV.js";
2
- import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-D_enfyvD-X5SFXZZc.js";
1
+ import { c as globalLogger, n as version$1, t as enableDebug } from "./debug-CKcBYQLP-C3NhYhrk.js";
2
+ import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-D_enfyvD-Dg1eKRD4.js";
3
3
  import * as Rolldown from "@voidzero-dev/vite-plus-core/rolldown";
4
- //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/config.mjs
4
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_8361ec2a4d03114085b1954a2fc42e35/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.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/index.mjs
9
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_8361ec2a4d03114085b1954a2fc42e35/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 };
@@ -0,0 +1,3 @@
1
+ import "./main-DiierkER.js";
2
+ import "./target-Bab3CUeB-DQ0pKhCv.js";
3
+ export {};