Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46d3d65 commit 2704e85Copy full SHA for 2704e85
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(path.relative(root, filename))
+ const normalizedPath = normalizePath(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
- normalizedPath,
+ normalizePath(path.relative(root, filename)),
53
source,
54
isProduction,
55
getHash,
0 commit comments