We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5db14fb commit 603e337Copy full SHA for 603e337
src/index.ts
@@ -31,7 +31,7 @@ export default function vueNestedSFC(): PluginOption {
31
/^(.*)(?:\/[^/]+){2}\.vue$/
32
)!;
33
if (!importerDir.startsWith(config.root)) {
34
- importerDir = config.root + importerDir;
+ importerDir = path.resolve(config.root, importerDir);
35
}
36
return normalizePath(path.resolve(importerDir, id));
37
@@ -50,7 +50,7 @@ export default function vueNestedSFC(): PluginOption {
50
const component = match[2];
51
52
if (!filename.startsWith(config.root)) {
53
- filename = config.root + filename;
+ filename = path.resolve(config.root, filename);
54
55
56
const descriptor = cache.getDescriptor(filename);
0 commit comments