Skip to content

Commit

Permalink
fix(website): process is not defined (#693)
Browse files Browse the repository at this point in the history
  • Loading branch information
homura authored May 25, 2024
1 parent 8461e56 commit 40e12a9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
8 changes: 8 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ const config = {
name: "node-polyfill",
configureWebpack() {
return {
module: {
rules: [{ test: /\.m?js/, resolve: { fullySpecified: false } }],
},
resolve: {
fallback: {
crypto: require.resolve("crypto-browserify"),
Expand All @@ -74,7 +77,10 @@ const config = {
stream: false,
},
},
plugins: [new webpack.ProvidePlugin({ Buffer: ["buffer", "Buffer"] })],
plugins: [
new webpack.ProvidePlugin({ Buffer: ["buffer", "Buffer"] }),
new webpack.ProvidePlugin({ process: "process/browser" }),
],
}
},
}),
Expand Down
3 changes: 2 additions & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"typecheck": "tsc"
},
"dependencies": {
"@ckb-lumos/lumos": "canary",
"@ckb-lumos/helpers": "canary",
"@ckb-lumos/lumos": "canary",
"@ckb-lumos/molecule": "canary",
"@docusaurus/core": "^3.0.0",
"@docusaurus/preset-classic": "^3.0.0",
Expand All @@ -34,6 +34,7 @@
"clsx": "^1.2.1",
"numeral": "^2.0.6",
"prism-react-renderer": "^1.3.5",
"process": "^0.11.10",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-json-tree": "^0.17.0"
Expand Down

1 comment on commit 40e12a9

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 New canary release: 0.0.0-canary-40e12a9-20240525003140

npm install @ckb-lumos/[email protected]

Please sign in to comment.