17 lines
339 B
JavaScript
17 lines
339 B
JavaScript
const path = require('path');
|
|
const { getConfig } = require('react-native-builder-bob/babel-config');
|
|
const pkg = require('../package.json');
|
|
|
|
const root = path.resolve(__dirname, '..');
|
|
|
|
module.exports = function (api) {
|
|
api.cache(true);
|
|
|
|
return getConfig(
|
|
{
|
|
presets: ['babel-preset-expo'],
|
|
},
|
|
{ root, pkg }
|
|
);
|
|
};
|