father icon indicating copy to clipboard operation
father copied to clipboard

umd模式构建的语法错误问题

Open milobluebell opened this issue 4 years ago • 1 comments

What happens?

使用umd模式构建,原先通过lint的代码依然semantic error。修了一个又一个,有点烦

Mini Showcase Repository(REQUIRED)

https://github.com/milobluebell/mlz-admin

How To Reproduce

** 直接使用运行sudo npm run dist,即可看到在umd构建时的错误。但是如果去掉father.ts的umd构建,则可以成功。说明umd和esm/cjs走了不同的lint策略

Context

  • Father Version: ^1.17.2
  • Node Version: v10.21.0
  • Platform: macOS catalina 10.15.5 (19F101)

@sorrycc

milobluebell avatar Jun 27 '20 04:06 milobluebell

请问最后咋解决的呢? @milobluebell

0820Jones avatar Jun 23 '22 02:06 0820Jones

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

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

PeachScript avatar Aug 31 '22 11:08 PeachScript