Jiannan Zhang
Jiannan Zhang
Thanks, looks like a good suggestion, add to the plan first
Could you provide a repository for reproducing the problem? I can't locate the problem by your description
I think this is because the product of building cjs with different build tools is inconsistent, and it's hard to get cjs to form a completely consistent output with some...
Or try to give me a reproduction of the repository, it is also possible that the bug is causing the problem
@SanMako 我尝试更改一下你的项目,这里是git diff的截图 I would try to change your project, here is a screenshot of git diff  在我这里是可以成功编译和运行的 It compiles and runs successfully in my case  我猜测你使用了dev模式启动了其中的项目,在你的项目里只能使用build&preview模式启动,因为只有完全的host端才可以使用dev模式启动(app-one和app-two都包含了exposes,只包含remotes配置的才可以使用dev) I...
由于vite的开发模式不能在运行时手动生成新的块,这导致远程不能生成remoteEntryjs文件。 Because vite's dev mode cannot manually generate new chunks during runtime, this causes remote to not generate remoteEntryjs files
@artem-kurchenko I clone the project, the reason for the problem is that `devextreme-vue` import `vue` using require (`cjs` syntax)  which causes `rollup` to add an extra `cjs` transformed export...
I haven't thought of a good way to deal with the problem yet, unless I add a cjs import on the host side as well
@artem-kurchenko sry,for the time being, in addition to https://github.com/originjs/vite-plugin-federation/issues/227#issuecomment-1207167441 I did not think of a better way
Thanks, I probably see what you mean, it's a real problem