diff --git a/dist/Example.js b/dist/Example.js index acdb3ae..f21cd68 100644 --- a/dist/Example.js +++ b/dist/Example.js @@ -1,10 +1,10 @@ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') - module.exports = factory(require("React"), require("ReactDOM")); + module.exports = factory(require("react"), require("react-dom")); else if(typeof define === 'function' && define.amd) define(["React", "ReactDOM"], factory); else if(typeof exports === 'object') - exports["Example"] = factory(require("React"), require("ReactDOM")); + exports["Example"] = factory(require("react"), require("react-dom")); else root["Example"] = factory(root["React"], root["ReactDOM"]); })(this, function(__WEBPACK_EXTERNAL_MODULE_1__, __WEBPACK_EXTERNAL_MODULE_2__) { diff --git a/dist/ReactJSONViewer.js b/dist/ReactJSONViewer.js index a542913..b8da820 100644 --- a/dist/ReactJSONViewer.js +++ b/dist/ReactJSONViewer.js @@ -1,10 +1,10 @@ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') - module.exports = factory(require("React")); + module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["React"], factory); else if(typeof exports === 'object') - exports["ReactJSONViewer"] = factory(require("React")); + exports["ReactJSONViewer"] = factory(require("react")); else root["ReactJSONViewer"] = factory(root["React"]); })(this, function(__WEBPACK_EXTERNAL_MODULE_1__) { diff --git a/package.json b/package.json index 264bc0d..88854f4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-json-viewer", - "version": "1.0.6", + "version": "1.0.7", "description": "react component for json viewing in tabular format", "main": "dist/ReactJSONViewer.js", "scripts": { diff --git a/webpack.config.js b/webpack.config.js index b5d2f16..c0615e9 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -10,8 +10,18 @@ module.exports = { library: "[name]" }, externals: { - "react": "React", - "react-dom": "ReactDOM" + "react": { + commonjs: 'react', + commonjs2: 'react', + amd: 'React', + root: 'React' + }, + "react-dom": { + commonjs: 'react-dom', + commonjs2: 'react-dom', + amd: 'ReactDOM', + root: 'ReactDOM' + } }, module: { loaders: [