21 lines
425 B
JavaScript
21 lines
425 B
JavaScript
|
const path = require('path');
|
||
|
const pak = require('../../package.json');
|
||
|
|
||
|
module.exports = function (api) {
|
||
|
api.cache(true);
|
||
|
return {
|
||
|
presets: ['babel-preset-expo'],
|
||
|
plugins: [
|
||
|
[
|
||
|
'module-resolver',
|
||
|
{
|
||
|
alias: {
|
||
|
[pak.name]: path.join(__dirname, '../..', pak.source),
|
||
|
extensions: ['.tsx', '.ts', '.js', '.json'],
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
],
|
||
|
};
|
||
|
};
|