fix react externals in components

This commit is contained in:
Vyacheslav Matyukhin 2022-06-18 14:14:01 +03:00
parent 5d47065adf
commit 0cada912e1
No known key found for this signature in database
GPG Key ID: 3D2A774C5489F96C

View File

@ -37,7 +37,17 @@ module.exports = {
port: 9000, port: 9000,
}, },
externals: { externals: {
react: "React", react: {
"react-dom": "ReactDOM", commonjs: "react",
commonjs2: "react",
amd: "react",
root: "React",
},
"react-dom": {
commonjs: "react-dom",
commonjs2: "react-dom",
amd: "react-dom",
root: "ReactDOM",
},
}, },
}; };