@voidzero-dev/vite-plus-core 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/LICENSE +175 -48
  2. package/dist/rolldown/cli.mjs +25 -14
  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 +15 -5
  6. package/dist/rolldown/experimental-index.mjs +23 -17
  7. package/dist/rolldown/filter-index.d.mts +1 -1
  8. package/dist/rolldown/index.d.mts +2 -2
  9. package/dist/rolldown/index.mjs +4 -4
  10. package/dist/rolldown/parallel-plugin-worker.mjs +5 -4
  11. package/dist/rolldown/parallel-plugin.d.mts +1 -1
  12. package/dist/rolldown/parse-ast-index.d.mts +1 -1
  13. package/dist/rolldown/parse-ast-index.mjs +1 -1
  14. package/dist/rolldown/plugins-index.d.mts +3 -3
  15. package/dist/rolldown/plugins-index.mjs +2 -2
  16. package/dist/rolldown/shared/{binding-DgGsNpT9.d.mts → binding-B1q9aYT-.d.mts} +65 -142
  17. package/dist/rolldown/shared/{binding-CfwqjDbP.mjs → binding-BmkJW3Wy.mjs} +39 -35
  18. package/dist/rolldown/shared/{bindingify-input-options--chmbDhw.mjs → bindingify-input-options-Cmm60vfj.mjs} +1330 -1331
  19. package/dist/rolldown/shared/{constructors-Bx1tSad6.d.mts → constructors-2i1T9YcF.d.mts} +3 -4
  20. package/dist/rolldown/shared/{constructors-DnT9y_13.mjs → constructors-CE6zZSUt.mjs} +2 -5
  21. package/dist/rolldown/shared/{define-config-ChOOV2QZ.d.mts → define-config-BBz954-q.d.mts} +2 -2
  22. package/dist/rolldown/shared/{error-C0TrL0_H.mjs → error-BlQ0-ek7.mjs} +1 -1
  23. package/dist/rolldown/shared/{load-config-BXgGQtnA.mjs → load-config-CVVMWSlg.mjs} +1 -1
  24. package/dist/rolldown/shared/{normalize-string-or-regex-DGbe3BlX.mjs → normalize-string-or-regex-BYkbbGqQ.mjs} +1 -1
  25. package/dist/rolldown/shared/{parse-26ORR8fZ.mjs → parse-Dphnedsw.mjs} +2 -2
  26. package/dist/rolldown/shared/{prompt-DV1XbtjC.mjs → prompt-Bgj-uEyc.mjs} +5 -5
  27. package/dist/rolldown/shared/{resolve-tsconfig-D3YLh9ff.mjs → resolve-tsconfig-CdIAR1Eb.mjs} +2 -2
  28. package/dist/rolldown/shared/{rolldown-DpXXI00f.mjs → rolldown-Bnp916iM.mjs} +1 -1
  29. package/dist/rolldown/shared/{rolldown-build-D8R4Zzfy.mjs → rolldown-build-Cs2iVJuw.mjs} +24 -56
  30. package/dist/rolldown/shared/{transform-C-XSNVrd.d.mts → transform-CEmFsvJW.d.mts} +1 -1
  31. package/dist/rolldown/shared/{watch-D5Zm0Vsz.mjs → watch-ECGr-_QS.mjs} +4 -4
  32. package/dist/rolldown/utils-index.d.mts +3 -3
  33. package/dist/rolldown/utils-index.mjs +6 -6
  34. package/dist/tsdown/{build-B_nvJe4A-BkmlHYK-.js → build-B_nvJe4A-CvbtVBxy.js} +30 -96
  35. package/dist/tsdown/debug-DLdR-9XB-DQZ6QLC0.js +250 -0
  36. package/dist/tsdown/{detect-B97OSl92-B5bcx_Ya.js → detect-B97OSl92-BJPZyIKJ.js} +1 -1
  37. package/dist/tsdown/{dist-4h5bgYzo.js → dist-CqbVlnVq.js} +30 -25
  38. package/dist/tsdown/general-Cp4NiJNK-CbyrS9q1.js +97 -0
  39. package/dist/tsdown/index-types.d.ts +197 -7
  40. package/dist/tsdown/index.js +3 -3
  41. package/dist/tsdown/internal-bfoxcI4F.js +3 -0
  42. package/dist/tsdown/{main-BMtwTklr.js → main-BlTcyuFi.js} +2 -341
  43. package/dist/tsdown/npm_entry_picomatch.cjs +4 -2
  44. package/dist/tsdown/npm_entry_semver_functions_coerce.cjs +5 -1
  45. package/dist/tsdown/{resolver-DtsKFXi2-DQOmVgSY.js → resolver-DtsKFXi2-B8Z3WwZh.js} +1 -1
  46. package/dist/tsdown/run.js +4 -3
  47. package/dist/tsdown/src-CISfE_A0.js +622 -0
  48. package/dist/tsdown/target-CqeSqtms-FAqYuGyB.js +79 -0
  49. package/dist/tsdown/{tsc-15OYetCl.js → tsc-CdZE7QwS.js} +3 -3
  50. package/dist/tsdown/{tsc-context-DfwSQt2q.js → tsc-context-CX_GXdyS.js} +2 -2
  51. package/dist/tsdown/tsdown-css.js +874 -0
  52. package/dist/tsdown/tsdown-exe.js +949 -0
  53. package/dist/vite/client/client.mjs +7 -9
  54. package/dist/vite/client.d.ts +3 -0
  55. package/dist/vite/node/chunks/build.js +27 -34
  56. package/dist/vite/node/chunks/dist.js +23 -23
  57. package/dist/vite/node/chunks/dist2.js +3 -3
  58. package/dist/vite/node/chunks/logger.js +4 -4
  59. package/dist/vite/node/chunks/node.js +12486 -11732
  60. package/dist/vite/node/chunks/postcss-import.js +10 -10
  61. package/dist/vite/node/cli.js +3 -3
  62. package/dist/vite/node/index.d.ts +141 -16
  63. package/dist/vite/node/index.js +1 -1
  64. package/dist/vite/node/module-runner.js +6 -6
  65. package/dist/vite/types/importGlob.d.ts +48 -6
  66. package/package.json +15 -21
