You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
478 B

const path = require('path');
const pak = require('../../package.json');
module.exports = {
presets: [
['module:metro-react-native-babel-preset'],
['@babel/preset-typescript', {allowDeclareFields: true}], // to allow use of declare context
],
plugins: [
[
'module-resolver',
{
extensions: ['.tsx', '.ts', '.js', '.json'],
alias: {
[pak.name]: path.join(__dirname, '../..', pak.source),
},
},
],
],
};