Skip to content

Commit

Permalink
chore: update metro.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
yeoniii20 authored Jun 26, 2024
1 parent 4c7bae1 commit 53128f3
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions metro.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
// Learn more https://docs.expo.io/guides/customizing-metro
const { getDefaultConfig } = require('expo/metro-config');

/** @type {import('expo/metro-config').MetroConfig} */
const config = getDefaultConfig(__dirname);
module.exports = (async () => {
const config = await getDefaultConfig(__dirname);

module.exports = config;
config.resolver.extraNodeModules = {
crypto: require.resolve('react-native-crypto'),
stream: require.resolve('stream-browserify'),
};

return config;
})();

0 comments on commit 53128f3

Please sign in to comment.