Skip to content

Instantly share code, notes, and snippets.

@FDiskas
Created March 8, 2020 13:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FDiskas/8db9a797c90d0dbbfaa770af7f90536b to your computer and use it in GitHub Desktop.
Save FDiskas/8db9a797c90d0dbbfaa770af7f90536b to your computer and use it in GitHub Desktop.
Config for react-native to support linked modules
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