Skip to content

Commit

Permalink
fix: polyfill process
Browse files Browse the repository at this point in the history
  • Loading branch information
iosh committed Oct 18, 2024
1 parent 89efbec commit 69f50d2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@
},
"packageManager": "[email protected]",
"dependencies": {
"@svgr/webpack": "8.1.0"
"@svgr/webpack": "8.1.0",
"process": "0.11.10"
}
}
2 changes: 2 additions & 0 deletions scripts/webpack.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ const defaultConfig = {
https: false,
buffer: require.resolve('buffer/'),
stream: require.resolve('stream-browserify'),
process: 'process/browser',
},
alias: {
'/images': path.join(packagesPath, 'browser-extension/images'),
Expand All @@ -120,6 +121,7 @@ const defaultConfig = {
new ProvidePlugin({
Buffer: ['buffer', 'Buffer'],
React: 'react',
process: 'process/browser.js',
}),
new EsbuildPlugin({
define: {
Expand Down
3 changes: 2 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -18183,6 +18183,7 @@ __metadata:
postcss-loader: "npm:8.1.1"
prettier: "npm:^2.6.2"
prettier-plugin-solidity: "npm:1.0.0-beta.18"
process: "npm:0.11.10"
ramda: "npm:^0.28.0"
react: "npm:^16.13.0"
react-dom: "npm:^16.13.0"
Expand Down Expand Up @@ -24916,7 +24917,7 @@ __metadata:
languageName: node
linkType: hard

"process@npm:^0.11.10":
"process@npm:0.11.10, process@npm:^0.11.10":
version: 0.11.10
resolution: "process@npm:0.11.10"
checksum: 10/dbaa7e8d1d5cf375c36963ff43116772a989ef2bb47c9bdee20f38fd8fc061119cf38140631cf90c781aca4d3f0f0d2c834711952b728953f04fd7d238f59f5b
Expand Down

0 comments on commit 69f50d2

Please sign in to comment.