Revision 561fdb8e3d3a237fc4d60f3ddf7acec8ac82ed2d authored by Rohit Singh on 09 September 2022, 08:20:37 UTC, committed by Rohit Singh on 09 September 2022, 08:20:37 UTC
1 parent fb1d5de
Raw File
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