icepkg
icepkg copied to clipboard
生成的 .d.ts 文件不支持 alias
问题和 https://github.com/microsoft/TypeScript/issues/26722#issuecomment-516935532 和 https://github.com/microsoft/TypeScript/issues/10866 的问题是一致的
现在的情况是:
- 单文件编译通过 babel-plugin-module-resolver 实现的,没问题
- 类型编译走的 tsc,不支持(参考上面两个 issue),有问题
在业务侧很难注入这个插件,希望可以参考下
https://github.com/microsoft/TypeScript/issues/10866#issuecomment-456436702
https://dev.to/larswaechter/path-aliases-with-typescript-in-nodejs-4353