@voidzero-dev/vite-plus-core 0.3.3 → 1.0.0-rc.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.
@@ -3,7 +3,7 @@ import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/norma
3
3
  import { u as transformToRollupOutput } from "./shared/bindingify-input-options-CbBAjvu6.mjs";
4
4
  import { l as PluginDriver, s as validateOption, t as createBundlerOptions } from "./shared/create-bundler-option-wxuQPB7F.mjs";
5
5
  import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-CGhV1ebk.mjs";
6
- import { n as parseSync$1, t as parse$1 } from "./shared/parse-B-7jgDap.mjs";
6
+ import { n as parseSync$1, t as parse$1 } from "./shared/parse-6TJ5OMPh.mjs";
7
7
  import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-D9jwEbE4.mjs";
8
8
  import { a as minify$1, i as transformSync$1, n as resolveTsconfig, o as minifySync$1, r as transform$1, t as TsconfigCache$1 } from "./shared/resolve-tsconfig-Bf6oL9fm.mjs";
9
9
  import { pathToFileURL } from "node:url";
@@ -1,5 +1,5 @@
1
1
  import { c as logParseError, d as getCodeFrame, n as error, t as augmentCodeLocation, u as locate } from "./shared/logs-DmYCAKcW.mjs";
2
- import { n as parseSync, t as parse } from "./shared/parse-B-7jgDap.mjs";
2
+ import { n as parseSync, t as parse } from "./shared/parse-6TJ5OMPh.mjs";
3
3
  //#region src/parse-ast-index.ts
