Skip to content

Commit

Permalink
Add config to resolve stream
Browse files Browse the repository at this point in the history
  • Loading branch information
gantunesr committed Dec 4, 2022
1 parent 1ed7066 commit fdf6f25
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ module.exports = (async () => {
resolver: {
assetExts: assetExts.filter((ext) => ext !== 'svg'),
sourceExts: [...sourceExts, 'svg', 'cjs'],
extraNodeModules: {
stream: require.resolve('readable-stream'),
},
},
maxWorkers: 2,
};
Expand Down

0 comments on commit fdf6f25

Please sign in to comment.