father
father copied to clipboard
【rollup打包问题】如何将Type-Only写法的ts定义转成低版本支持
https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html#type-only-imports-and-export
打包前

打包后的ts定义文件

export type的定义在3.8以下的ts中不支持,怎么配置成在打包之后自动去除上图圈中的位置呢
@PeachScript
配置文件:

father 4 已发布,可尝试升级到最新版:https://github.com/umijs/father/blob/master/docs/guide/migrate.md
旧版本不再维护,感谢支持