Hope to support rspack-plugin-virtual-modules which has the same behavior as webpack-virtual-modules #10259
Replies: 3 comments 2 replies
-
#8643 |
Beta Was this translation helpful? Give feedback.
-
The issue in your screenshot doesn't seem to be related to the virtual modules. I suspect it's an issue with the wechat mini program runtime mechanism. better to check the contents of 你这个图里的问题看起来和 virtual modules 没啥关系。我怀疑是小程序运行机制的问题,最好先检查一下 remax-vendors.js 的内容。 I feel you can try adjusting the 如果确实是 |
Beta Was this translation helpful? Give feedback.
-
@watsonhaw5566 可以给我一个复现的步骤吗? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
相关的Issue #7478
由于当前的 rspack-plugin-virtual-modules 表现为 写入 node_modules 使用 hash 的文件名,而不是存储于内存中。
起因是由于想将 Remax 迁移至 Rspack 中,Remax 使用了虚拟模块来做入口文件,这样使得”optimization.splitChunks.cacheGroups”配置失效,找不到对应通用拆分文件(在webpack5上是可以正常进行的),remax-rspack/packages/remax-cli/src/build/webpack/config.mini.ts at master · watsonhaw5566/remax-rsp。
不知道这里可否是不使用 virtual-modules 也可以运行的?
由于 Remax 已经没有不再维护了,目前只有自己摸着石头过河,有些概念也不是很清晰,所以还请多多指教。
Beta Was this translation helpful? Give feedback.
All reactions