Skip to content

Commit 2fe683e

Browse files
Merge pull request #2 from frostney/patch-1
Update react external configuration
2 parents 492ecf9 + 095940b commit 2fe683e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

webpack.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ module.exports = {
44
extensions: ['.js', '.jsx']
55
},
66
externals: {
7-
react: 'React'
7+
react: {
8+
root: 'React',
9+
amd: 'react',
10+
commonjs: 'react',
11+
commonjs2: 'react'
12+
}
813
},
914
output: {
1015
path: './build',

0 commit comments

Comments
 (0)