https://github.com/GeekyAnts/NativeBase
Raw File
Tip revision: 9065c026c02d05a3ade9b3122570809cf97c692b authored by Suraj Ahmed on 29 March 2022, 10:10:17 UTC
v3.3.8-alpha.9
Tip revision: 9065c02
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