1const path = require('path'); 2module.exports = function (api) { 3 api.cache(true); 4 return { 5 presets: ['babel-preset-expo'], 6 plugins: [ 7 [ 8 'module-resolver', 9 { 10 extensions: ['.tsx', '.ts', '.js', '.json'], 11 alias: { 12 // For development, we want to alias the library to the source 13 '<%- project.slug %>': path.join(__dirname, '..', 'src', 'index.ts'), 14 }, 15 }, 16 ], 17 ], 18 }; 19}; 20