@vizejs/vite-plugin 0.271.0 → 0.272.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 +3 -3
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1126,7 +1126,7 @@ async function resolveAliasedVueImport(ctx, state, id, importer, isSsrRequest, h
|
|
|
1126
1126
|
const realPath = viteResolved ? normalizeResolvedVuePath(viteResolved.id) : null;
|
|
1127
1127
|
if (!realPath) return null;
|
|
1128
1128
|
const isResolvedNodeModules = realPath.includes("node_modules");
|
|
1129
|
-
if (!handleNodeModules && isResolvedNodeModules) {
|
|
1129
|
+
if (!handleNodeModules && preserveQueryAsPath && isResolvedNodeModules) {
|
|
1130
1130
|
state.logger.log(`resolveId: skipping resolved node_modules path ${realPath}`);
|
|
1131
1131
|
return null;
|
|
1132
1132
|
}
|
|
@@ -1380,7 +1380,7 @@ async function resolveIdHook(ctx, state, id, importer, options) {
|
|
|
1380
1380
|
const handleNodeModules = state.mergedOptions.handleNodeModulesVue ?? true;
|
|
1381
1381
|
const preserveQueryAsPath = hasNuxtComponentQuery(request);
|
|
1382
1382
|
const vueRequestPath = request.path;
|
|
1383
|
-
if (!handleNodeModules && vueRequestPath.includes("node_modules")) {
|
|
1383
|
+
if (!handleNodeModules && preserveQueryAsPath && vueRequestPath.includes("node_modules")) {
|
|
1384
1384
|
state.logger.log(`resolveId: skipping node_modules import ${id}`);
|
|
1385
1385
|
return null;
|
|
1386
1386
|
}
|
|
@@ -1391,7 +1391,7 @@ async function resolveIdHook(ctx, state, id, importer, options) {
|
|
|
1391
1391
|
if (aliased) return aliased;
|
|
1392
1392
|
}
|
|
1393
1393
|
const isNodeModulesPath = resolved.includes("node_modules");
|
|
1394
|
-
if (!handleNodeModules && isNodeModulesPath) {
|
|
1394
|
+
if (!handleNodeModules && preserveQueryAsPath && isNodeModulesPath) {
|
|
1395
1395
|
state.logger.log(`resolveId: skipping node_modules path ${resolved}`);
|
|
1396
1396
|
return null;
|
|
1397
1397
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizejs/vite-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.272.0",
|
|
4
4
|
"description": "High-performance native Vite plugin for Vue SFC compilation powered by Vize",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"compiler",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@vizejs/native": "0.
|
|
43
|
+
"@vizejs/native": "0.272.0",
|
|
44
44
|
"tinyglobby": "0.2.16",
|
|
45
|
-
"vize": "0.
|
|
45
|
+
"vize": "0.272.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/node": "25.9.2",
|