father
father copied to clipboard
babel 编译,typescript 编译问题
esm babel cjs babel 使用ts 语法编译问题
import { IBundleOptions } from 'father';
const options: IBundleOptions = {
entry: 'src/index.ts',
esm:{
type:'babel',
importLibToEs: true
},
cjs: 'babel',
cssModules: true,
// doc: { typescript: true },
};
export default options;
less 样式文件编译最后不是css module
experimentalDecorators typescript 装饰器语法问题 使用了装饰器语法 实际装饰最后的方法最后成为了undefined 能否改为 使用babel
请问这个问题解决了吗?
father 4 已发布,可尝试升级到最新版:https://github.com/umijs/father/blob/master/docs/guide/migrate.md
旧版本不再维护,感谢支持