diff options
Diffstat (limited to 'examples/with-react-native-web/apps/native/metro.config.js')
| -rw-r--r-- | examples/with-react-native-web/apps/native/metro.config.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/examples/with-react-native-web/apps/native/metro.config.js b/examples/with-react-native-web/apps/native/metro.config.js deleted file mode 100644 index 21f6371..0000000 --- a/examples/with-react-native-web/apps/native/metro.config.js +++ /dev/null @@ -1,21 +0,0 @@ -// Learn more https://docs.expo.io/guides/customizing-metro -const { getDefaultConfig } = require("expo/metro-config"); -const path = require("path"); - -// Find the workspace root, this can be replaced with `find-yarn-workspace-root` -const workspaceRoot = path.resolve(__dirname, "../.."); -const projectRoot = __dirname; - -const config = getDefaultConfig(projectRoot); - -// 1. Watch all files within the monorepo -config.watchFolders = [workspaceRoot]; -// 2. Let Metro know where to resolve packages, and in what order -config.resolver.nodeModulesPaths = [ - path.resolve(projectRoot, "node_modules"), - path.resolve(workspaceRoot, "node_modules"), -]; -// 3. Force Metro to resolve (sub)dependencies only from the `nodeModulesPaths` -config.resolver.disableHierarchicalLookup = true; - -module.exports = config; |
