desired effect
the react components developed by ourselves do not want to introduce react, when they are packaged, but want to introduce react externally
.
react
webpack.config.js
report that react is not defined
so the above react does not refer to the global.
complete project address
https://github.com/951565664/. testExternals branch