-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
expose类型生成,是否能支持.vue文件 #303
Comments
.vue文件模块是可以正常导出的,这个没问题 但是没有生成对应的模块d.ts类型声明 |
vue ts 要观察下 |
这个应该是 vue3的项目吧 |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
empShare: {
name: 'microApp',
exposes: {
'./App1': './src/App1.vue',
'./App2': './src/App2.tsx',
},
}
上面这种配置,如果emp build后,自动生成的d.ts文件,只包含ts和tsx对应文件的导出类型,不包含.vue文件导出类型。
看了下源码实现部分,正则在匹配路径只匹配了'**/*.(ts|tsx)',导致.vue文件无法导出类型。
具体实现可参考:https://github.com/element-plus/element-plus/blob/dev/internal/build/src/tasks/types-definitions.ts
The text was updated successfully, but these errors were encountered: