Skip to content

Instantly share code, notes, and snippets.

@alielmajdaoui
Created October 16, 2021 19:41
Show Gist options
  • Save alielmajdaoui/4fe882dc1f3fde0d4ddc05085dda1732 to your computer and use it in GitHub Desktop.
Save alielmajdaoui/4fe882dc1f3fde0d4ddc05085dda1732 to your computer and use it in GitHub Desktop.
Link Local Dependency in React Native - Metro Config - Without watchFolders option
// Absolute path to your package
const packagePath =
'/Users/mac/my-own-packages/my-awesome-package';
module.exports = {
resolver: {
nodeModulesPaths: [packagePath],
// rest of metro resolver options...
},
// rest of metro options...
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment