Skip to content

Commit 4bc5517

Browse files
authored
Revert "fix: generate unique component id" (#548)
1 parent 7e59694 commit 4bc5517

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/plugin-vue/src/utils/descriptorCache.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function createDescriptor(
4040

4141
// ensure the path is normalized in a way that is consistent inside
4242
// project (relative to root) and on different systems.
43-
const normalizedPath = normalizePath(filename)
43+
const normalizedPath = normalizePath(path.relative(root, filename))
4444

4545
const componentIdGenerator = features?.componentIdGenerator
4646
if (componentIdGenerator === 'filepath') {
@@ -49,7 +49,7 @@ export function createDescriptor(
4949
descriptor.id = getHash(normalizedPath + source)
5050
} else if (typeof componentIdGenerator === 'function') {
5151
descriptor.id = componentIdGenerator(
52-
normalizePath(path.relative(root, filename)),
52+
normalizedPath,
5353
source,
5454
isProduction,
5555
getHash,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy