@voidzero-dev/vite-plus-core 0.1.24 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/rolldown/cli.mjs +6 -6
  2. package/dist/rolldown/config.d.mts +1 -1
  3. package/dist/rolldown/config.mjs +2 -2
  4. package/dist/rolldown/experimental-index.d.mts +4 -4
  5. package/dist/rolldown/experimental-index.mjs +10 -10
  6. package/dist/rolldown/filter-index.d.mts +1 -1
  7. package/dist/rolldown/index.d.mts +2 -2
  8. package/dist/rolldown/index.mjs +4 -4
  9. package/dist/rolldown/parallel-plugin-worker.mjs +2 -2
  10. package/dist/rolldown/parallel-plugin.d.mts +1 -1
  11. package/dist/rolldown/parse-ast-index.d.mts +1 -1
  12. package/dist/rolldown/parse-ast-index.mjs +1 -1
  13. package/dist/rolldown/plugins-index.d.mts +3 -3
  14. package/dist/rolldown/plugins-index.mjs +2 -2
  15. package/dist/rolldown/shared/{binding-CXquf8ay.mjs → binding-CfwqjDbP.mjs} +31 -30
  16. package/dist/rolldown/shared/{binding-BaCZTfMx.d.mts → binding-DgGsNpT9.d.mts} +97 -1
  17. package/dist/rolldown/shared/{bindingify-input-options-D2ORek5s.mjs → bindingify-input-options--chmbDhw.mjs} +16 -8
  18. package/dist/rolldown/shared/{constructors-CbNaT434.d.mts → constructors-Bx1tSad6.d.mts} +2 -2
  19. package/dist/rolldown/shared/{constructors-BiPdtLBB.mjs → constructors-DnT9y_13.mjs} +1 -1
  20. package/dist/rolldown/shared/{define-config-3BX_X2Am.d.mts → define-config-ChOOV2QZ.d.mts} +29 -11
  21. package/dist/rolldown/shared/{error-BuvQYXuZ.mjs → error-C0TrL0_H.mjs} +1 -1
  22. package/dist/rolldown/shared/{load-config-uvbpmLwO.mjs → load-config-BXgGQtnA.mjs} +1 -1
  23. package/dist/rolldown/shared/{normalize-string-or-regex-CNPF6PU9.mjs → normalize-string-or-regex-DGbe3BlX.mjs} +1 -1
  24. package/dist/rolldown/shared/{parse-1VOPJ1Lj.mjs → parse-26ORR8fZ.mjs} +2 -2
  25. package/dist/rolldown/shared/{resolve-tsconfig-CcfxWrib.mjs → resolve-tsconfig-D3YLh9ff.mjs} +2 -2
  26. package/dist/rolldown/shared/{rolldown-BZYLlfsv.mjs → rolldown-DpXXI00f.mjs} +1 -1
  27. package/dist/rolldown/shared/{rolldown-build-CgMNHFY3.mjs → rolldown-build-D8R4Zzfy.mjs} +48 -6
  28. package/dist/rolldown/shared/{transform-7xCUVrpL.d.mts → transform-C-XSNVrd.d.mts} +1 -1
  29. package/dist/rolldown/shared/{watch-BX_aH1Oh.mjs → watch-D5Zm0Vsz.mjs} +4 -4
  30. package/dist/rolldown/utils-index.d.mts +3 -3
  31. package/dist/rolldown/utils-index.mjs +5 -5
  32. package/dist/tsdown/{build-BZshaq8i-C7uS6x65.js → build-B_nvJe4A-hrVGPLD6.js} +19 -17
  33. package/dist/tsdown/{detect-B97OSl92-CgjrIbmD.js → detect-B97OSl92-B5bcx_Ya.js} +1 -1
  34. package/dist/tsdown/{dist-BHLOKn-2.js → dist-Dvzn3mZN.js} +79 -61
  35. package/dist/tsdown/index-types.d.ts +7 -7
  36. package/dist/tsdown/index.js +3 -3
  37. package/dist/tsdown/{main-nVIFtu2j.js → main-BMtwTklr.js} +122 -87
  38. package/dist/tsdown/npm_cjs_chunk_range.cjs +30 -26
  39. package/dist/tsdown/npm_cjs_chunk_semver.cjs +22 -15
  40. package/dist/tsdown/npm_entry_picomatch.cjs +7 -7
  41. package/dist/tsdown/npm_entry_semver_functions_coerce.cjs +5 -5
  42. package/dist/tsdown/npm_entry_semver_functions_satisfies.cjs +3 -3
  43. package/dist/tsdown/npm_entry_semver_ranges_min-version.cjs +3 -3
  44. package/dist/tsdown/npm_entry_tree-kill.cjs +1 -1
  45. package/dist/tsdown/{resolver-DtsKFXi2-QB-x8j3e.js → resolver-DtsKFXi2-DQOmVgSY.js} +1 -1
  46. package/dist/tsdown/run.js +4 -4
  47. package/dist/tsdown/{tsc-context-DKufFI_s.js → tsc-context-DfwSQt2q.js} +2 -2
  48. package/dist/tsdown/{tsc-WMktM0FW.js → tsc-q0JAW6kD.js} +3 -3
  49. package/dist/vite/client/client.mjs +4 -4
  50. package/dist/vite/node/chunks/dist2.js +3 -3
  51. package/dist/vite/node/index.d.ts +2 -2
  52. package/package.json +16 -16
  53. /package/dist/tsdown/{npm_cjs_chunk_chunk.cjs → npm_cjs_chunk_rolldown-runtime.cjs} +0 -0
