const path = require('path');
const pak = require('../../packages/react-native/package.json');

module.exports = {
  presets: ['module:@react-native/babel-preset'],
  plugins: [
    [
      'module-resolver',
      {
        extensions: ['.tsx', '.ts', '.js', '.json'],
        alias: {
          [pak.name]: path.join(__dirname, '../../packages/react-native', pak.source),
        },
      },
    ],
  ],
};
