Skip to content

Commit 3215e0d

Browse files
committed
update
1 parent 0dd9938 commit 3215e0d

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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",

webpack.config.js

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,23 @@ const entrypoint = process.env.NODE_ENV === 'local_example'
1515

1616
const 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']),

0 commit comments

Comments
 (0)