File tree 1 file changed +2
-2
lines changed
packages/plugin-vue/src/utils
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export function createDescriptor(
40
40
41
41
// ensure the path is normalized in a way that is consistent inside
42
42
// project (relative to root) and on different systems.
43
- const normalizedPath = normalizePath ( path . relative ( root , filename ) )
43
+ const normalizedPath = normalizePath ( filename )
44
44
45
45
const componentIdGenerator = features ?. componentIdGenerator
46
46
if ( componentIdGenerator === 'filepath' ) {
@@ -49,7 +49,7 @@ export function createDescriptor(
49
49
descriptor . id = getHash ( normalizedPath + source )
50
50
} else if ( typeof componentIdGenerator === 'function' ) {
51
51
descriptor . id = componentIdGenerator (
52
- normalizedPath ,
52
+ normalizePath ( path . relative ( root , filename ) ) ,
53
53
source ,
54
54
isProduction ,
55
55
getHash ,
You can’t perform that action at this time.
0 commit comments