2021-05-11 11:01:45 +03:00
|
|
|
module.exports = {
|
2025-07-10 14:56:43 +03:00
|
|
|
presets: [ 'module:@react-native/babel-preset' ],
|
2021-05-11 11:01:45 +03:00
|
|
|
env: {
|
|
|
|
|
production: {
|
|
|
|
|
plugins: [ 'react-native-paper/babel' ]
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-10-29 13:05:01 +02:00
|
|
|
|
|
|
|
|
// This happens because react native has conflict with @babel/plugin-transform-private-methods plugin
|
|
|
|
|
// https://github.com/ethers-io/ethers.js/discussions/4309#discussioncomment-6694524
|
2025-09-09 12:46:11 +03:00
|
|
|
plugins: [
|
|
|
|
|
'optional-require',
|
|
|
|
|
[
|
|
|
|
|
'@babel/plugin-transform-private-methods', {
|
|
|
|
|
'loose': true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
'react-native-worklets-core/plugin'
|
2024-10-29 13:05:01 +02:00
|
|
|
]
|
2021-05-11 11:01:45 +03:00
|
|
|
};
|