We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
worker 的 runtime 需要和 entry 的不同,现阶段在 worker 中使用 import() 动态加载模块时,产物无法运行,原因是 worker 中无法使用 document 等全局变量:
import()
The text was updated successfully, but these errors were encountered:
typeof document === 'undefined'
Sorry, something went wrong.
worker hmr 个人觉得不需要做热更,后继的话如果 worker 相关的代码变动回退到 reload 就足够了。
看下 importScripts,是个同步的方法,估计 loadScript 里面把他“伪装"成异步的。
Successfully merging a pull request may close this issue.
worker 的 runtime 需要和 entry 的不同,现阶段在 worker 中使用
import()
动态加载模块时,产物无法运行,原因是 worker 中无法使用 document 等全局变量:The text was updated successfully, but these errors were encountered: