react-native-vision-camera/package/example/babel.config.js

25 lines
512 B
JavaScript

/* eslint-disable @typescript-eslint/no-var-requires */
const path = require('path')
const pak = require('../package.json')
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: [
[
'react-native-reanimated/plugin',
{
processNestedWorklets: true
}
],
['react-native-worklets-core/plugin'],
[
'module-resolver',
{
alias: {
[pak.name]: path.join(__dirname, '..', pak.source),
},
},
],
],
}