@@ -1,14 +1,14 @@
1
- import { n as __toESM, t as require_binding } from "./binding-CXquf8ay.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-CfwqjDbP.mjs";
2
2
  import { a as logInvalidLogPosition, c as logPluginError, n as error, r as logCycleLoading, t as augmentCodeLocation } from "./logs-aMKUxRpj.mjs";
3
- import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-CNPF6PU9.mjs";
3
+ import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-DGbe3BlX.mjs";
4
4
  import { a as unreachable, o as unsupported, r as noop, t as arraify } from "./misc-CoQm4NHO.mjs";
5
- import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-BuvQYXuZ.mjs";
5
+ import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-C0TrL0_H.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";
9
9
  import fsp from "node:fs/promises";
10
10
  //#region package.json
11
- var version = "0.1.24";
11
+ var version = "0.2.0";
12
12
  var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
13
13
  //#endregion
14
14
  //#region src/constants/version.ts
@@ -219,7 +219,7 @@ function bindingAssetSource(source) {
219
219
  return { inner: source };
220
220
  }
221
221
  //#endregion
222
- //#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorate.js
222
+ //#region \0@oxc-project+runtime@0.135.0/helpers/esm/decorate.js
223
223
  function __decorate(decorators, target, key, desc) {
224
224
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
225
225
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -1192,16 +1192,18 @@ function bindingifyTransform(args) {
1192
1192
  });
1193
1193
  let normalizedCode = void 0;
1194
1194
  let map = ret.map;
1195
+ let mapHandledByNativeChannel = false;
1195
1196
  if (typeof ret.code === "string") normalizedCode = ret.code;
1196
1197
  else if (ret.code instanceof RolldownMagicString) {
1197
1198
  let magicString = ret.code;
1198
1199
  normalizedCode = magicString.toString();
1199
1200
  let fallbackSourcemap = ctx.sendMagicString(magicString);
1200
1201
  if (fallbackSourcemap != void 0) map = fallbackSourcemap;
1202
+ else mapHandledByNativeChannel = true;
1201
1203
  }
1202
1204
  return {
1203
1205
  code: normalizedCode,
1204
- map: bindingifySourcemap(normalizeTransformHookSourcemap(id, code, map)) ?? (ret.map === null ? null : void 0),
1206
+ map: bindingifySourcemap(normalizeTransformHookSourcemap(id, code, map)) ?? (mapHandledByNativeChannel || ret.map === null ? null : void 0),
1205
1207
  moduleSideEffects: moduleOption.moduleSideEffects ?? void 0,
1206
1208
  moduleType: ret.moduleType
1207
1209
  };
