@vizejs/vite-plugin 0.234.0 → 0.236.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 (2) hide show
  1. package/dist/index.mjs +7 -6
  2. package/package.json +3 -3
package/dist/index.mjs CHANGED
@@ -978,14 +978,10 @@ async function resolveProjectVueRuntime(ctx, state, id, importer, isSsrRequest)
978
978
  }
979
979
  return null;
980
980
  }
981
- const pnpmHoistedEntry = resolveVueBundlerEntryFromPnpmHoist(state, id, viteImporter);
982
- if (pnpmHoistedEntry) {
983
- state.logger.log(`resolveId: resolved project pnpm-hoisted Vue runtime to ${pnpmHoistedEntry}`);
984
- return pnpmHoistedEntry;
985
- }
986
981
  try {
987
982
  const resolved = await resolveWithVite(ctx, state, id, viteImporter, { skipSelf: true });
988
- if (resolved && !isOptimizedVueDependency(resolved.id)) {
983
+ if (resolved && isOptimizedVueDependency(resolved.id)) return null;
984
+ if (resolved) {
989
985
  const projectLocalEntry = resolveProjectLocalPnpmVueRuntime(state, resolved.id);
990
986
  if (projectLocalEntry) {
991
987
  state.logger.log(`resolveId: resolved project-local Vue runtime to ${projectLocalEntry}`);
@@ -993,6 +989,11 @@ async function resolveProjectVueRuntime(ctx, state, id, importer, isSsrRequest)
993
989
  }
994
990
  }
995
991
  } catch {}
992
+ const pnpmHoistedEntry = resolveVueBundlerEntryFromPnpmHoist(state, id, viteImporter);
993
+ if (pnpmHoistedEntry) {
994
+ state.logger.log(`resolveId: resolved project pnpm-hoisted Vue runtime to ${pnpmHoistedEntry}`);
995
+ return pnpmHoistedEntry;
996
+ }
996
997
  const importerLocalEntry = resolveVueBundlerEntryWithNode(state, id, viteImporter);
997
998
  const projectLocalEntry = importerLocalEntry ? resolveProjectLocalPnpmVueRuntime(state, importerLocalEntry) : null;
998
999
  if (projectLocalEntry) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizejs/vite-plugin",
3
- "version": "0.234.0",
3
+ "version": "0.236.0",
4
4
  "description": "High-performance native Vite plugin for Vue SFC compilation powered by Vize",
5
5
  "keywords": [
6
6
  "compiler",
@@ -39,9 +39,9 @@
39
39
  "access": "public"
40
40
  },
41
41
  "dependencies": {
42
- "@vizejs/native": "0.234.0",
42
+ "@vizejs/native": "0.236.0",
43
43
  "tinyglobby": "0.2.16",
44
- "vize": "0.234.0"
44
+ "vize": "0.236.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/node": "25.9.2",