Comments (4)
from proapplication.
1.执行pnpm build-lib
3.就是packages下面的包必须打包才可以在项目中使用吗?可以直接使用吗?
from proapplication.
@mwj610
- 第一个问题可以参考下相关搜索平台的答案,window平台我这边无法复线,也欢迎pr不知道这个行不行
3,packages使用是可以不用打包的,但是ts类型适配是需要打包(可能是因为我对ts的配置还不够深入),因为前期的代码改动都比较大,所以支持了package的热更新,packages稳定后正常应该需要打包后再使用,否则违反了monorepo原则,包很多的情况下会卡顿,把umi里配置的alias删除即可关闭packages的热更新。
from proapplication.
@mwj610
- 第一个问题可以参考下相关搜索平台的答案,window平台我这边无法复线,也欢迎pr不知道这个行不行
3,packages使用是可以不用打包的,但是ts类型适配是需要打包(可能是因为我对ts的配置还不够深入),因为前期的代码改动都比较大,所以支持了package的热更新,packages稳定后正常应该需要打包后再使用,否则违反了monorepo原则,包很多的情况下会卡顿,把umi里配置的alias删除即可
👌
from proapplication.
Related Issues (8)
- npm run dev 启动后页面报错 HOT 2
- 建议:可以考虑补充一下 CI/CD 流程图 HOT 1
- todos
- antd降为4.x好像不行 HOT 2
- 页面报错问题 HOT 4
- antd5 + umi4 的monorepo模版 HOT 5
- 主包引用子包的问题 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from proapplication.