我正在开发一个组件,并(以编程方式)使用硬链接将其内容复制到node_module/component (然后使用import component from "component"导入组件)。
不幸的是,当node_module/component更新时,create-react-app项目不会被热重新加载。
有没有可能解决这个问题?
发布于 2021-01-31 01:59:06
因此,经过多次实验,我注意到node_module中的大多数更改都会触发热重新加载(应该避免硬链接)。
我在chokidar和create-react-app的GitHub代码库上打开了一些问题。
https://stackoverflow.com/questions/65940110
复制相似问题