Skip to content

Commit

Permalink
fix: 修复 tsx 组件不识别
Browse files Browse the repository at this point in the history
  • Loading branch information
markthree committed Nov 10, 2022
1 parent dd2d141 commit f5c4bc5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion presets/tov.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ export default () => {
}),
// https://github.com/posva/unplugin-vue-router
VueRouter({
extensions: ['md', 'vue'],
routesFolder: 'src/pages',
extensions: ['md', 'vue', 'tsx'],
dts: 'presets/types/type-router.d.ts',
}),
// 模块自动加载
Expand Down Expand Up @@ -88,6 +88,7 @@ export default () => {
}),
// 组件自动按需引入
Components({
extensions: ['md', 'vue', 'tsx'],
dts: resolve(__dirname, './types/components.d.ts'),
types: [
{
Expand Down

0 comments on commit f5c4bc5

Please sign in to comment.