4
4
  function wrap(result, filename, sourceText) {
5
5
  if (result.errors.length > 0) return normalizeParseError(filename, sourceText, result.errors);
@@ -152,7 +152,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
152
152
  try {
153
153
  const binding = __require("@voidzero-dev/vite-plus-win32-x64-msvc");
154
154
  const bindingPackageVersion = __require("@voidzero-dev/vite-plus-win32-x64-msvc/package.json").version;
155
- if (bindingPackageVersion !== "0.3.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.3.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
155
+ if (bindingPackageVersion !== "1.0.0-rc.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
156
156
  return binding;
157
157
  } catch (e) {
158
158
  loadErrors.push(e);
@@ -181,7 +181,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
181
181
  try {
182
182
  const binding = __require("@voidzero-dev/vite-plus-win32-arm64-msvc");
183
183
  const bindingPackageVersion = __require("@voidzero-dev/vite-plus-win32-arm64-msvc/package.json").version;
184
- if (bindingPackageVersion !== "0.3.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.3.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
184
+ if (bindingPackageVersion !== "1.0.0-rc.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
185
185
  return binding;
186
186
  } catch (e) {
187
187
  loadErrors.push(e);
@@ -210,7 +210,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
210
210
  try {
211
211
  const binding = __require("@voidzero-dev/vite-plus-darwin-x64");
212
212
  const bindingPackageVersion = __require("@voidzero-dev/vite-plus-darwin-x64/package.json").version;
213
- if (bindingPackageVersion !== "0.3.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.3.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
213
+ if (bindingPackageVersion !== "1.0.0-rc.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
214
214
  return binding;
215
215
  } catch (e) {
216
216
  loadErrors.push(e);
@@ -224,7 +224,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
224
224
  try {
225
225
  const binding = __require("@voidzero-dev/vite-plus-darwin-arm64");
226
226
  const bindingPackageVersion = __require("@voidzero-dev/vite-plus-darwin-arm64/package.json").version;
227
- if (bindingPackageVersion !== "0.3.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.3.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
227
+ if (bindingPackageVersion !== "1.0.0-rc.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
228
228
  return binding;
229
229
  } catch (e) {
230
230
  loadErrors.push(e);
@@ -271,7 +271,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
271
271
  try {
272
272
  const binding = __require("@voidzero-dev/vite-plus-linux-x64-musl");
273
273
  const bindingPackageVersion = __require("@voidzero-dev/vite-plus-linux-x64-musl/package.json").version;
274
- if (bindingPackageVersion !== "0.3.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.3.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
274
+ if (bindingPackageVersion !== "1.0.0-rc.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
275
275
  return binding;
276
276
  } catch (e) {
277
277
  loadErrors.push(e);
@@ -285,7 +285,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
285
285
  try {
286
286
  const binding = __require("@voidzero-dev/vite-plus-linux-x64-gnu");
287
287
  const bindingPackageVersion = __require("@voidzero-dev/vite-plus-linux-x64-gnu/package.json").version;
288
- if (bindingPackageVersion !== "0.3.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.3.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
288
+ if (bindingPackageVersion !== "1.0.0-rc.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
289
289
  return binding;
290
290
  } catch (e) {
291
291
  loadErrors.push(e);
@@ -301,7 +301,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
301
301
  try {
302
302
  const binding = __require("@voidzero-dev/vite-plus-linux-arm64-musl");
303
303
  const bindingPackageVersion = __require("@voidzero-dev/vite-plus-linux-arm64-musl/package.json").version;
304
- if (bindingPackageVersion !== "0.3.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.3.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
304
+ if (bindingPackageVersion !== "1.0.0-rc.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
305
305
  return binding;
306
306
  } catch (e) {
307
307
  loadErrors.push(e);
@@ -315,7 +315,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
315
315
  try {
316
316
  const binding = __require("@voidzero-dev/vite-plus-linux-arm64-gnu");
317
317
  const bindingPackageVersion = __require("@voidzero-dev/vite-plus-linux-arm64-gnu/package.json").version;
318
- if (bindingPackageVersion !== "0.3.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.3.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
318
+ if (bindingPackageVersion !== "1.0.0-rc.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
319
319
  return binding;
320
320
  } catch (e) {
321
321
  loadErrors.push(e);
@@ -1,5 +1,5 @@
1
1
  import { n as __toESM, t as require_binding } from "./binding-BbrDfv1x.mjs";
2
- //#region ../../../node_modules/.pnpm/oxc-parser@0.150.0/node_modules/oxc-parser/src-js/wrap.js
2
+ //#region ../../../node_modules/.pnpm/oxc-parser@0.151.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;
@@ -2,7 +2,7 @@ import { b as BindingTsconfigRawOptions, y as BindingTsconfigCompilerOptions } 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-DK_nCt9j.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.150.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
5
+ //#region ../../../node_modules/.pnpm/oxc-parser@0.151.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-B-7jgDap.mjs";
1
+ import { n as parseSync, t as parse } from "./shared/parse-6TJ5OMPh.mjs";
2
2
  import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-Bf6oL9fm.mjs";
3
- //#region ../../../node_modules/.pnpm/oxc-parser@0.150.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
3
+ //#region ../../../node_modules/.pnpm/oxc-parser@0.151.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.150.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
2011
+ //#region ../../../node_modules/.pnpm/oxc-parser@0.151.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.150.0/node_modules/oxc-parser/src-js/visit/visitor.js
2181
+ //#region ../../../node_modules/.pnpm/oxc-parser@0.151.0/node_modules/oxc-parser/src-js/visit/visitor.js
2182
2182
  let compiledVisitor;
2183
2183
  function createCompiledVisitor() {
2184
2184
  compiledVisitor = [];
@@ -37862,7 +37862,7 @@ function esbuildBannerFooterCompatPlugin(config) {
37862
37862
  };
37863
37863
  }
37864
37864
  //#endregion
37865
- //#region ../../node_modules/.pnpm/@vitest+utils@4.1.11/node_modules/@vitest/utils/dist/helpers.js
37865
+ //#region ../../node_modules/.pnpm/@vitest+utils@5.0.1/node_modules/@vitest/utils/dist/helpers.js
37866
37866
  function notNullish(v) {
37867
37867
  return v != null;
37868
37868
  }
@@ -37870,7 +37870,7 @@ function isPrimitive(value) {
37870
37870
  return value === null || typeof value !== "function" && typeof value !== "object";
37871
37871
  }
37872
37872
  //#endregion
37873
- //#region ../../node_modules/.pnpm/@vitest+utils@4.1.11/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js
37873
+ //#region ../../node_modules/.pnpm/@vitest+utils@5.0.1/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js
37874
37874
  const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
37875
37875
  function normalizeWindowsPath(input = "") {
37876
37876
  if (!input) return input;
@@ -37949,7 +37949,7 @@ const isAbsolute$2 = function(p) {
37949
37949
  return _IS_ABSOLUTE_RE.test(p);
37950
37950
  };
37951
37951
  //#endregion
37952
- //#region ../../node_modules/.pnpm/@vitest+utils@4.1.11/node_modules/@vitest/utils/dist/source-map.js
37952
+ //#region ../../node_modules/.pnpm/@vitest+utils@5.0.1/node_modules/@vitest/utils/dist/source-map.js
37953
37953
  var comma = ",".charCodeAt(0);
37954
37954
  var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
37955
37955
  var intToChar = /* @__PURE__ */ new Uint8Array(64);
@@ -38142,6 +38142,8 @@ const stackIgnorePatterns = [
38142
38142
  /\/@vitest\/\w+\/dist\//,
38143
38143
  "/vitest/dist/",
38144
38144
  "/vitest/src/",
38145
+ "/packages/expect/src/",
38146
+ "/packages/snapshot/src/",
38145
38147
  "/node_modules/chai/",
38146
38148
  "/node_modules/tinyspy/",
38147
38149
  "/vite/dist/node/module-runner",
@@ -38157,7 +38159,8 @@ const stackIgnorePatterns = [
38157
38159
  /__vitest_test__/,
38158
38160
  /__vitest_browser__/,
38159
38161
  "/@id/__x00__vitest/browser",
38160
- /\/deps\/vitest_/
38162
+ /\/deps\/vitest_/,
38163
+ "/deps/vitest.js"
38161
38164
  ];
38162
38165
  const NOW_LENGTH = Date.now().toString().length;
38163
38166
  const REGEXP_VITEST = new RegExp(`vitest=\\d{${NOW_LENGTH}}`);
@@ -38242,15 +38245,20 @@ function parseStacktrace(stack, options = {}) {
38242
38245
  if (options.getUrlId) stack.file = options.getUrlId(stack.file);
38243
38246
  const map = options.getSourceMap?.(stack.file);
38244
38247
  if (!map || typeof map !== "object" || !map.version) return shouldFilter(ignoreStackEntries, stack.file) ? null : stack;
38245
- const position = getOriginalPosition(new DecodedMap(map, stack.file), stack);
38248
+ const traceMap = new DecodedMap(map, stack.file);
38249
+ if (stack.line <= 0 || stack.column <= 0) return stack;
38250
+ const position = getOriginalPosition(traceMap, {
38251
+ line: stack.line,
38252
+ column: stack.column - 1
38253
+ });
38246
38254
  if (!position) return stack;
38247
38255
  const { line, column, source, name } = position;
38248
38256
  let file = source || stack.file;
38249
- if (file.match(/\/\w:\//)) file = file.slice(1);
38257
+ if (/\/\w:\//.test(file)) file = file.slice(1);
38250
38258
  if (shouldFilter(ignoreStackEntries, file)) return null;
38251
38259
  if (line != null && column != null) return {
38252
38260
  line,
38253
- column,
38261
+ column: column + 1,
38254
38262
  file,
38255
38263
  method: name || stack.method
38256
38264
  };
@@ -38281,6 +38289,7 @@ function parseErrorStacktrace(e, options = {}) {
38281
38289
  return stackFrames;
38282
38290
  }
38283
38291
  var DecodedMap = class {
38292
+ map;
38284
38293
  _encoded;
38285
38294
  _decoded;
38286
38295
  _decodedMemo;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voidzero-dev/vite-plus-core",
3
- "version": "0.3.3",
3
+ "version": "1.0.0-rc.0",
4
4
  "description": "The Unified Toolchain for the Web",
5
5
  "homepage": "https://viteplus.dev/guide",
6
6
  "bugs": {
@@ -107,8 +107,8 @@
107
107
  "./types/internal/*": null
108
108
  },
109
109
  "dependencies": {
110
- "@oxc-project/runtime": "=0.150.0",
111
- "@oxc-project/types": "=0.150.0",
110
+ "@oxc-project/runtime": "=0.151.0",
111
+ "@oxc-project/types": "=0.151.0",
112
112
  "lightningcss": "^1.33.0",
113
113
  "postcss": "^8.5.6",
114
114
  "yuku-codegen": "^0.9.3",
@@ -119,15 +119,15 @@
119
119
  "@emnapi/core": "2.0.0-alpha.5",
120
120
  "@emnapi/runtime": "2.0.0-alpha.5",
121
121
  "@napi-rs/cli": "^3.10.0",
122
- "@oxc-node/cli": "^0.1.2",
122
+ "@oxc-node/cli": "^0.1.3",
123
123
  "@tsdown/css": "^0.23.0",
124
124
  "@tsdown/exe": "^0.23.0",
125
125
  "@vitejs/devtools": "^0.7.1",
126
126
  "es-module-lexer": "^1.7.0",
127
127
  "hookable": "^6.0.1",
128
128
  "magic-string": "^0.30.21",
129
- "oxc-parser": "=0.150.0",
130
- "oxfmt": "=0.68.0",
129
+ "oxc-parser": "=0.151.0",
130
+ "oxfmt": "=0.70.0",
131
131
  "picocolors": "^1.1.1",
132
132
  "picomatch": "^4.0.2",
133
133
  "pkg-types": "^2.3.0",
@@ -139,7 +139,7 @@
139
139
  "tinyglobby": "^0.2.15",
140
140
  "tree-kill": "^1.2.2",
141
141
  "tsdown": "^0.23.0",
142
- "vite": "npm:@voidzero-dev/vite-plus-core@0.3.3"
142
+ "vite": "npm:@voidzero-dev/vite-plus-core@1.0.0-rc.0"
143
143
  },
144
144
  "peerDependencies": {
145
145
  "@arethetypeswrong/core": "^0.18.1",
@@ -215,14 +215,14 @@
215
215
  },
216
216
  "optionalDependencies": {
217
217
  "fsevents": "~2.3.3",
218
- "@voidzero-dev/vite-plus-darwin-arm64": "0.3.3",
219
- "@voidzero-dev/vite-plus-darwin-x64": "0.3.3",
220
- "@voidzero-dev/vite-plus-linux-arm64-gnu": "0.3.3",
221
- "@voidzero-dev/vite-plus-linux-arm64-musl": "0.3.3",
222
- "@voidzero-dev/vite-plus-linux-x64-gnu": "0.3.3",
223
- "@voidzero-dev/vite-plus-linux-x64-musl": "0.3.3",
224
- "@voidzero-dev/vite-plus-win32-x64-msvc": "0.3.3",
225
- "@voidzero-dev/vite-plus-win32-arm64-msvc": "0.3.3"
218
+ "@voidzero-dev/vite-plus-darwin-arm64": "1.0.0-rc.0",
219
+ "@voidzero-dev/vite-plus-darwin-x64": "1.0.0-rc.0",
220
+ "@voidzero-dev/vite-plus-linux-arm64-gnu": "1.0.0-rc.0",
221
+ "@voidzero-dev/vite-plus-linux-arm64-musl": "1.0.0-rc.0",
222
+ "@voidzero-dev/vite-plus-linux-x64-gnu": "1.0.0-rc.0",
223
+ "@voidzero-dev/vite-plus-linux-x64-musl": "1.0.0-rc.0",
224
+ "@voidzero-dev/vite-plus-win32-x64-msvc": "1.0.0-rc.0",
225
+ "@voidzero-dev/vite-plus-win32-arm64-msvc": "1.0.0-rc.0"
226
226
  },
227
227
  "engines": {
228
228
  "node": "^20.19.0 || ^22.18.0 || >=24.11.0"