We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6840ff commit 27bde0dCopy full SHA for 27bde0d
webpack.config.js
@@ -20,10 +20,17 @@ if (process.env.NODE_ENV === 'production') {
20
);
21
}
22
23
+var reactExternal = {
24
+ root: 'React',
25
+ commonjs2: 'react',
26
+ commonjs: 'react',
27
+ amd: 'react'
28
+};
29
+
30
module.exports = {
31
externals: {
- 'react': 'React',
- 'react-native': 'React'
32
+ 'react': reactExternal,
33
+ 'react-native': reactExternal
34
},
35
module: {
36
loaders: [
@@ -32,7 +39,7 @@ module.exports = {
39
40
output: {
41
library: 'Redux',
- libraryTarget: 'var'
42
+ libraryTarget: 'umd'
43
37
44
plugins: plugins,
38
45
resolve: {
0 commit comments