fix react externals in components
This commit is contained in:
parent
5d47065adf
commit
0cada912e1
|
@ -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",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user