参考:https://juejin.cn/post/7158430758070140942
antd 的编译流程:
- 首先需要会使用 VSCode Debugger for Chrome,运行项目,打上断点 运行 - 启动调试
- 其次 修改映射,如把 Button 组件的引用位置改为 “antd/dist/antd” dist目录下,为 UMD 打包
- 此时单步断点进入 tsx 文件,该文件为编译后的
- 将源码修改打包覆盖
参考:https://juejin.cn/post/7158430758070140942
antd 的编译流程: