热更新问题请教一下🙏🙏🙏
#11880
Replies: 5 comments 1 reply
|
是我的问题,monorepoRedirect方法可以。dumi中热更新了bar中的组件。但是如果bar又依赖于core组件,那我应该怎么办呢。 |
0 replies
|
可以了,我在dumi中的package.json文件中增加了core的依赖。但是感觉有些奇怪的,我并不会用到core,只用到了bar。bar里面dependencies了core。是我想的有问题吗,可以讲解一下吗。 |
0 replies
|
现在 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
和umi一样。我使用turbo+dumi+father构建了一个monorepo。但是当我更新了ui包之后。dumi中的demo并没有热更新。我需要注释掉UI组件再放开才可以更新。我看到了monorepoRedirect这个属性,但是不知道如何使用,我该如何设置呢。这是我的目录结构:
.
├── LICENSE
├── README.md
├── apps
│ └── docs
│ ├── LICENSE
│ ├── README.md
│ ├── demo
│ │ └── bar
│ │ └── stereoscopic
│ │ └── index.tsx
│ ├── docs
│ │ ├── components
│ │ │ └── index.md
│ │ ├── guide
│ │ │ └── index.md
│ │ ├── index.en-US.md
│ │ └── index.md
│ ├── package.json
│ ├── public
│ │ └── logo.svg
│ └── tsconfig.json
├── commitlint.config.js
├── package.json
├── packages
│ ├── bar
│ │ ├── LICENSE
│ │ ├── es
│ │ │ ├── index.js
│ │ │ └── stereoscopic
│ │ │ └── index.js
│ │ ├── lib
│ │ │ ├── index.js
│ │ │ └── stereoscopic
│ │ │ └── index.js
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── index.ts
│ │ │ └── stereoscopic
│ │ │ └── index.tsx
│ │ └── tsconfig.json
│ ├── core
│ │ ├── LICENSE
│ │ ├── es
│ │ │ ├── index.d.ts
│ │ │ ├── index.d.ts.map
│ │ │ ├── index.js
│ │ │ ├── type.d.ts
│ │ │ ├── type.d.ts.map
│ │ │ └── type.js
│ │ ├── lib
│ │ │ ├── index.d.ts
│ │ │ ├── index.d.ts.map
│ │ │ ├── index.js
│ │ │ ├── type.d.ts
│ │ │ ├── type.d.ts.map
│ │ │ └── type.js
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── index.tsx
│ │ │ └── type.ts
│ │ └── tsconfig.json
│ └── tsconfig
│ ├── base.json
│ ├── package.json
│ └── react-library.json
├── pnpm-lock.yaml
├── pnpm-workspace.yaml
└── turbo.json
All reactions