From 1a670ba6a72149b0c8578f6a535a485cf2b0f422 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Tue, 22 Mar 2016 18:39:24 -0700 Subject: [PATCH] Fix UMD bundle Include React and ReactDOM in the UMD bundle. The library occupies the `React` global. Fix #105 --- webpack.config.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 0c24f7c4..cfa48253 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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 },