@@ -1307,7 +1309,10 @@ function bindingifyRenderChunk(args) {
1307
1309
  if (ret.code instanceof RolldownMagicString) {
1308
1310
  const magicString = ret.code;
1309
1311
  const normalizedCode = magicString.toString();
1310
- if (ret.map === null) return { code: normalizedCode };
1312
+ if (ret.map === null) return {
1313
+ code: normalizedCode,
1314
+ map: null
1315
+ };
1311
1316
  if (ret.map === void 0) {
1312
1317
  const generatedMap = magicString.generateMap();
1313
1318
  return {
@@ -1326,7 +1331,10 @@ function bindingifyRenderChunk(args) {
1326
1331
  map: bindingifySourcemap(ret.map)
1327
1332
  };
1328
1333
  }
1329
- if (!ret.map) return { code: ret.code };
1334
+ if (ret.map === null) return {
1335
+ code: ret.code,
1336
+ map: null
1337
+ };
1330
1338
  return {
1331
1339
  code: ret.code,
1332
1340
  map: bindingifySourcemap(ret.map)
@@ -1,5 +1,5 @@
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-BaCZTfMx.mjs";
2
- import { P as BuiltinPlugin, Ut as StringOrRegExp } from "./define-config-3BX_X2Am.mjs";
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-DgGsNpT9.mjs";
2
+ import { P as BuiltinPlugin, Ut as StringOrRegExp } from "./define-config-ChOOV2QZ.mjs";
3
3
 
4
4
  //#region src/builtin-plugin/constructors.d.ts
5
5
  declare function viteModulePreloadPolyfillPlugin(config?: BindingViteModulePreloadPolyfillPluginConfig): BuiltinPlugin;
@@ -1,4 +1,4 @@
1
- import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-CNPF6PU9.mjs";
1
+ import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-DGbe3BlX.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 { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./logging-BSNejiLS.mjs";
2
- import { A as ExternalMemoryStatus, N as JsxOptions, P as MinifyOptions$1, R as ParserOptions, U as TransformOptions$1, c as BindingHookResolveIdExtraArgs, d as BindingPluginContextResolveOptions, h as BindingTransformHookExtraArgs, k as BindingWatcherBundler, p as BindingRenderedChunk, t as BindingBuiltinPluginName, u as BindingMagicString, z as PreRenderedChunk } from "./binding-BaCZTfMx.mjs";
2
+ import { A as ExternalMemoryStatus, N as JsxOptions, P as MinifyOptions$1, R as ParserOptions, U as TransformOptions$1, c as BindingHookResolveIdExtraArgs, d as BindingPluginContextResolveOptions, h as BindingTransformHookExtraArgs, k as BindingWatcherBundler, p as BindingRenderedChunk, t as BindingBuiltinPluginName, u as BindingMagicString, z as PreRenderedChunk } from "./binding-DgGsNpT9.mjs";
3
3
  import { TopLevelFilterExpression } from "@voidzero-dev/vite-plus-core/rolldown/pluginutils";
4
4
  import { Program } from "@oxc-project/types";
5
5
 
@@ -1144,6 +1144,20 @@ type CodeSplittingGroup = {
1144
1144
  */
1145
1145
  entriesAwareMergeThreshold?: number;
1146
1146
  /**
1147
+ * Whether to include captured modules' dependencies.
1148
+ *
1149
+ * Enabling this option reduces the chance of generating circular chunks.
1150
+ *
1151
+ * If you want to disable this behavior, it's recommended to both set
1152
+ * - {@linkcode InputOptions.preserveEntrySignatures | preserveEntrySignatures}: `false | 'allow-extension'`
1153
+ * - {@linkcode OutputOptions.strictExecutionOrder | strictExecutionOrder}: `true`
1154
+ *
1155
+ * to avoid generating invalid chunks.
1156
+ *
1157
+ * @default true
1158
+ */
1159
+ includeDependenciesRecursively?: boolean;
1160
+ /**
1147
1161
  * Filter modules by tags. Only modules that have **all** specified tags
1148
1162
  * are captured by this group. Combines with `test` and other filters —
1149
1163
  * a module must match all criteria.
@@ -1170,15 +1184,7 @@ type AdvancedChunksGroup = CodeSplittingGroup;
1170
1184
  */
1171
1185
  type CodeSplittingOptions = {
1172
1186
  /**
1173
- * By default, each group will also include captured modules' dependencies. This reduces the chance of generating circular chunks.
1174
- *
1175
- * If you want to disable this behavior, it's recommended to both set
1176
- * - {@linkcode InputOptions.preserveEntrySignatures | preserveEntrySignatures}: `false | 'allow-extension'`
1177
- * - {@linkcode OutputOptions.strictExecutionOrder | strictExecutionOrder}: `true`
1178
- *
1179
- * to avoid generating invalid chunks.
1180
- *
1181
- * @default true
1187
+ * Global fallback of {@linkcode CodeSplittingGroup.includeDependenciesRecursively | group.includeDependenciesRecursively}, if it's not specified in the group.
1182
1188
  */
1183
1189
  includeDependenciesRecursively?: boolean;
1184
1190
  /**
@@ -1285,6 +1291,10 @@ declare class RolldownBuild {
1285
1291
  /**
1286
1292
  * Close the bundle and free resources.
1287
1293
  *
1294
+ * This method should be called even if the {@linkcode generate} method
1295
+ * or the {@linkcode write} method threw an error. It should be called
1296
+ * even if neither of the methods are called.
1297
+ *
1288
1298
  * This method is called automatically when using `using` syntax.
1289
1299
  *
1290
1300
  * @example
@@ -1636,6 +1646,11 @@ interface ChecksOptions {
1636
1646
  * @default true
1637
1647
  * */
1638
1648
  largeBarrelModules?: boolean;
1649
+ /**
1650
+ * Whether to emit warnings when a plugin transforms code without generating a sourcemap.
1651
+ * @default true
1652
+ * */
1653
+ sourcemapBroken?: boolean;
1639
1654
  }
1640
1655
  //#endregion
1641
1656
  //#region src/options/transform-options.d.ts
@@ -3750,8 +3765,11 @@ interface InputOptions {
3750
3765
  * Lazy barrel optimization avoids compiling unused re-export modules in side-effect-free barrel modules,
3751
3766
  * significantly improving build performance for large codebases with many barrel modules.
3752
3767
  *
3768
+ * This option is planned to be removed in the future. If you need to opt out, please open an issue
3769
+ * describing your use case so we can address it before the option is gone.
3770
+ *
3753
3771
  * @see {@link https://rolldown.rs/in-depth/lazy-barrel-optimization | Lazy Barrel Documentation}
3754
- * @default false
3772
+ * @default true
3755
3773
  */
3756
3774
  lazyBarrel?: boolean;
3757
3775
  };
@@ -1,4 +1,4 @@
1
- import { t as require_binding } from "./binding-CXquf8ay.mjs";
1
+ import { t as require_binding } from "./binding-CfwqjDbP.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-BZYLlfsv.mjs";
1
+ import { t as rolldown } from "./rolldown-DpXXI00f.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-CXquf8ay.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-CfwqjDbP.mjs";
2
2
  import { c as logPluginError, n as error } from "./logs-aMKUxRpj.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-CXquf8ay.mjs";
2
- //#region ../../../node_modules/.pnpm/oxc-parser@0.133.0/node_modules/oxc-parser/src-js/wrap.js
1
+ import { n as __toESM, t as require_binding } from "./binding-CfwqjDbP.mjs";
2
+ //#region ../../../node_modules/.pnpm/oxc-parser@0.136.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-CXquf8ay.mjs";
2
- import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-BuvQYXuZ.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-CfwqjDbP.mjs";
2
+ import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-C0TrL0_H.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-CgMNHFY3.mjs";
1
+ import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-D8R4Zzfy.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-CXquf8ay.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-CfwqjDbP.mjs";
2
2
  import { i as logInputHookInOutputPlugin, n as error } from "./logs-aMKUxRpj.mjs";
3
- import { n as BuiltinPlugin } from "./normalize-string-or-regex-CNPF6PU9.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-D2ORek5s.mjs";
3
+ import { n as BuiltinPlugin } from "./normalize-string-or-regex-DGbe3BlX.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--chmbDhw.mjs";
5
5
  import { i as unimplemented } from "./misc-CoQm4NHO.mjs";
6
- import { i as unwrapBindingResult } from "./error-BuvQYXuZ.mjs";
6
+ import { i as unwrapBindingResult } from "./error-C0TrL0_H.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";
@@ -1470,7 +1470,43 @@ const TransformOptionsSchema = /* @__PURE__ */ object({
1470
1470
  plugins: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ object({
1471
1471
  styledComponents: /* @__PURE__ */ optional(/* @__PURE__ */ any()),
1472
1472
  taggedTemplateEscape: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1473
- })), /* @__PURE__ */ description("Third-party plugins to use"))
1473
+ })), /* @__PURE__ */ description("Third-party plugins to use")),
1474
+ reactCompiler: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ object({
1475
+ compilationMode: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1476
+ /* @__PURE__ */ literal("infer"),
1477
+ /* @__PURE__ */ literal("syntax"),
1478
+ /* @__PURE__ */ literal("annotation"),
1479
+ /* @__PURE__ */ literal("all")
1480
+ ])),
1481
+ panicThreshold: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1482
+ /* @__PURE__ */ literal("none"),
1483
+ /* @__PURE__ */ literal("critical_errors"),
1484
+ /* @__PURE__ */ literal("all_errors")
1485
+ ])),
1486
+ target: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1487
+ /* @__PURE__ */ literal("17"),
1488
+ /* @__PURE__ */ literal("18"),
1489
+ /* @__PURE__ */ literal("19")
1490
+ ])),
1491
+ noEmit: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1492
+ outputMode: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1493
+ /* @__PURE__ */ literal("client"),
1494
+ /* @__PURE__ */ literal("ssr"),
1495
+ /* @__PURE__ */ literal("lint")
1496
+ ])),
1497
+ ignoreUseNoForget: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1498
+ flowSuppressions: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1499
+ enableReanimated: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1500
+ isDev: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1501
+ filename: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1502
+ eslintSuppressionRules: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
1503
+ customOptOutDirectives: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
1504
+ gating: /* @__PURE__ */ optional(/* @__PURE__ */ object({
1505
+ source: /* @__PURE__ */ string(),
1506
+ importSpecifierName: /* @__PURE__ */ string()
1507
+ })),
1508
+ dynamicGating: /* @__PURE__ */ optional(/* @__PURE__ */ object({ source: /* @__PURE__ */ string() }))
1509
+ })]))
1474
1510
  });
