https://github.com/GeekyAnts/NativeBase
Raw File
Tip revision: 6fac68050bc9b75d13a887bd8eacfc7da6cf25f5 authored by MD-REHMAN on 31 March 2021, 08:20:25 UTC
fix: code cleanup and overflow added
Tip revision: 6fac680
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