We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
antfu
Learn more about funding links in repositories.
Report abuse
1 parent edfae07 commit 162be5fCopy full SHA for 162be5f
example/vite.config.ts
@@ -6,7 +6,7 @@ import Markdown from 'vite-plugin-md'
6
7
const config: UserConfig = {
8
alias: {
9
- '/~/': path.resolve(__dirname, 'src'),
+ '/~/': `${path.resolve(__dirname, 'src')}/`,
10
},
11
plugins: [
12
Vue(),
src/index.ts
@@ -27,6 +27,7 @@ function VitePluginComponents(options: Options = {}): Plugin {
27
28
return {
29
name: 'vite-plugin-components',
30
+ enforce: 'post',
31
configResolved(config) {
32
ctx.viteConfig = config
33
0 commit comments