1475
1511
  const WatcherFileWatcherOptionsSchema = /* @__PURE__ */ strictObject({
1476
1512
  usePolling: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Use polling-based file watching instead of native OS events")),
@@ -1513,7 +1549,8 @@ const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
1513
1549
  duplicateShebang: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when both the code and postBanner contain shebang")),
1514
1550
  unsupportedTsconfigOption: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a tsconfig option or combination of options is not supported")),
1515
1551
  ineffectiveDynamicImport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a module is dynamically imported but also statically imported, making the dynamic import ineffective for code splitting")),
1516
- largeBarrelModules: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit info logs when a barrel module has a very large number of re-exports (more than 5000)"))
1552
+ largeBarrelModules: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit info logs when a barrel module has a very large number of re-exports (more than 5000)")),
1553
+ sourcemapBroken: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a plugin transforms code without generating a sourcemap"))
1517
1554
  });
1518
1555
  const MinifyOptionsSchema = /* @__PURE__ */ strictObject({
1519
1556
  compress: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
@@ -1721,6 +1758,7 @@ const AdvancedChunksSchema = /* @__PURE__ */ strictObject({
1721
1758
  maxModuleSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
1722
1759
  entriesAware: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1723
1760
  entriesAwareMergeThreshold: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
1761
+ includeDependenciesRecursively: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1724
1762
  tags: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string()))
1725
1763
  })))
