Skip to content

Commit 7d9eef1

Browse files
authored
chore: fix wrong component path in components.d.ts of example (unplugin#451)
1 parent 10b7985 commit 7d9eef1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/vite-vue3/components.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ declare module '@vue/runtime-core' {
2222
IRiApps2Line: typeof import('~icons/ri/apps2-line')['default']
2323
MarkdownA: typeof import('./src/components/MarkdownA.md')['default']
2424
MarkdownB: typeof import('./src/components/MarkdownB.md')['default']
25-
MyCustom: typeof import('./../../../../../src/CustomResolved.vue')['default']
25+
MyCustom: typeof import('./src/CustomResolved.vue')['default']
2626
Recursive: typeof import('./src/components/Recursive.vue')['default']
2727
RouterLink: typeof import('vue-router')['RouterLink']
2828
RouterView: typeof import('vue-router')['RouterView']

examples/vite-vue3/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const config: UserConfig = {
3030
resolvers: [
3131
(name) => {
3232
if (name === 'MyCustom')
33-
return '/src/CustomResolved.vue'
33+
return path.resolve(__dirname, 'src/CustomResolved.vue').replaceAll('\\', '/')
3434
},
3535
VantResolver(),
3636
IconsResolver({

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy