Skip to content

Commit

Permalink
Merge pull request #5819 from wordpress-mobile/metro-exclude-ios-xcfr…
Browse files Browse the repository at this point in the history
…amework

Exclude `ios-xcframework` folder when resolving modules in Metro
  • Loading branch information
fluiddot authored May 31, 2023
2 parents f4420a7 + 117e6f3 commit 97e2915
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 @@ -21,6 +21,9 @@ const nodeModulePaths = [
const possibleModulePaths = ( name ) =>
nodeModulePaths.map( ( dir ) => path.join( process.cwd(), dir, name ) );

// Exclude `ios-xcframework` folder to avoid conflicts with packages contained in Pods.
gutenbergMetroConfigCopy.resolver.blockList = [ /ios-xcframework\/.*/ ];

gutenbergMetroConfigCopy.resolver.resolveRequest = (
context,
moduleName,
Expand Down

0 comments on commit 97e2915

Please sign in to comment.