mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-23 06:48:35 +00:00
Fix UMD bundle
Include React and ReactDOM in the UMD bundle. The library occupies the `React` global. Fix #105
This commit is contained in:
+2
-7
@@ -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
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user