Skip to content

Commit

Permalink
feat: add crypto-browserify support in webpack configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
amir-zahedi committed Mar 3, 2025
1 parent 1d9d465 commit 83773cf
Show file tree
Hide file tree
Showing 5 changed files with 379 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/rotten-vans-walk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'gdu': patch
---

gdu: add crypto-browserify support in webpack configuration
1 change: 1 addition & 0 deletions packages/gdu/config/webpack/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ export const baseOptions = ({
buffer: require.resolve('buffer/'),
stream: require.resolve('stream-browserify'),
assert: require.resolve('assert/'),
crypto: require.resolve("crypto-browserify"),
},
extensions: ['.tsx', '.ts', '.mjs', '.jsx', '.js', '.json'],
plugins: [
Expand Down
1 change: 1 addition & 0 deletions packages/gdu/config/webpack/webpack.development.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export const baseDevelopmentOptions = ({
buffer: require.resolve('buffer/'),
stream: require.resolve('stream-browserify'),
assert: require.resolve('assert/'),
crypto: require.resolve("crypto-browserify"),
},
extensions: ['.tsx', '.ts', '.mjs', '.jsx', '.js', '.json'],
plugins: [
Expand Down
3 changes: 2 additions & 1 deletion packages/gdu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"buffer": "^6.0.3",
"clean-webpack-plugin": "^4.0.0-alpha.0",
"core-js": "^3.40.0",
"crypto-browserify": "^3.12.1",
"css-loader": "^6.7.1",
"cssnano": "^4.1.10",
"date-fns": "^2.29.3",
Expand All @@ -64,7 +65,7 @@
"graphql": "^15.5.0",
"graphql-config": "^3.2.0",
"graphql-schema-diff": "^2.5.0",
"html-webpack-plugin": "^5.6.3",
"html-webpacky-plugin": "^5.6.3",
"ip": "^1.1.5",
"js-yaml": "^3.14.0",
"js-yaml-loader": "^1.2.2",
Expand Down
Loading

0 comments on commit 83773cf

Please sign in to comment.