When migrating to EAS, I was reading the Migration Docs and saw that EAS builds are requiring the entire defaultConfig
from expo/metro-config
. I was having a tough time looking into how to utilize this mtro.config.js
...
const blacklist = require("metro-config/src/defaults/exclusionList")
module.exports = {
resolver: {
blacklistRE: blacklist([/amplify\/#current-cloud-backend\/.*/]),
},
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: false,
},
}),
},
}
So that I will not get the jest-haste-map
error for duplicate file names if adding a function or some other errors that may come with other.
With this code, some images are not included in the build, so the question is how to utilize defaultConfig
and avoid the jest-haste-map
issue?