File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/plugin-vue/src/utils Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments