Skip to content

Commit 2634653

Browse files
committed
chore: cleanup
1 parent 16714e8 commit 2634653

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

examples/naive-ui/components.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
declare module 'vue' {
55
export interface GlobalComponents {
6-
6+
77
}
88
}
99

examples/naive-ui/vite.config.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
1-
import path from 'path'
21
import { UserConfig } from 'vite'
32
import Vue from '@vitejs/plugin-vue'
43
import ViteComponents, { NaiveUiResolver } from 'vite-plugin-components'
54

65
const config: UserConfig = {
7-
resolve: {
8-
alias: {
9-
'/~/': `${path.resolve(__dirname, 'src')}/`,
10-
},
11-
},
126
plugins: [
13-
Vue({
14-
include: [/\.vue$/, /\.md$/],
15-
}),
7+
Vue(),
168
ViteComponents({
179
customComponentResolvers: [
1810
NaiveUiResolver(),

src/constants.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ export const defaultOptions: Required<Options> = {
2020
customComponentResolvers: [],
2121

2222
importPathTransform: v => v,
23+
24+
allowOverrides: false,
2325
}

0 commit comments

Comments
 (0)