Revision 9d67e8358fcf2e5e3970e239e42099265bcfb890 authored by cyrus25 on 30 June 2021, 11:04:21 UTC, committed by cyrus25 on 30 June 2021, 11:04:21 UTC
1 parent 7f2aada
Raw File
babel.config.js
const path = require('path');
const pak = require('../package.json');

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