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 d93f90c commit cedb411Copy full SHA for cedb411
src/context.ts
@@ -99,6 +99,8 @@ export class Context {
99
}
100
101
relative(path: string) {
102
+ if (path.startsWith('/') && !path.startsWith(this.root))
103
+ return path.slice(1).replace(/\\/g, '/')
104
return relative(this.root, path).replace(/\\/g, '/')
105
106
test/fixture/src/main.ts
@@ -1,5 +1,5 @@
1
import { createApp } from 'vue'
2
-import App from './App.vue'
+import App from '/src/App.vue'
3
import './index.css'
4
5
createApp(App).mount('#app')
0 commit comments