Skip to content

Commit 162be5f

Browse files
committedJan 10, 2021
fix: enforce plugin resolves on post
1 parent edfae07 commit 162be5f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎example/vite.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Markdown from 'vite-plugin-md'
66

77
const config: UserConfig = {
88
alias: {
9-
'/~/': path.resolve(__dirname, 'src'),
9+
'/~/': `${path.resolve(__dirname, 'src')}/`,
1010
},
1111
plugins: [
1212
Vue(),

‎src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ function VitePluginComponents(options: Options = {}): Plugin {
2727

2828
return {
2929
name: 'vite-plugin-components',
30+
enforce: 'post',
3031
configResolved(config) {
3132
ctx.viteConfig = config
3233
},

0 commit comments

Comments
 (0)
Please sign in to comment.