const path = require("path"); const pak = require("./react-native-vision-camera/package/package.json"); module.exports = function (api) { api.cache(true); return { presets: ["babel-preset-expo"], plugins: [ [ "module:react-native-dotenv", { moduleName: "@env", path: ".env", safe: false, allowUndefined: true, verbose: false, }, ], "react-native-reanimated/plugin", [ "module-resolver", { alias: { [pak.name]: path.join( __dirname, "./react-native-vision-camera/package", pak.source, ), }, }, ], ], }; };