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

依赖预编译支持虚拟模块缓存 #13505

Closed
ZakaryCode opened this issue Mar 24, 2023 · 0 comments · Fixed by #13508
Closed

依赖预编译支持虚拟模块缓存 #13505

ZakaryCode opened this issue Mar 24, 2023 · 0 comments · Fixed by #13508
Labels
enhancement New feature or request T-h5 Target - 编译到 H5

Comments

@ZakaryCode
Copy link
Contributor

这个特性解决了什么问题?

过去为支持编译预编译引入虚拟模块,由于虚拟模块本身问题禁用了部分模块缓存

NOTE: Webpack Virtual Module plugin doesn't support triggering a rebuild for webpack5,
which can cause "module not found" error when webpack5 cache is enabled.
Currently the only "non-hacky" workaround is to mark this module as non-cacheable.

See also:

现在该问题已经在新版本修复

sysgears/webpack-virtual-modules#164

这个 API 长什么样?

升级版本并启用缓存

@ZakaryCode ZakaryCode added enhancement New feature or request T-h5 Target - 编译到 H5 labels Mar 24, 2023
@ZakaryCode ZakaryCode moved this to Done in H5 Apr 10, 2023
@ZakaryCode ZakaryCode added this to H5 Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request T-h5 Target - 编译到 H5
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant