We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09d18a4 commit f3411ccCopy full SHA for f3411cc
src/parser.ts
@@ -1,7 +1,7 @@
1
import fsp from 'fs/promises'
2
import { performance } from 'perf_hooks'
3
import { existsSync } from 'fs'
4
-import { dirname, join } from 'pathe'
+import { dirname, join, relative } from 'pathe'
5
import { resolveModule } from '@nuxt/kit'
6
import { createComponentMetaCheckerByJsonConfig } from 'vue-component-meta'
7
import consola from 'consola'
@@ -39,7 +39,7 @@ export function useComponentMetaParser (
39
acc[component.pascalName] = {
40
...component,
41
fullPath: filePath,
42
- filePath: filePath.replace(rootDir, ''),
+ filePath: relative(rootDir, filePath),
43
meta: {
44
props: [],
45
slots: [],
0 commit comments