@@ -982,94 +982,6 @@ interface PluginsOptions {
982
982
  styledComponents?: StyledComponentsOptions;
983
983
  taggedTemplateEscape?: boolean;
984
984
  }
985
- /** Dynamic gating for {@link ReactCompilerOptions#dynamicGating}. */
986
- interface ReactCompilerDynamicGating {
987
- /** Module the gating import comes from. */
988
- source: string;
989
- }
990
- /** Static gating for {@link ReactCompilerOptions#gating}. */
991
- interface ReactCompilerGating {
992
- /** Module the gating import comes from. */
993
- source: string;
994
- /** Imported specifier used as the gate. */
995
- importSpecifierName: string;
996
- }
997
- /**
998
- * Options for the experimental [React Compiler](https://github.com/facebook/react/pull/36173).
999
- *
1000
- * Mirrors the compiler's `PluginOptions`. The deep `environment` configuration
1001
- * (inference / validation flags) is not surfaced here.
1002
- *
1003
- * @see {@link TransformOptions#reactCompiler}
1004
- */
1005
- interface ReactCompilerOptions {
1006
- /**
1007
- * Which functions to compile.
1008
- *
1009
- * @default 'infer'
1010
- */
1011
- compilationMode?: 'infer' | 'syntax' | 'annotation' | 'all';
1012
- /**
1013
- * What to do when a function cannot be compiled.
1014
- *
1015
- * @default 'none'
1016
- */
1017
- panicThreshold?: 'none' | 'critical_errors' | 'all_errors';
1018
- /**
1019
- * React runtime version target. `17` and `18` require the
1020
- * `react-compiler-runtime` package; `19` ships the runtime in `react`.
1021
- *
1022
- * @default '19'
1023
- */
1024
- target?: '17' | '18' | '19';
1025
- /**
1026
- * Analyze and report diagnostics only; emit no transformed code.
1027
- *
1028
- * @default false
1029
- */
1030
- noEmit?: boolean;
1031
- /**
1032
- * Compiler output mode.
1033
- *
1034
- * @default undefined
1035
- */
1036
- outputMode?: 'client' | 'ssr' | 'lint';
1037
- /**
1038
- * Compile even functions marked with the `"use no memo"` / `"use no forget"`
1039
- * opt-out directives.
1040
- *
1041
- * @default false
1042
- */
1043
- ignoreUseNoForget?: boolean;
1044
- /**
1045
- * Treat Flow suppression comments as opt-outs.
1046
- *
1047
- * @default true
1048
- */
1049
- flowSuppressions?: boolean;
1050
- /**
1051
- * Enable `react-native-reanimated` support.
1052
- *
1053
- * @default false
1054
- */
1055
- enableReanimated?: boolean;
1056
- /**
1057
- * Development mode (extra validation / instrumentation).
1058
- *
1059
- * @default false
1060
- */
1061
- isDev?: boolean;
1062
- /** Source file name, used for the fast-refresh hash and in diagnostics. */
1063
- filename?: string;
1064
- /** ESLint rules whose suppressions opt a function out of compilation. */
1065
- eslintSuppressionRules?: Array<string>;
1066
- /** Extra directives that opt a function out of compilation. */
1067
- customOptOutDirectives?: Array<string>;
1068
- /** Also emit a gated (feature-flagged) version of each compiled function. */
1069
- gating?: ReactCompilerGating;
1070
- /** Dynamically-gated compilation. */
1071
- dynamicGating?: ReactCompilerDynamicGating;
1072
- }
1073
985
  interface ReactRefreshOptions {
1074
986
  /**
1075
987
  * Specify the identifier of the refresh registration variable.
@@ -1116,7 +1028,10 @@ interface StyledComponentsOptions {
1116
1028
  * Transpiles styled-components tagged template literals to a smaller representation
1117
1029
  * than what Babel normally creates, helping to reduce bundle size.
1118
1030
  *
1119
- * @default true
1031
+ * Disabled by default because Oxc does not down-level template literals, so this
1032
+ * transform only increases output size.
1033
+ *
1034
+ * @default false
1120
1035
  */
1121
1036
  transpileTemplateLiterals?: boolean;
1122
1037
  /**
@@ -1166,6 +1081,13 @@ interface StyledComponentsOptions {
1166
1081
  /**
1167
1082
  * Options for transforming a JavaScript or TypeScript file.
1168
1083
  *
1084
+ * Options are listed in evaluation order: the source is parsed (`lang`,
1085
+ * `sourceType`), declarations are emitted (`typescript.declaration`), then
1086
+ * transforms run (`typescript`, `decorator`, `plugins`,
1087
+ * `jsx`, `target`), followed by the `inject` and `define` plugins, and
1088
+ * finally codegen (`sourcemap`). `helpers` configures the runtime helpers
1089
+ * the transforms emit.
1090
+ *
1169
1091
  * @see {@link transform}
1170
1092
  */
1171
1093
  interface TransformOptions {
@@ -1178,23 +1100,23 @@ interface TransformOptions {
1178
1100
  * options.
1179
1101
  */
1180
1102
  cwd?: string;
1181
- /**
1182
- * Enable source map generation.
1183
- *
1184
- * When `true`, the `sourceMap` field of transform result objects will be populated.
1185
- *
1186
- * @default false
1187
- *
1188
- * @see {@link SourceMap}
1189
- */
1190
- sourcemap?: boolean;
1191
1103
  /** Set assumptions in order to produce smaller output. */
1192
1104
  assumptions?: CompilerAssumptions;
1193
1105
  /**
1194
1106
  * Configure how TypeScript is transformed.
1107
+ *
1108
+ * `typescript.declaration` is evaluated before all transforms.
1109
+ *
1195
1110
  * @see {@link https://oxc.rs/docs/guide/usage/transformer/typescript}
1196
1111
  */
1197
1112
  typescript?: TypeScriptOptions;
1113
+ /** Decorator plugin */
1114
+ decorator?: DecoratorOptions;
1115
+ /**
1116
+ * Third-party plugins to use.
1117
+ * @see {@link https://oxc.rs/docs/guide/usage/transformer/plugins}
1118
+ */
1119
+ plugins?: PluginsOptions;
1198
1120
  /**
1199
1121
  * Configure how TSX and JSX are transformed.
1200
1122
  * @see {@link https://oxc.rs/docs/guide/usage/transformer/jsx}
@@ -1217,31 +1139,32 @@ interface TransformOptions {
1217
1139
  target?: string | Array<string>;
1218
1140
  /** Behaviour for runtime helpers. */
1219
1141
  helpers?: Helpers;
1220
- /**
1221
- * Define Plugin
1222
- * @see {@link https://oxc.rs/docs/guide/usage/transformer/global-variable-replacement#define}
1223
- */
1224
- define?: Record<string, string>;
1225
1142
  /**
1226
1143
  * Inject Plugin
1144
+ *
1145
+ * Runs after all transforms.
1146
+ *
1227
1147
  * @see {@link https://oxc.rs/docs/guide/usage/transformer/global-variable-replacement#inject}
1228
1148
  */
1229
1149
  inject?: Record<string, string | [string, string]>;
1230
- /** Decorator plugin */
1231
- decorator?: DecoratorOptions;
1232
1150
  /**
1233
- * Enable the experimental [React Compiler](https://github.com/facebook/react/pull/36173).
1151
+ * Define Plugin
1152
+ *
1153
+ * Runs after the inject plugin.
1234
1154
  *
1235
- * `true` enables it with default options; an object enables it with the
1236
- * given options; `false` or omitted disables it. When enabled, the compiler
1237
- * runs as the first transform and memoizes React components and hooks.
1155
+ * @see {@link https://oxc.rs/docs/guide/usage/transformer/global-variable-replacement#define}
1238
1156
  */
1239
- reactCompiler?: boolean | ReactCompilerOptions;
1157
+ define?: Record<string, string>;
1240
1158
  /**
1241
- * Third-party plugins to use.
1242
- * @see {@link https://oxc.rs/docs/guide/usage/transformer/plugins}
1159
+ * Enable source map generation.
1160
+ *
1161
+ * When `true`, the `sourceMap` field of transform result objects will be populated.
1162
+ *
1163
+ * @default false
1164
+ *
1165
+ * @see {@link SourceMap}
1243
1166
  */
1244
- plugins?: PluginsOptions;
1167
+ sourcemap?: boolean;
1245
1168
  }
1246
1169
  interface TypeScriptOptions {
1247
1170
  jsxPragma?: string;
@@ -1535,7 +1458,7 @@ declare class TsconfigCache {
1535
1458
  /** Get the number of cached entries. */
1536
1459
  size(): number;
1537
1460
  }
1538
- type BindingBuiltinPluginName = 'builtin:bundle-analyzer' | 'builtin:esm-external-require' | 'builtin:isolated-declaration' | 'builtin:replace' | 'builtin:vite-alias' | 'builtin:vite-build-import-analysis' | 'builtin:vite-dynamic-import-vars' | 'builtin:vite-import-glob' | 'builtin:vite-json' | 'builtin:vite-load-fallback' | 'builtin:vite-manifest' | 'builtin:vite-module-preload-polyfill' | 'builtin:vite-react-refresh-wrapper' | 'builtin:vite-reporter' | 'builtin:vite-resolve' | 'builtin:vite-transform' | 'builtin:vite-wasm-fallback' | 'builtin:vite-web-worker-post' | 'builtin:oxc-runtime';
1461
+ type BindingBuiltinPluginName = 'builtin:bundle-analyzer' | 'builtin:esm-external-require' | 'builtin:isolated-declaration' | 'builtin:replace' | 'builtin:vite-alias' | 'builtin:vite-build-import-analysis' | 'builtin:vite-dynamic-import-vars' | 'builtin:vite-import-glob' | 'builtin:vite-json' | 'builtin:vite-load-fallback' | 'builtin:vite-manifest' | 'builtin:vite-module-preload-polyfill' | 'builtin:vite-react-refresh-wrapper' | 'builtin:vite-reporter' | 'builtin:vite-resolve' | 'builtin:vite-transform' | 'builtin:vite-web-worker-post' | 'builtin:oxc-runtime';
1539
1462
  interface BindingBundleAnalyzerPluginConfig {
1540
1463
  /** Output filename for the bundle analysis data (default: "analyze-data.json") */
1541
1464
  fileName?: string;
@@ -1543,7 +1466,16 @@ interface BindingBundleAnalyzerPluginConfig {
1543
1466
  format?: 'json' | 'md';
1544
1467
  }
1545
1468
  interface BindingBundleState {
1546
- lastFullBuildFailed: boolean;
1469
+ lastBuildErrored: boolean;
1470
+ /**
1471
+ * The stage of the last incremental failure, when `last_build_errored`
1472
+ * is true and the engine is in an incremental-failure state. Absent on
1473
+ * success and for an initial full-build failure (use
1474
+ * `last_build_errored` to detect that). The consumer can force a full
1475
+ * rebuild on the next page load when this is `Hmr`. See
1476
+ * `internal-docs/dev-engine/implementation.md` §12.
1477
+ */
1478
+ lastErrorStage?: BindingErrorStage;
1547
1479
  hasStaleOutput: boolean;
1548
1480
  }
1549
1481
  interface BindingClientHmrUpdate {
@@ -1705,6 +1637,16 @@ type BindingError = {
1705
1637
  type: 'NativeError';
1706
1638
  field0: NativeError;
1707
1639
  };
1640
+ /**
1641
+ * Which stage of an incremental dev build produced the last error.
1642
+ *
1643
+ * Mirrors `rolldown_dev::ErrorStage`. Surfaced on
1644
+ * [`crate::binding_dev_engine::BindingBundleState`] so the consumer can
1645
+ * treat an `Hmr`-stage failure as recoverable by forcing a full rebuild
1646
+ * on the next page load (HMR generation may itself be buggy). See
1647
+ * `internal-docs/dev-engine/implementation.md` §12.
1648
+ */
1649
+ type BindingErrorStage = 'Hmr' | 'Rebuild';
1708
1650
  interface BindingEsmExternalRequirePluginConfig {
1709
1651
  external: Array<BindingStringOrRegex>;
1710
1652
  skipDuplicateCheck?: boolean;
@@ -1759,13 +1701,6 @@ interface BindingMagicStringOptions {
1759
1701
  indentExclusionRanges?: Array<Array<number>> | Array<number>;
1760
1702
  ignoreList?: boolean;
1761
1703
  }
1762
- interface BindingModulePreloadOptions {
1763
- polyfill: boolean;
1764
- resolveDependencies?: (filename: string, deps: string[], context: {
1765
- hostId: string;
1766
- hostType: 'html' | 'js';
1767
- }) => string[];
1768
- }
1769
1704
  interface BindingModules {
1770
1705
  values: Array<BindingRenderedModule>;
1771
1706
  keys: Array<string>;
@@ -1794,16 +1729,6 @@ declare enum BindingRebuildStrategy {
1794
1729
  Auto = 1,
1795
1730
  Never = 2
1796
1731
  }
1797
- interface BindingRenderBuiltUrlConfig {
1798
- ssr: boolean;
1799
- type: 'asset' | 'public';
1800
- hostId: string;
1801
- hostType: 'js' | 'css' | 'html';
1802
- }
1803
- interface BindingRenderBuiltUrlRet {
1804
- relative?: boolean;
1805
- runtime?: string;
1806
- }
1807
1732
  interface BindingReplacePluginConfig {
1808
1733
  values: Record<string, string>;
1809
1734
  delimiters?: [string, string];
@@ -1852,6 +1777,13 @@ interface BindingTsconfigCompilerOptions {
1852
1777
  experimentalDecorators?: boolean;
1853
1778
  /** Enables decorator metadata emission. */
1854
1779
  emitDecoratorMetadata?: boolean;
1780
+ /** Enables all strict type-checking options. Used as the fallback for `strictNullChecks`. */
1781
+ strict?: boolean;
1782
+ /**
1783
+ * Enables strict null checks. Controls whether `null`/`undefined` are elided from
1784
+ * nullable-union `design:type` decorator metadata.
1785
+ */
1786
+ strictNullChecks?: boolean;
1855
1787
  /** Preserves module structure of imports/exports. */
1856
1788
  verbatimModuleSyntax?: boolean;
1857
1789
  /** Configures how class fields are emitted. */
@@ -1885,14 +1817,6 @@ interface BindingViteBuildImportAnalysisPluginConfig {
1885
1817
  optimizeModulePreloadRelativePaths: boolean;
1886
1818
  renderBuiltUrl: boolean;
1887
1819
  isRelativeBase: boolean;
1888
- v2?: BindingViteBuildImportAnalysisPluginV2Config;
1889
- }
1890
- interface BindingViteBuildImportAnalysisPluginV2Config {
1891
- isSsr: boolean;
1892
- urlBase: string;
1893
- decodedBase: string;
1894
- modulePreload: false | BindingModulePreloadOptions;
1895
- renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) => undefined | string | BindingRenderBuiltUrlRet;
1896
1820
  }
1897
1821
  interface BindingViteDynamicImportVarsPluginConfig {
1898
1822
  sourcemap?: boolean;
@@ -1914,7 +1838,6 @@ type BindingViteJsonPluginStringify = boolean | string;
1914
1838
  interface BindingViteManifestPluginConfig {
1915
1839
  root: string;
1916
1840
  outPath: string;
1917
- isEnableV2?: boolean;
1918
1841
  isLegacy?: (args: BindingNormalizedOptions) => boolean;
1919
1842
  cssEntries: () => Record<string, string>;
1920
1843
  }
@@ -21,7 +21,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
21
  value: mod,
22
22
  enumerable: true
23
23
  }) : target, mod));
24
- var __require = /* @__PURE__ */ createRequire(import.meta.url);
24
+ var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
25
25
  //#endregion
26
26
  //#region src/webcontainer-fallback.cjs
27
27
  var require_webcontainer_fallback = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -48,7 +48,7 @@ var require_webcontainer_fallback = /* @__PURE__ */ __commonJSMin(((exports, mod
48
48
  //#endregion
49
49
  //#region src/binding.cjs
50
50
  var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
51
- const { readFileSync } = __require("node:fs");
51
+ const { readFileSync } = __require("fs");
52
52
  let nativeBinding = null;
53
53
  const loadErrors = [];
54
54
  const isMusl = () => {
@@ -70,7 +70,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
70
70
  };
71
71
  const isMuslFromReport = () => {
72
72
  let report = null;
73
- if (typeof process.report?.getReport === "function") {
73
+ if (process.report && typeof process.report.getReport === "function") {
74
74
  process.report.excludeNetwork = true;
75
75
  report = process.report.getReport();
76
76
  }
@@ -103,7 +103,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
103
103
  try {
104
104
  const binding = __require("vite-plus/binding");
105
105
  const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
106
- if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
106
+ if (bindingPackageVersion !== "0.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
107
107
  return binding;
108
108
  } catch (e) {
109
109
  loadErrors.push(e);
@@ -117,13 +117,13 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
117
117
  try {
118
118
  const binding = __require("vite-plus/binding");
119
119
  const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
120
- if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
120
+ if (bindingPackageVersion !== "0.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
121
121
  return binding;
122
122
  } catch (e) {
123
123
  loadErrors.push(e);
124
124
  }
125
125
  } else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on Android ${process.arch}`));
126
- else if (process.platform === "win32") if (process.arch === "x64") if (process.config?.variables?.shlib_suffix === "dll.a" || process.config?.variables?.node_target_type === "shared_library") {
126
+ else if (process.platform === "win32") if (process.arch === "x64") if (process.config && process.config.variables && process.config.variables.shlib_suffix === "dll.a" || process.config && process.config.variables && process.config.variables.node_target_type === "shared_library") {
127
127
  try {
128
128
  return __require("./rolldown-binding.win32-x64-gnu.node");
129
129
  } catch (e) {
@@ -132,7 +132,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
132
132
  try {
133
133
  const binding = __require("vite-plus/binding");
134
134
  const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
135
- if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
135
+ if (bindingPackageVersion !== "0.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
136
136
  return binding;
137
137
  } catch (e) {
138
138
  loadErrors.push(e);
@@ -146,7 +146,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
146
146
  try {
147
147
  const binding = __require("vite-plus/binding");
148
148
  const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
149
- if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
149
+ if (bindingPackageVersion !== "0.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
150
150
  return binding;
151
151
  } catch (e) {
152
152
  loadErrors.push(e);
@@ -161,7 +161,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
161
161
  try {
162
162
  const binding = __require("vite-plus/binding");
163
163
  const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
164
- if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
164
+ if (bindingPackageVersion !== "0.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
165
165
  return binding;
166
166
  } catch (e) {
167
167
  loadErrors.push(e);
@@ -175,7 +175,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
175
175
  try {
176
176
  const binding = __require("vite-plus/binding");
177
177
  const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
178
- if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
178
+ if (bindingPackageVersion !== "0.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
179
179
  return binding;
180
180
  } catch (e) {
181
181
  loadErrors.push(e);
@@ -190,7 +190,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
190
190
  try {
191
191
  const binding = __require("vite-plus/binding");
192
192
  const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
193
- if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
193
+ if (bindingPackageVersion !== "0.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
194
194
  return binding;
195
195
  } catch (e) {
196
196
  loadErrors.push(e);
@@ -204,7 +204,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
204
204
  try {
205
205
  const binding = __require("vite-plus/binding");
206
206
  const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
207
- if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
207
+ if (bindingPackageVersion !== "0.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
208
208
  return binding;
209
209
  } catch (e) {
210
210
  loadErrors.push(e);
@@ -218,7 +218,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
218
218
  try {
219
219
  const binding = __require("vite-plus/binding");
220
220
  const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
221
- if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
221
+ if (bindingPackageVersion !== "0.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
222
222
  return binding;
223
223
  } catch (e) {
224
224
  loadErrors.push(e);
@@ -233,7 +233,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
233
233
  try {
234
234
  const binding = __require("vite-plus/binding");
235
235
  const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
236
- if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
236
+ if (bindingPackageVersion !== "0.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
237
237
  return binding;
238
238
  } catch (e) {
239
239
  loadErrors.push(e);
@@ -247,7 +247,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
247
247
  try {
248
248
  const binding = __require("vite-plus/binding");
249
249
  const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
250
- if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
250
+ if (bindingPackageVersion !== "0.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
251
251
  return binding;
252
252
  } catch (e) {
253
253
  loadErrors.push(e);
@@ -262,7 +262,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
262
262
  try {
263
263
  const binding = __require("vite-plus/binding");
264
264
  const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
265
- if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
265
+ if (bindingPackageVersion !== "0.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
266
266
  return binding;
267
267
  } catch (e) {
268
268
  loadErrors.push(e);
@@ -276,7 +276,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
276
276
  try {
277
277
  const binding = __require("vite-plus/binding");
278
278
  const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
279
- if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
279
+ if (bindingPackageVersion !== "0.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
280
280
  return binding;
281
281
  } catch (e) {
282
282
  loadErrors.push(e);
@@ -291,7 +291,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
291
291
  try {
292
292
  const binding = __require("vite-plus/binding");
293
293
  const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
294
- if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
294
+ if (bindingPackageVersion !== "0.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
295
295
  return binding;
296
296
  } catch (e) {
297
297
  loadErrors.push(e);
@@ -305,7 +305,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
305
305
  try {
306
306
  const binding = __require("vite-plus/binding");
307
307
  const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
308
- if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
308
+ if (bindingPackageVersion !== "0.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
309
309
  return binding;
310
310
  } catch (e) {
311
311
  loadErrors.push(e);
@@ -320,7 +320,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
320
320
  try {
321
321
  const binding = __require("vite-plus/binding");
322
322
  const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
323
- if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
323
+ if (bindingPackageVersion !== "0.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
324
324
  return binding;
325
325
  } catch (e) {
326
326
  loadErrors.push(e);
@@ -334,7 +334,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
334
334
  try {
335
335
  const binding = __require("vite-plus/binding");
336
336
  const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
337
- if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
337
+ if (bindingPackageVersion !== "0.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
338
338
  return binding;
339
339
  } catch (e) {
340
340
  loadErrors.push(e);
@@ -349,7 +349,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
349
349
  try {
350
350
  const binding = __require("vite-plus/binding");
351
351
  const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
352
- if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
352
+ if (bindingPackageVersion !== "0.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
353
353
  return binding;
354
354
  } catch (e) {
355
355
  loadErrors.push(e);
@@ -363,7 +363,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
363
363
  try {
364
364
  const binding = __require("vite-plus/binding");
365
365
  const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
366
- if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
366
+ if (bindingPackageVersion !== "0.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
367
367
  return binding;
368
368
  } catch (e) {
369
369
  loadErrors.push(e);
@@ -378,7 +378,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
378
378
  try {
379
379
  const binding = __require("vite-plus/binding");
380
380
  const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
381
- if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
381
+ if (bindingPackageVersion !== "0.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
382
382
  return binding;
383
383
  } catch (e) {
384
384
  loadErrors.push(e);
@@ -392,7 +392,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
392
392
  try {
393
393
  const binding = __require("vite-plus/binding");
394
394
  const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
395
- if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
395
+ if (bindingPackageVersion !== "0.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
396
396
  return binding;
397
397
  } catch (e) {
398
398
  loadErrors.push(e);
@@ -407,7 +407,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
407
407
  try {
408
408
  const binding = __require("vite-plus/binding");
409
409
  const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
410
- if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
410
+ if (bindingPackageVersion !== "0.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
411
411
  return binding;
412
412
  } catch (e) {
413
413
  loadErrors.push(e);
@@ -421,7 +421,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
421
421
  try {
422
422
  const binding = __require("vite-plus/binding");
423
423
  const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
424
- if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
424
+ if (bindingPackageVersion !== "0.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
425
425
  return binding;
426
426
  } catch (e) {
427
427
  loadErrors.push(e);
@@ -436,7 +436,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
436
436
  try {
437
437
  const binding = __require("vite-plus/binding");
438
438
  const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
439
- if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
439
+ if (bindingPackageVersion !== "0.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
440
440
  return binding;
441
441
  } catch (e) {
442
442
  loadErrors.push(e);
@@ -450,7 +450,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
450
450
  try {
451
451
  const binding = __require("vite-plus/binding");
452
452
  const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
453
- if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
453
+ if (bindingPackageVersion !== "0.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
454
454
  return binding;
455
455
  } catch (e) {
456
456
  loadErrors.push(e);
@@ -464,7 +464,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
464
464
  try {
465
465
  const binding = __require("vite-plus/binding");
466
466
  const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
467
- if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
467
+ if (bindingPackageVersion !== "0.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
468
468
  return binding;
469
469
  } catch (e) {
470
470
  loadErrors.push(e);
@@ -505,10 +505,14 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
505
505
  loadErrors.push(err);
506
506
  }
507
507
  if (!nativeBinding) {
508
- if (loadErrors.length > 0) throw new Error("Cannot find native binding. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.", { cause: loadErrors.reduce((err, cur) => {
509
- cur.cause = err;
510
- return cur;
511
- }) });
508
+ if (loadErrors.length > 0) {
509
+ const error = /* @__PURE__ */ new Error("Cannot find native binding. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.");
510
+ error.cause = loadErrors.reduce((err, cur) => {
511
+ cur.cause = err;
512
+ return cur;
513
+ });
514
+ throw error;
515
+ }
512
516
  throw new Error(`Failed to load native binding`);
513
517
  }
514
518
  module.exports = nativeBinding;
@@ -559,12 +563,12 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
559
563
  module.exports.BindingWatcherChangeData = nativeBinding.BindingWatcherChangeData;
560
564
  module.exports.BindingWatcherEvent = nativeBinding.BindingWatcherEvent;
561
565
  module.exports.ParallelJsPluginRegistry = nativeBinding.ParallelJsPluginRegistry;
562
- module.exports.ScheduledBuild = nativeBinding.ScheduledBuild;
563
566
  module.exports.TraceSubscriberGuard = nativeBinding.TraceSubscriberGuard;
564
567
  module.exports.TsconfigCache = nativeBinding.TsconfigCache;
565
568
  module.exports.BindingAttachDebugInfo = nativeBinding.BindingAttachDebugInfo;
566
569
  module.exports.BindingBuiltinPluginName = nativeBinding.BindingBuiltinPluginName;
567
570
  module.exports.BindingChunkModuleOrderBy = nativeBinding.BindingChunkModuleOrderBy;
571
+ module.exports.BindingErrorStage = nativeBinding.BindingErrorStage;
568
572
  module.exports.BindingLogLevel = nativeBinding.BindingLogLevel;
569
573
  module.exports.BindingPluginOrder = nativeBinding.BindingPluginOrder;
570
574
  module.exports.BindingPropertyReadSideEffects = nativeBinding.BindingPropertyReadSideEffects;