@vizejs/vite-plugin 0.152.0 → 0.153.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.
- package/dist/index.mjs +7 -4
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -566,10 +566,13 @@ const vueResolvableFromRootCache = /* @__PURE__ */ new Map();
|
|
|
566
566
|
function isVueResolvableFromRoot(root) {
|
|
567
567
|
let cached = vueResolvableFromRootCache.get(root);
|
|
568
568
|
if (cached === void 0) {
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
569
|
+
const rootNodeModules = path.join(root, "node_modules");
|
|
570
|
+
const directPackageJson = path.join(rootNodeModules, "vue", "package.json");
|
|
571
|
+
cached = fs.existsSync(directPackageJson);
|
|
572
|
+
if (!cached) try {
|
|
573
|
+
const resolved = createRequire(path.join(root, "__vize_probe__.js")).resolve("vue/package.json");
|
|
574
|
+
const relative = path.relative(rootNodeModules, resolved);
|
|
575
|
+
cached = relative !== "" && !relative.startsWith("..") && !path.isAbsolute(relative);
|
|
573
576
|
} catch {}
|
|
574
577
|
vueResolvableFromRootCache.set(root, cached);
|
|
575
578
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizejs/vite-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.153.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.
|
|
42
|
+
"@vizejs/native": "0.153.0",
|
|
43
43
|
"tinyglobby": "0.2.16",
|
|
44
|
-
"vize": "0.
|
|
44
|
+
"vize": "0.153.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/node": "25.7.0",
|