Skip to content

Commit 1c62aad

Browse files
committed
feat: add many redoc dependencies
1 parent 79af364 commit 1c62aad

File tree

5 files changed

+387
-65
lines changed

5 files changed

+387
-65
lines changed

content/docs/reference/qri-http-api.md

-6
This file was deleted.

gatsby-node.js

+12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const path = require('path')
22
const fetch = require('node-fetch')
33
const startCase = require('lodash.startcase')
4+
const webpack = require('webpack')
45

56
// [ fromPath, toPath ]
67
const redirects = [
@@ -120,9 +121,20 @@ exports.onCreateWebpackConfig = ({ stage, loaders, actions, getConfig }) => {
120121
http: require.resolve('http-browserify'),
121122
path: require.resolve('path-browserify'),
122123
stream: require.resolve('stream-browserify'),
124+
'readable-stream': require.resolve('stream-browserify'),
123125
util: require.resolve('util/')
124126
}
125127

128+
config.plugins = [
129+
...config.plugins,
130+
new webpack.ProvidePlugin({
131+
process: 'process/browser'
132+
}),
133+
new webpack.ProvidePlugin({
134+
Buffer: ['buffer', 'Buffer']
135+
})
136+
]
137+
126138
// this is needed for redoc, which uses a different version of core-js from gatsby
127139
// see https://github.com/gatsbyjs/gatsby/issues/17136#issuecomment-568036690
128140
const coreJs2config = config.resolve.alias['core-js']

package.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"babel-eslint": "10.1.0",
2525
"bootstrap": "4.4.1",
2626
"browserify-fs": "1.0.0",
27+
"buffer": "6.0.3",
2728
"core-js": "3.6.5",
2829
"d3": "5.15.0",
2930
"dotenv": "8.2.0",
@@ -61,12 +62,13 @@
6162
"lodash.flatten": "4.4.0",
6263
"lodash.startcase": "4.4.0",
6364
"mapbox-gl": "1.7.0",
64-
"mobx": "4.2.0",
65+
"mobx": "6.3.2",
6566
"moment": "2.24.0",
6667
"node-sass": "4.13.1",
6768
"numeral": "2.0.6",
6869
"papaparse": "5.2.0",
6970
"path-browserify": "1.0.1",
71+
"process": "0.11.10",
7072
"react": "16.12.0",
7173
"react-bootstrap": "1.0.0-beta.16",
7274
"react-dom": "16.13.1",
@@ -78,10 +80,13 @@
7880
"react-instantsearch-dom": "6.0.0",
7981
"react-live": "2.2.2",
8082
"react-loadable": "5.5.0",
83+
"readable-stream": "3.6.0",
8184
"redoc": "2.0.0-rc.55",
85+
"stream-browserify": "3.0.0",
8286
"styled-components": "5.2.0",
8387
"styled-icons": "9.0.1",
8488
"tailwindcss": "2.2.4",
89+
"util": "0.12.4",
8590
"yaml": "1.10.2"
8691
},
8792
"license": "MIT",

0 commit comments

Comments
 (0)