22 lines
633 B
JavaScript
22 lines
633 B
JavaScript
const { getDefaultConfig } = require("expo/metro-config")
|
|
const { withNativeWind } = require("nativewind/metro")
|
|
const { wrapWithReanimatedMetroConfig } = require("react-native-reanimated/metro-config")
|
|
|
|
const config = getDefaultConfig(__dirname, { isCSSEnabled: true })
|
|
config.resolver.sourceExts.push("sql")
|
|
|
|
config.resolver.extraNodeModules = {
|
|
"follow-native": "./native",
|
|
}
|
|
|
|
config.transformer.getTransformOptions = async () => ({
|
|
transform: {
|
|
experimentalImportSupport: false,
|
|
inlineRequires: true,
|
|
},
|
|
})
|
|
|
|
module.exports = wrapWithReanimatedMetroConfig(
|
|
withNativeWind(config, { input: "./src/global.css" }),
|
|
)
|