railbird-gql/babel.config.js

35 lines
738 B
JavaScript
Raw Normal View History

2024-01-31 22:45:00 -07:00
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,
),
},
},
],
],
};
};