diff --git a/src/webpack.config.js b/src/webpack.config.js index a253dfc44..c35f9898c 100644 --- a/src/webpack.config.js +++ b/src/webpack.config.js @@ -10,7 +10,12 @@ module.exports = { }, externals: [{ - 'react': 'React', + 'react': { + root: 'React', + commonjs2: 'react', + commonjs: 'react', + amd: 'react', + }, }], module: {