https://github.com/GeekyAnts/NativeBase
Raw File
Tip revision: f620ac80ff45ab29607a7be4b6bf58b5cfc939dc authored by Aditya Jamuar on 20 December 2021, 07:53:24 UTC
Merge branch 'minor' of https://github.com/GeekyAnts/NativeBase into fix/checkbox-performance
Tip revision: f620ac8
babel.config.js
const path = require('path');
const pak = require('../package.json');

module.exports = function (api) {
  api.cache(true);
  return {
    presets: ['babel-preset-expo'],
    plugins: [
      [
        'module-resolver',
        {
          alias: {
            // For development, we want to alias the library to the source
            [pak.name]: path.join(__dirname, '..', pak.source),
          },
        },
      ],
    ],
  };
};
back to top