mirror of
https://github.com/tooot-app/app
synced 2025-01-10 08:33:45 +01:00
Fix babel
This commit is contained in:
parent
f3b46b7e9c
commit
21d6baa70d
@ -1,13 +1,7 @@
|
|||||||
module.exports = function (api) {
|
module.exports = function (api) {
|
||||||
api.cache(false)
|
api.cache(false)
|
||||||
|
|
||||||
if (process.env.NODE_ENV === 'production' || process.env.BABEL_ENV === 'production') {
|
const plugins = [
|
||||||
plugins.push('transform-remove-console')
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
presets: ['babel-preset-expo'],
|
|
||||||
plugins: [
|
|
||||||
'@babel/plugin-proposal-optional-chaining',
|
'@babel/plugin-proposal-optional-chaining',
|
||||||
[
|
[
|
||||||
'module-resolver',
|
'module-resolver',
|
||||||
@ -26,5 +20,10 @@ module.exports = function (api) {
|
|||||||
],
|
],
|
||||||
'react-native-reanimated/plugin'
|
'react-native-reanimated/plugin'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if (process.env.NODE_ENV === 'production' || process.env.BABEL_ENV === 'production') {
|
||||||
|
plugins.push('transform-remove-console')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return { presets: ['babel-preset-expo'], plugins }
|
||||||
}
|
}
|
||||||
|
@ -258,7 +258,7 @@ const ScreenCompose: React.FC<RootStackScreenProps<'Screen-Compose'>> = ({
|
|||||||
<HeaderRight
|
<HeaderRight
|
||||||
type='text'
|
type='text'
|
||||||
content={t(
|
content={t(
|
||||||
`heading.right.button.${
|
`screenCompose:heading.right.button.${
|
||||||
(params?.type &&
|
(params?.type &&
|
||||||
(params.type === 'conversation'
|
(params.type === 'conversation'
|
||||||
? params.visibility === 'direct'
|
? params.visibility === 'direct'
|
||||||
@ -266,7 +266,7 @@ const ScreenCompose: React.FC<RootStackScreenProps<'Screen-Compose'>> = ({
|
|||||||
: 'default'
|
: 'default'
|
||||||
: params.type)) ||
|
: params.type)) ||
|
||||||
'default'
|
'default'
|
||||||
}` as any
|
}`
|
||||||
)}
|
)}
|
||||||
onPress={() => {
|
onPress={() => {
|
||||||
composeDispatch({ type: 'posting', payload: true })
|
composeDispatch({ type: 'posting', payload: true })
|
||||||
|
Loading…
Reference in New Issue
Block a user