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
如何使用Resolvers?有没有示例? #293
Comments
你能不能写个文档 示例呢 你文档只有一些方法描述。 谢谢 |
你可以使用 你可以查看已有的 Resolver 代码了解它们是如何工作的,编写 Resolver 需要你对 TypeScript 编译有一定的基础了解,它接受一些文件的原始信息和 TypeScript 编译相关的对象,需返回转换后的 dts 文件路径和内容。 |
@qmhc 谢谢 |
当人们使用一样东西来处理某些东西,会更倾向于用它来处理更多的东西,就像如果你在使用 Vue,你会更倾向使用 Vue 编写的库,而不是原生 js 编写的。 当然你提的这个可以作为后面的开发计划,为其提供一个可单独使用的途径。 |
|
老哥,你的这个问题解决没,在monorepo下面,如果设置了paths,声明文件确实是会被转换成相对路径,但是如果用aliasesExclude忽略掉路径别名的话,最终生成的文件里面,又会把其他monorepo仓库下的声明也合并到当前仓库,我们应该遇到的是同样的问题。 |
我这两天也是遇到了类似的问题。最终也是通过 不过因为我的组件有很多secondary entries,所以用了正则匹配去处理别名排除 |
Description
我想该这个路径,我需要怎么写解析器呢?
Suggested solution
我想该这个路径,我需要怎么写解析器呢?
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: