Skip to content

Commit a1a25a7

Browse files
committed
fix: crypto package
1 parent bbfb3eb commit a1a25a7

File tree

3 files changed

+313
-5
lines changed

3 files changed

+313
-5
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"classnames": "^2.3.1",
2121
"codemirror": "^5.57.0",
2222
"copy-to-clipboard": "^3.3.1",
23+
"crypto-browserify": "^3.12.1",
2324
"date-fns": "^2.28.0",
2425
"debounce": "^1.2.0",
2526
"deepmerge-ts": "^4.2.1",

webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ module.exports = {
137137
resolve: {
138138
extensions: ['.ts', '.tsx', '.js', '.json'],
139139
fallback: {
140-
"path": require.resolve("pathe")
140+
"path": require.resolve("pathe"),
141+
"crypto": require.resolve("crypto-browserify")
141142
},
142143
alias: {
143144
'@': path.join(__dirname, '/resources/scripts'),

0 commit comments

Comments
 (0)