mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-06-03 02:42:05 +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: {
|
entry: {
|
||||||
main: DIST_DIRECTORY
|
main: DIST_DIRECTORY
|
||||||
},
|
},
|
||||||
externals: [{
|
|
||||||
'react': true,
|
|
||||||
'react-dom': true,
|
|
||||||
'react-dom/server': true
|
|
||||||
}],
|
|
||||||
output: {
|
output: {
|
||||||
filename: 'react-native-web.js',
|
filename: 'ReactNative.js',
|
||||||
library: 'ReactNativeWeb',
|
library: 'React',
|
||||||
libraryTarget: 'umd',
|
libraryTarget: 'umd',
|
||||||
path: DIST_DIRECTORY
|
path: DIST_DIRECTORY
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user