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,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
};
|
2023-12-28 16:44:12 -07:00
|
|
|
};
|