Created
March 8, 2020 13:02
-
-
Save FDiskas/8db9a797c90d0dbbfaa770af7f90536b to your computer and use it in GitHub Desktop.
Config for react-native to support linked modules
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { | |
applyConfigForLinkedDependencies, | |
} = require("@carimus/metro-symlinked-deps"); | |
const path = require('path'); | |
module.exports = applyConfigForLinkedDependencies( | |
{ | |
watchFolders: [path.resolve(__dirname, 'node_modules')], | |
transformer: { | |
getTransformOptions: async () => ({ | |
transform: { | |
experimentalImportSupport: false, | |
inlineRequires: false, | |
}, | |
}), | |
}, | |
}, | |
{ | |
projectRoot: __dirname, | |
blacklistLinkedModules: ["react-native"], | |
}, | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment