Milo

Results 6 issues of Milo

@dntzhang 你好 之前听过你演讲。当时听到了omi,但一直没用过。最近考虑做一个低代码平台。你觉得用omi可行性如何?是否有其它建议和好点子呢? 找不到need-help和dissuz标签。

你好,我在自己的组件中引用了 @ant-design/icons/es/index.js下的`createFromIconfontCN`方法,伪代码大致这样: ```ts import { createFromIconfontCN as createFromIconfont } from '@ant-design/icons/es'; const Icon = createFromIconfont({ scriptUrl: `www.baidu.com/abcd.js`, }); export default Icon; ``` 打包成组件后,在另一个项目引用它,在那儿经webpack analyzer发现,整个Icon包1.23mb的东西都被引进来了👇 ![image](https://user-images.githubusercontent.com/11535146/83290652-8952ab80-a219-11ea-88fd-1446c0500323.png)

如题。 请问如何有什么好的解决方法吗?

## 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...

## Question 我在global.d.ts声明了一个全局变量(比如 TESTVAR )。然后使用father build构建项目,通过extraRollupPlugins字段引用了rollup-plugin-typescript2插件,指向的是在tsconfig.dist.json配置进行编译,tsconfig.dist.json extends了tsconfig.json,只有exclude不同。 平时开发、在eslint和tsc里都没有任何报错。 所以按理说father build也不应该报错吧? 但是father-build出来,说没有找到TESTVAR。这个是怎么回事,怎么解决呢。 开发时: ![image](https://user-images.githubusercontent.com/11535146/102339370-05eb8280-3fd0-11eb-8cfa-003b65aeac04.png) father-build时的报错: ![image](https://user-images.githubusercontent.com/11535146/102339381-084ddc80-3fd0-11eb-896c-ce701775d1ea.png) ## Sample Code 复现Repo: https://github.com/milobluebell/mlz-admin/tree/aStableVersion [aStableVersion分支] 复现方式: ```shell $ sudo npm install $ $ npm...