Skip to content

Commit

Permalink
Fixed Error !
Browse files Browse the repository at this point in the history
  • Loading branch information
Narendra Sisodiya committed Nov 9, 2015
1 parent ec0b8aa commit d96781d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
4 changes: 2 additions & 2 deletions dist/Example.js
Original file line number Diff line number Diff line change
@@ -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__) {
Expand Down
4 changes: 2 additions & 2 deletions dist/ReactJSONViewer.js
Original file line number Diff line number Diff line change
@@ -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__) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
14 changes: 12 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down

0 comments on commit d96781d

Please sign in to comment.