Fix external React lib name

release
Etienne Lemay 2016-07-11 15:21:13 -04:00
parent 820bb3d966
commit d9f5cd3101
3 changed files with 8 additions and 8 deletions

View File

@ -1,12 +1,12 @@
(function webpackUniversalModuleDefinition(root, factory) { (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object') if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react")); module.exports = factory(require("React"));
else if(typeof define === 'function' && define.amd) else if(typeof define === 'function' && define.amd)
define(["react"], factory); define(["React"], factory);
else if(typeof exports === 'object') else if(typeof exports === 'object')
exports["EmojiPicker"] = factory(require("react")); exports["EmojiPicker"] = factory(require("React"));
else else
root["EmojiPicker"] = factory(root["react"]); root["EmojiPicker"] = factory(root["React"]);
})(this, function(__WEBPACK_EXTERNAL_MODULE_3__) { })(this, function(__WEBPACK_EXTERNAL_MODULE_3__) {
return /******/ (function(modules) { // webpackBootstrap return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache /******/ // The module cache

File diff suppressed because one or more lines are too long

View File

@ -9,9 +9,9 @@ module.exports = {
libraryTarget: 'umd', libraryTarget: 'umd',
}, },
externals: [ externals: [{
'react', 'react': 'React',
], }],
module: { module: {
loaders: [ loaders: [