zhn
zhn
The umi template requires no additional configuration, and the react-refresh-webpack-plugin is automatically configured. And I saw the demo you sent me, using @umijs/react-refresh-webpack-plugin instead of @pmmmwh/react-refresh-webpack-plugin has solved the problem?
> errors like ReactRunTime has already been declared The demo you gave me started normally when I started it locally. The problem cannot be reproduced. In addition, this problem should...
The error message seems to have nothing to do with the single-react plug-in, and it should be purely an error of the react-refresh plug-in. Can you complete the demo to...
The warning critical dependency is correct, just ignore it, the reason is the code in dist/node : ``` js "undefined"!=typeof __non_webpack_require__?__non_webpack_require__:require ```
``` Error: Can’t resolve ‘module’ ``` This error is because your webpackconfig.js does not have target: "node" configured. You need to first confirm whether you need to use dist/node and...
dist and dist/node are both umd modules, not es modules
yes, I remember wrong. There is indeed an ES module present the browser environment defaults to using es: dist/index, and dist/umd/index is also optional . dist/node is used by the...
Although you are Node12, the ES module can still be introduced through webpack. Will there be any exceptions if you directly use the following code? ``` js import "module-federation-runtime" ```
ok i will update, thanks
About 10 issues have been resolved in the past month, and there is only one bug #68 left which will be fixed soon You can try, new-config branch pnpm install...