Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS打开微信开发者工具热重载, 热更新无效 #93

Open
imaxing opened this issue Sep 1, 2022 · 4 comments
Open

MacOS打开微信开发者工具热重载, 热更新无效 #93

imaxing opened this issue Sep 1, 2022 · 4 comments
Assignees
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@imaxing
Copy link

imaxing commented Sep 1, 2022

描述这个Bug
微信开发者工具热重载打开时, dist热更新无效

代码url

可提供转化失败的 wxml,js,wxss 这类的产物,
可以直接复制粘贴在此处,或者提供 url

如何重现
打开微信开发者工具的热重载

期望行为(可选)
编译后的dist代码在微信开发者工具中实时更新

屏幕截图(可选)
开发者工具)

运行环境

  • OS: MacOs 12.0.1 (21A559)
  • Nodejs: 14.17.6
  • Framework: taro
  • taro info
    taro 版本信息

Additional context
Add any other context about the problem here.

@imaxing imaxing added the bug Something isn't working label Sep 1, 2022
@sonofmagic
Copy link
Owner

之前测试 windows 平台上,微信IDE这个问题已经修复了 #37

接下来看MacOS上这个问题,什么时候修

@sonofmagic sonofmagic changed the title 打开微信开发者工具热重载, 热更新无效 MacOS打开微信开发者工具热重载, 热更新无效 Sep 1, 2022
@sonofmagic sonofmagic added help wanted Extra attention is needed question Further information is requested and removed bug Something isn't working labels Sep 4, 2022
@sonofmagic
Copy link
Owner

这个问题的源头来自于 Webpack 对 modules 有缓存导致的,这点像 taro 提供了一些配置项,来注入代码兼容微信IDE的热重载,详见:

NervJS/taro#10722 (comment)

https://taro-docs.jd.com/docs/config-detail#minihot

@1effortlessness
Copy link

遇到同样的问题

1 similar comment
@xijaja
Copy link

xijaja commented Oct 9, 2023

遇到同样的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants