Files
lnreader/babel.config.js
T
Rajarshee Chatterjee c9eb42ff4d chore: Upgrade React Native to 0.81
This is a manual cherry-pick from @CD-Z’s PR that updates React Native to 0.81. Thanks for originally working on it
2025-10-23 16:39:11 +05:30

46 lines
1.2 KiB
JavaScript

const ReactCompilerConfig = {
target: '19',
};
module.exports = function (api) {
api.cache(true);
return {
presets: ['module:@react-native/babel-preset'],
plugins: [
'module:@babel/plugin-transform-export-namespace-from',
['babel-plugin-react-compiler', ReactCompilerConfig],
[
'module-resolver',
{
alias: {
'@components': './src/components',
'@database': './src/database',
'@hooks': './src/hooks',
'@screens': './src/screens',
'@strings': './strings',
'@services': './src/services',
'@plugins': './src/plugins',
'@utils': './src/utils',
'@theme': './src/theme',
'@navigators': './src/navigators',
'@api': './src/api',
'@type': './src/type',
'@specs': './specs',
'react-native-vector-icons/MaterialCommunityIcons':
'@react-native-vector-icons/material-design-icons',
},
},
],
'react-native-worklets/plugin',
[
'module:react-native-dotenv',
{
envName: 'APP_ENV',
moduleName: '@env',
path: '.env',
},
],
],
};
};