Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use expo default metro config #2288

Merged
merged 1 commit into from Nov 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion boilerplate/metro.config.js
@@ -1,4 +1,5 @@
const { getDefaultConfig } = require("metro-config")
const { getDefaultConfig: getDefaultExpoConfig } = require("@expo/metro-config")

let metroConfig
let isExpo = false
Expand All @@ -18,7 +19,7 @@ if (isExpo) {
* For one idea on how to support symlinks in Expo, see:
* https://github.com/infinitered/ignite/issues/1904#issuecomment-1054535068
*/
metroConfig = getDefaultConfig(__dirname)
metroConfig = getDefaultExpoConfig(__dirname)
} else {
/**
* Vanilla metro config - we're using a custom metro config because we want to support symlinks
Expand Down