https://github.com/GeekyAnts/NativeBase
Raw File
Tip revision: eb59723f5f74939ab8ff9c4f95c35b504204c8ab authored by Suraj Ahmed on 07 September 2022, 11:18:29 UTC
v3.4.14-rc.1
Tip revision: eb59723
babel.config.js
const path = require('path');
const pak = require('../package.json');

module.exports = function (api) {
  api.cache(true);
  return {
    presets: [['babel-preset-expo', { jsxRuntime: 'classic' }]],
    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