1726
1764
  });
@@ -3201,6 +3239,10 @@ var RolldownBuild = class RolldownBuild {
3201
3239
  /**
3202
3240
  * Close the bundle and free resources.
3203
3241
  *
3242
+ * This method should be called even if the {@linkcode generate} method
3243
+ * or the {@linkcode write} method threw an error. It should be called
3244
+ * even if neither of the methods are called.
3245
+ *
3204
3246
  * This method is called automatically when using `using` syntax.
3205
3247
  *
3206
3248
  * @example
@@ -1,5 +1,5 @@
1
1
  import { a as RolldownLog } from "./logging-BSNejiLS.mjs";
2
- import { F as MinifyResult$1, H as SourceMap, L as ParseResult$1, P as MinifyOptions$1, R as ParserOptions$1, W as TsconfigCache$1, a as BindingEnhancedTransformOptions, o as BindingEnhancedTransformResult, v as BindingTsconfigResult } from "./binding-BaCZTfMx.mjs";
2
+ import { F as MinifyResult$1, H as SourceMap, L as ParseResult$1, P as MinifyOptions$1, R as ParserOptions$1, W as TsconfigCache$1, a as BindingEnhancedTransformOptions, o as BindingEnhancedTransformResult, v as BindingTsconfigResult } from "./binding-DgGsNpT9.mjs";
3
3
 
4
4
  //#region src/utils/resolve-tsconfig.d.ts
5
5
  /**
@@ -1,9 +1,9 @@
1
- import { n as __toESM, t as require_binding } from "./binding-CXquf8ay.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-CfwqjDbP.mjs";
2
2
  import { o as logMultipleWatcherOption } from "./logs-aMKUxRpj.mjs";
3
- import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-D2ORek5s.mjs";
3
+ import { v as LOG_LEVEL_WARN } from "./bindingify-input-options--chmbDhw.mjs";
4
4
  import { t as arraify } from "./misc-CoQm4NHO.mjs";
5
- import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-CgMNHFY3.mjs";
6
- import { t as aggregateBindingErrorsIntoJsError } from "./error-BuvQYXuZ.mjs";
5
+ import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-D8R4Zzfy.mjs";
6
+ import { t as aggregateBindingErrorsIntoJsError } from "./error-C0TrL0_H.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,9 +1,9 @@
1
- import { _ as BindingTsconfigRawOptions, g as BindingTsconfigCompilerOptions } from "./shared/binding-BaCZTfMx.mjs";
2
- import { a as MinifyOptions, c as minifySync, d as parse, f as parseSync, i as transformSync, l as ParseResult, n as TransformResult, o as MinifyResult, p as TsconfigCache, r as transform, s as minify, t as TransformOptions, u as ParserOptions } from "./shared/transform-7xCUVrpL.mjs";
1
+ import { _ as BindingTsconfigRawOptions, g as BindingTsconfigCompilerOptions } from "./shared/binding-DgGsNpT9.mjs";
2
+ import { a as MinifyOptions, c as minifySync, d as parse, f as parseSync, i as transformSync, l as ParseResult, n as TransformResult, o as MinifyResult, p as TsconfigCache, r as transform, s as minify, t as TransformOptions, u as ParserOptions } from "./shared/transform-C-XSNVrd.mjs";
3
3
  import * as ESTree from "@oxc-project/types";
4
4
  import { Program } from "@oxc-project/types";
5
5
 
6
- //#region ../../../node_modules/.pnpm/oxc-parser@0.133.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
6
+ //#region ../../../node_modules/.pnpm/oxc-parser@0.136.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
7
7
  interface VisitorObject$1 {
8
8
  DebuggerStatement?: (node: ESTree.DebuggerStatement) => void;
9
9
  "DebuggerStatement:exit"?: (node: ESTree.DebuggerStatement) => void;
@@ -1,6 +1,6 @@
1
- import { n as parseSync, t as parse } from "./shared/parse-1VOPJ1Lj.mjs";
2
- import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-CcfxWrib.mjs";
3
- //#region ../../../node_modules/.pnpm/oxc-parser@0.133.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
1
+ import { n as parseSync, t as parse } from "./shared/parse-26ORR8fZ.mjs";
2
+ import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-D3YLh9ff.mjs";
3
+ //#region ../../../node_modules/.pnpm/oxc-parser@0.136.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)) {
@@ -2010,7 +2010,7 @@ function walkTSUnionType(node, visitors) {
2010
2010
  exit !== null && exit(node);
2011
2011
  }
2012
2012
  //#endregion
2013
- //#region ../../../node_modules/.pnpm/oxc-parser@0.133.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
2013
+ //#region ../../../node_modules/.pnpm/oxc-parser@0.136.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
2014
2014
  /** Mapping from node type name to node type ID */
2015
2015
  const NODE_TYPE_IDS_MAP = new Map([
2016
2016
  ["DebuggerStatement", 0],
@@ -2180,7 +2180,7 @@ const NODE_TYPE_IDS_MAP = new Map([
2180
2180
  ["TSUnionType", 164]
2181
2181
  ]);
2182
2182
  //#endregion
2183
- //#region ../../../node_modules/.pnpm/oxc-parser@0.133.0/node_modules/oxc-parser/src-js/visit/visitor.js
2183
+ //#region ../../../node_modules/.pnpm/oxc-parser@0.136.0/node_modules/oxc-parser/src-js/visit/visitor.js
2184
2184
  let compiledVisitor;
2185
2185
  function createCompiledVisitor() {
2186
2186
  compiledVisitor = [];
@@ -1,6 +1,6 @@
1
- import { A as __commonJSMin, C as noop, D as resolveRegex, E as resolveComma, M as __toESM, O as slash, S as matchPattern, T as promiseWithResolvers, _ as red, a as createDebug, b as debounce, c as generateColor, d as prettyFormat, f as blue, h as green, i as version, j as __exportAll$1, k as toArray, l as getNameLabel, m as dim, n as z$1, o as LogLevels, p as bold, s as createLogger, t as R$2, u as globalLogger, v as underline, w as pkgExists, x as importWithError, y as yellow } from "./main-nVIFtu2j.js";
1
+ import { A as __commonJSMin, C as noop, D as resolveRegex, E as resolveComma, M as __toESM, O as slash, S as matchPattern, T as promiseWithResolvers, _ as red, a as createDebug, b as debounce, c as generateColor, d as prettyFormat, f as blue, h as green, i as version, j as __exportAll$1, k as toArray, l as getNameLabel, m as dim, n as z$1, o as LogLevels, p as bold, s as createLogger, t as R$2, u as globalLogger, v as underline, w as pkgExists, x as importWithError, y as yellow } from "./main-BMtwTklr.js";
2
2
  import module$1, { builtinModules, createRequire, isBuiltin } from "node:module";
3
- import process$1, { env } from "node:process";
3
+ import process$1 from "node:process";
4
4
  import readline from "node:readline";
5
5
  import { formatWithOptions, inspect, isDeepStrictEqual, promisify } from "node:util";
6
6
  import path, { dirname, isAbsolute, join, parse, resolve } from "node:path";
@@ -20,7 +20,7 @@ import { AsyncLocalStorage } from "node:async_hooks";
20
20
  import { Buffer } from "node:buffer";
21
21
  import { brotliCompress, gzip } from "node:zlib";
22
22
  import { importGlobPlugin } from "@voidzero-dev/vite-plus-core/rolldown/experimental";
23
- //#region ../../node_modules/.pnpm/tsdown@0.22.1_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.1_@tsdown+exe@0.22.1_@type_b2f732f99208225f009f13478ba95350/node_modules/tsdown/dist/fs-qxJxxoCE.mjs
23
+ //#region ../../node_modules/.pnpm/tsdown@0.22.3_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.3_@tsdown+exe@0.22.3_@type_701dbb346589e2d965113664da5ac600/node_modules/tsdown/dist/fs-qxJxxoCE.mjs
24
24
  function fsExists(path) {
25
25
  return access(path).then(() => true, () => false);
26
26
  }
@@ -63,7 +63,7 @@ function stripExtname(filePath) {
63
63
  return filePath.slice(0, -ext.length);
64
64
  }
65
65
  //#endregion
66
- //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.25.2_@typescript+native-preview@7.0.0-dev.20260122.2_oxc-resolver_8152cf0e534aee518f40abeb59f8494a/node_modules/rolldown-plugin-dts/dist/filename-BR9JpwkC.mjs
66
+ //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.26.0_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolver_6f03fea6114f4c67cf5f12416b2625b7/node_modules/rolldown-plugin-dts/dist/filename-BR9JpwkC.mjs
67
67
  const RE_JS = /\.([cm]?)jsx?$/;
68
68
  const RE_TS = /\.([cm]?)tsx?$/;
69
69
  const RE_DTS = /\.d\.([cm]?)ts$/;
@@ -1094,7 +1094,7 @@ i((e, n) => {
1094
1094
  return m.substitutions.map((u) => x(u.replace("*", w)));
1095
1095
  }, "resolvePathAlias");
1096
1096
  //#endregion
1097
- //#region ../../node_modules/.pnpm/tsdown@0.22.1_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.1_@tsdown+exe@0.22.1_@type_b2f732f99208225f009f13478ba95350/node_modules/tsdown/dist/format-DMceewlS.mjs
1097
+ //#region ../../node_modules/.pnpm/tsdown@0.22.3_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.3_@tsdown+exe@0.22.3_@type_701dbb346589e2d965113664da5ac600/node_modules/tsdown/dist/format-DMceewlS.mjs
1098
1098
  const shimFile = path.resolve(import.meta.dirname, "..", "esm-shims.js");
1099
1099
  const shimsDefine = {
1100
1100
  __dirname: "__TSDOWN_SHIM_DIRNAME__",
@@ -4401,12 +4401,10 @@ function createConfigCoreLoader(options) {
4401
4401
  };
4402
4402
  }
4403
4403
  //#endregion
4404
- //#region ../../node_modules/.pnpm/tsdown@0.22.1_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.1_@tsdown+exe@0.22.1_@type_b2f732f99208225f009f13478ba95350/node_modules/tsdown/dist/options-DWGUHu4D.mjs
4404
+ //#region ../../node_modules/.pnpm/tsdown@0.22.3_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.3_@tsdown+exe@0.22.3_@type_701dbb346589e2d965113664da5ac600/node_modules/tsdown/dist/options-Ce3ueyZH.mjs
4405
4405
  const __cjs_require$1 = createRequire(import.meta.url);
4406
4406
  const picomatch = __cjs_require$1("./npm_entry_picomatch.cjs");
4407
4407
  const satisfies$1 = __cjs_require$1("./npm_entry_semver_functions_satisfies.cjs");
4408
- const check = (key) => key in env && env[key] !== "0" && env[key] !== "false";
4409
- const isInCi = check("CI") || check("CONTINUOUS_INTEGRATION");
4410
4408
  const debug$4$2 = createDebug("tsdown:clean");
4411
4409
  const RE_LAST_SLASH = /[/\\]$/;
4412
4410
  async function cleanOutDir(configs) {
@@ -4883,6 +4881,10 @@ async function resolveTsconfig(logger, tsconfig, cwd, color, nameLabel) {
4883
4881
  }
4884
4882
  return tsconfig;
4885
4883
  }
4884
+ function isInCI() {
4885
+ const ci = process$1.env.CI;
4886
+ return ci != null && ci !== "0" && ci.toLowerCase() !== "false";
4887
+ }
4886
4888
  const debug$2$2 = createDebug("tsdown:package");
4887
4889
  async function readPackageJson(dir) {
4888
4890
  const packageJsonPath = up({ cwd: dir });
@@ -4995,7 +4997,7 @@ async function loadConfigFile(inlineConfig, workspace, rootConfig) {
4995
4997
  globalLogger.info(`config file: ${underline(file)}`, loader === "native" ? "" : `(${loader})`);
4996
4998
  exported = await exported;
4997
4999
  if (typeof exported === "function") exported = await exported(inlineConfig, {
4998
- ci: isInCi,
5000
+ ci: isInCI(),
4999
5001
  rootConfig
5000
5002
  });
5001
5003
  }
@@ -5263,8 +5265,8 @@ function resolveFeatureOption(value, defaults) {
5263
5265
  return resolveCIOption(value) ? defaults : false;
5264
5266
  }
5265
5267
  function resolveCIOption(value) {
5266
- if (value === "ci-only") return isInCi ? true : false;
5267
- if (value === "local-only") return isInCi ? false : true;
5268
+ if (value === "ci-only") return isInCI();
5269
+ if (value === "local-only") return !isInCI();
5268
5270
  return value;
5269
5271
  }
5270
5272
  function filterConfig(filter, configCwd, name) {
@@ -5275,7 +5277,7 @@ function filterConfig(filter, configCwd, name) {
5275
5277
  return toArray(filter).some((value) => name && name === value || cwd === value);
5276
5278
  }
5277
5279
  //#endregion
5278
- //#region ../../node_modules/.pnpm/tsdown@0.22.1_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.1_@tsdown+exe@0.22.1_@type_b2f732f99208225f009f13478ba95350/node_modules/tsdown/dist/watch-C3ocHLCt.mjs
5280
+ //#region ../../node_modules/.pnpm/tsdown@0.22.3_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.3_@tsdown+exe@0.22.3_@type_701dbb346589e2d965113664da5ac600/node_modules/tsdown/dist/watch-C3ocHLCt.mjs
5279
5281
  async function copy(options) {
5280
5282
  if (!options.copy) return;
5281
5283
  const resolved = await resolveCopyEntries(options);
@@ -5655,8 +5657,8 @@ var Hookable = class {
5655
5657
  }
5656
5658
  };
5657
5659
  //#endregion
5658
- //#region ../../node_modules/.pnpm/tsdown@0.22.1_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.1_@tsdown+exe@0.22.1_@type_b2f732f99208225f009f13478ba95350/node_modules/tsdown/dist/build-BZshaq8i.mjs
5659
- var build_BZshaq8i_exports = /* @__PURE__ */ __exportAll$1({
5660
+ //#region ../../node_modules/.pnpm/tsdown@0.22.3_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.3_@tsdown+exe@0.22.3_@type_701dbb346589e2d965113664da5ac600/node_modules/tsdown/dist/build-B_nvJe4A.mjs
5661
+ var build_B_nvJe4A_exports = /* @__PURE__ */ __exportAll$1({
5660
5662
  n: () => buildWithConfigs,
5661
5663
  r: () => build_exports,
5662
5664
  t: () => build$1
@@ -5970,7 +5972,7 @@ async function bundleDone(bundleByPkg, bundle) {
5970
5972
  async function packTarball(packageJsonPath) {
5971
5973
  const pkgDir = path.dirname(packageJsonPath);
5972
5974
  const destination = await mkdtemp(path.join(tmpdir(), "tsdown-pack-"));
5973
- const { detect } = await import("./detect-B97OSl92-CgjrIbmD.js");
5975
+ const { detect } = await import("./detect-B97OSl92-B5bcx_Ya.js");
5974
5976
  try {
5975
5977
  const detected = await detect({ cwd: pkgDir });
5976
5978
  debug$1("Detected package manager: %o", detected);
@@ -6110,7 +6112,7 @@ async function resolveInputOptions(config, format, configDeps, bundle, cjsDts, i
6110
6112
  if (nodeProtocol) plugins.push(NodeProtocolPlugin(nodeProtocol));
6111
6113
  if (config.pkg || config.deps.skipNodeModulesBundle) plugins.push(DepsPlugin(config, bundle));
6112
6114
  if (dts) {
6113
- const { dts: dtsPlugin } = await import("./dist-BHLOKn-2.js");
6115
+ const { dts: dtsPlugin } = await import("./dist-Dvzn3mZN.js");
6114
6116
  const { cjsReexport: _, ...dtsPluginOptions } = dts;
6115
6117
  const options = {
6116
6118
  tsconfig,
@@ -6487,4 +6489,4 @@ async function buildSingle(config, configDeps, isDualFormat, clean, restart, don
6487
6489
  }
6488
6490
  }
6489
6491
  //#endregion
6490
- export { filename_dts_to as _, resolveUserConfig as a, replaceTemplateName as b, RE_CSS as c, RE_JS as d, RE_JSON as f, RE_VUE as g, RE_TS as h, mergeConfig as i, RE_DTS as l, RE_ROLLDOWN_RUNTIME as m, buildWithConfigs as n, at as o, RE_NODE_MODULES$1 as p, build_BZshaq8i_exports as r, ee as s, build$1 as t, RE_DTS_MAP as u, filename_js_to_dts as v, resolveTemplateFn as x, filename_to_dts as y };
6492
+ export { filename_dts_to as _, resolveUserConfig as a, replaceTemplateName as b, RE_CSS as c, RE_JS as d, RE_JSON as f, RE_VUE as g, RE_TS as h, mergeConfig as i, RE_DTS as l, RE_ROLLDOWN_RUNTIME as m, buildWithConfigs as n, at as o, RE_NODE_MODULES$1 as p, build_B_nvJe4A_exports as r, ee as s, build$1 as t, RE_DTS_MAP as u, filename_js_to_dts as v, resolveTemplateFn as x, filename_to_dts as y };
@@ -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.1_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.1_@tsdown+exe@0.22.1_@type_b2f732f99208225f009f13478ba95350/node_modules/tsdown/dist/detect-B97OSl92.mjs
4
+ //#region ../../node_modules/.pnpm/tsdown@0.22.3_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.3_@tsdown+exe@0.22.3_@type_701dbb346589e2d965113664da5ac600/node_modules/tsdown/dist/detect-B97OSl92.mjs
5
5
  const AGENTS = [
6
6
  "npm",
7
7
  "yarn",