Skip to content

Commit

Permalink
update webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
SamratSahoo committed Oct 14, 2024
1 parent b4f623e commit f7f8b53
Show file tree
Hide file tree
Showing 4 changed files with 309 additions and 6 deletions.
1 change: 1 addition & 0 deletions mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"@react-navigation/native-stack": "^6.8.0",
"@react-navigation/stack": "^6.2.2",
"babel-preset-expo": "~11.0.0",
"crypto-browserify": "^3.12.0",
"expo": "^51.0.0",
"expo-av": "~14.0.7",
"expo-constants": "~16.0.2",
Expand Down
7 changes: 6 additions & 1 deletion mobile/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,10 @@
"jsx": "react",
"strict": true,
"esModuleInterop": true
},
"paths": {
"crypto": [
"node_modules/crypto-browserify"
],
}
}
}
3 changes: 3 additions & 0 deletions mobile/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ const createExpoWebpackConfigAsync = require("@expo/webpack-config");
module.exports = async function (env, argv) {
const config = await createExpoWebpackConfigAsync(env, argv);
config.resolve.alias["victory-native"] = "victory";
config.resolve.fallback = {
crypto: false
}
return config;
};
Loading

0 comments on commit f7f8b53

Please sign in to comment.