father icon indicating copy to clipboard operation
father copied to clipboard

babel 编译,typescript 编译问题

Open hnsylitao opened this issue 4 years ago • 3 comments

esm babel cjs babel 使用ts 语法编译问题

hnsylitao avatar Apr 23 '20 07:04 hnsylitao

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

hnsylitao avatar Apr 23 '20 10:04 hnsylitao

experimentalDecorators typescript 装饰器语法问题 使用了装饰器语法 实际装饰最后的方法最后成为了undefined 能否改为 使用babel

hnsylitao avatar Apr 24 '20 07:04 hnsylitao

请问这个问题解决了吗?

zx930626 avatar Aug 21 '20 07:08 zx930626

father 4 已发布,可尝试升级到最新版:https://github.com/umijs/father/blob/master/docs/guide/migrate.md

旧版本不再维护,感谢支持

PeachScript avatar Aug 31 '22 11:08 PeachScript