react-native-game-engine-ex.../babel.config.js

23 lines
471 B
JavaScript
Raw Permalink Normal View History

2022-06-25 00:29:43 -05:00
module.exports = function (api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: [
[
'module-resolver',
{
root: ['./src'],
extensions: ['.ios.ts', '.android.ts', '.ts', '.ios.tsx', '.android.tsx', '.jsx', '.js', '.json'],
alias: {
'@entities': './game/entities',
"@game": "./game",
'@systems': './game/systems',
'@svg': './assets/SVG',
'@types': './game',
},
},
],
],
};
};