Skip to content

Commit

Permalink
Merge pull request #408 from web-ridge/fix-broken-deploy-example-pipe…
Browse files Browse the repository at this point in the history
…line

refactor: attempt to resolve example ci failure
  • Loading branch information
iM-GeeKy authored Jul 16, 2024
2 parents 784fdd0 + fdab1c1 commit ca1f296
Show file tree
Hide file tree
Showing 3 changed files with 305 additions and 5 deletions.
1 change: 1 addition & 0 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"test": "jest"
},
"dependencies": {
"crypto-browserify": "^3.12.0",
"expo": "^50.0.19",
"expo-splash-screen": "~0.26.5",
"expo-status-bar": "~1.11.1",
Expand Down
6 changes: 6 additions & 0 deletions example/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,11 @@ module.exports = async function (env, argv) {
'react-native-web': path.join(node_modules, 'react-native-web'),
})

// Add fallback for crypto module
config.resolve.fallback = {
...config.resolve.fallback,
crypto: require.resolve('crypto-browserify'),
}

return config
}
Loading

0 comments on commit ca1f296

Please sign in to comment.