Skip to content

Commit 4ca318f

Browse files
committed
docs: fix js dependencies in webpack example
1 parent 18755d4 commit 4ca318f

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

examples/browser-webpack/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,17 @@
1111
"babel-core": "^6.24.1",
1212
"babel-loader": "^7.0.0",
1313
"babel-preset-react": "^6.24.1",
14+
"babel-preset-stage-0": "^6.24.1",
1415
"json-loader": "^0.5.4",
15-
"react": "^15.5.4",
1616
"react-hot-loader": "^1.3.1",
1717
"webpack": "^2.5.1",
1818
"webpack-dev-server": "^2.4.5"
1919
},
2020
"dependencies": {
21+
"ipfs": "^0.26.0",
22+
"ipfs-block-service": "^0.12.0",
23+
"react": "^15.6.1",
24+
"react-dom": "^15.6.1",
2125
"safe-buffer": "^5.0.1"
2226
}
2327
}

examples/browser-webpack/src/components/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
const React = require('react')
44
const Buffer = require('safe-buffer').Buffer
5-
const IPFS = require('../../../../src/core') // replace this by line below
6-
// const IPFS = require('ipfs')
5+
// const IPFS = require('../../../../src/core') // replace this by line below
6+
const IPFS = require('ipfs')
77

88
const stringToUse = 'hello world from webpacked IPFS'
99

0 commit comments

Comments
 (0)