We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e59694 commit 4bc5517Copy full SHA for 4bc5517
packages/plugin-vue/src/utils/descriptorCache.ts
@@ -40,7 +40,7 @@ export function createDescriptor(
40
41
// ensure the path is normalized in a way that is consistent inside
42
// project (relative to root) and on different systems.
43
- const normalizedPath = normalizePath(filename)
+ const normalizedPath = normalizePath(path.relative(root, filename))
44
45
const componentIdGenerator = features?.componentIdGenerator
46
if (componentIdGenerator === 'filepath') {
@@ -49,7 +49,7 @@ export function createDescriptor(
49
descriptor.id = getHash(normalizedPath + source)
50
} else if (typeof componentIdGenerator === 'function') {
51
descriptor.id = componentIdGenerator(
52
- normalizePath(path.relative(root, filename)),
+ normalizedPath,
53
source,
54
isProduction,
55
getHash,
0 commit comments