https://github.com/GeekyAnts/NativeBase
Raw File
Tip revision: 1ea530b72a3efbf530154bf1cfb52fe0d5606bd0 authored by Suraj Ahmed on 06 April 2022, 12:10:44 UTC
v3.4.0-rc.6
Tip revision: 1ea530b
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