File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " react-json-view" ,
33 "description" : " interactive json viewer wrapped up in a react component" ,
4- "version" : " 1.1.6 " ,
4+ "version" : " 1.1.7 " ,
55 "main" : " dist/main.js" ,
66 "devDependencies" : {
77 "babel-core" : " ^6.21.0" ,
Original file line number Diff line number Diff line change @@ -15,7 +15,23 @@ const entrypoint = process.env.NODE_ENV === 'local_example'
1515
1616const config = {
1717 entry : [ entrypoint ] ,
18- externals : { } ,
18+ externals : {
19+ react : {
20+ root : 'React' ,
21+ commonjs2 : 'react' ,
22+ commonjs : 'react' ,
23+ amd : 'react'
24+ }
25+ } ,
26+ {
27+ 'react-dom' : {
28+ root : 'ReactDOM' ,
29+ commonjs2 : 'react-dom' ,
30+ commonjs : 'react-dom' ,
31+ amd : 'react-dom'
32+ }
33+ } ,
34+ } ,
1935 devServer : {
2036 host : '0.0.0.0' ,
2137 port : wds_port ,
@@ -28,7 +44,7 @@ const config = {
2844 path : PATHS . build ,
2945 filename : 'main.js' ,
3046 library : 'reactJsonView' ,
31- libraryTarget : 'var '
47+ libraryTarget : 'umd '
3248 } ,
3349 plugins : [
3450 new webpack . EnvironmentPlugin ( [ 'NODE_ENV' ] ) ,
You can’t perform that action at this time.
0 commit comments