Skip to content

Commit

Permalink
fix polyfills
Browse files Browse the repository at this point in the history
  • Loading branch information
rohit-gohri committed May 14, 2022
1 parent a1e1b14 commit b7a2bc8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 16 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"lint:fix": "yarn lint --fix",
"release": "yarn build:packages && changeset publish --no-git-tag",
"start": "yarn build && yarn workspace redocusaurus-website run start",
"serve": "yarn workspace redocusaurus-website run serve",
"start": "yarn build:packages && yarn workspace redocusaurus-website run start",
"test": "echo \"Error: no test specified\" && exit 1",
"version": "changeset version && yarn install --no-immutable && sh scripts/combine-changelog.sh",
"prepare": "husky install"
Expand Down
3 changes: 1 addition & 2 deletions packages/docusaurus-theme-redoc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
"lodash": "^4.17.21",
"mobx": "^6.3.13",
"redoc": "2.0.0-rc.69",
"styled-components": "^5.3.3",
"to-arraybuffer": "^1.0.1"
"styled-components": "^5.3.3"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^2.0.0-beta.20",
Expand Down
9 changes: 4 additions & 5 deletions packages/docusaurus-theme-redoc/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ export default function redocTheme(
name: 'docusaurus-theme-redoc',
configureWebpack(_config, isServer) {
return {
resolve: {
fallback: {
tty: false,
},
},
plugins: [
new webpack.NormalModuleReplacementPlugin(
/^tty$/,
require.resolve('./tty'),
),
new webpack.DefinePlugin({
'process.versions.node': JSON.stringify(
process.versions.node || '0.0.0',
Expand Down
1 change: 1 addition & 0 deletions packages/docusaurus-theme-redoc/src/tty.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const isatty = () => false;
8 changes: 0 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5875,7 +5875,6 @@ __metadata:
nodemon: ^2.0.15
redoc: 2.0.0-rc.69
styled-components: ^5.3.3
to-arraybuffer: ^1.0.1
typescript: ^4.6.2
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -13166,13 +13165,6 @@ __metadata:
languageName: node
linkType: hard

"to-arraybuffer@npm:^1.0.1":
version: 1.0.1
resolution: "to-arraybuffer@npm:1.0.1"
checksum: 31433c10b388722729f5da04c6b2a06f40dc84f797bb802a5a171ced1e599454099c6c5bc5118f4b9105e7d049d3ad9d0f71182b77650e4fdb04539695489941
languageName: node
linkType: hard

"to-fast-properties@npm:^2.0.0":
version: 2.0.0
resolution: "to-fast-properties@npm:2.0.0"
Expand Down

0 comments on commit b7a2bc8

Please sign in to comment.