Fix UMD bundle

Include React and ReactDOM in the UMD bundle. The library occupies the
`React` global.

Fix #105
This commit is contained in:
Nicolas Gallagher
2016-03-22 18:39:24 -07:00
parent 7a16d5711c
commit 1a670ba6a7
+2 -7
View File
@@ -6,14 +6,9 @@ module.exports = {
entry: {
main: DIST_DIRECTORY
},
externals: [{
'react': true,
'react-dom': true,
'react-dom/server': true
}],
output: {
filename: 'react-native-web.js',
library: 'ReactNativeWeb',
filename: 'ReactNative.js',
library: 'React',
libraryTarget: 'umd',
path: DIST_DIRECTORY
},