mirror of
https://github.com/tooot-app/app
synced 2025-02-19 13:20:36 +01:00
Fixed #61
This commit is contained in:
parent
bde6c77cc1
commit
32a7d23dc9
@ -1,8 +1,7 @@
|
|||||||
module.exports = function (api) {
|
module.exports = function (api) {
|
||||||
api.cache(true)
|
api.cache(true)
|
||||||
return {
|
|
||||||
presets: ['babel-preset-expo'],
|
const plugins = [
|
||||||
plugins: [
|
|
||||||
'@babel/plugin-proposal-optional-chaining',
|
'@babel/plugin-proposal-optional-chaining',
|
||||||
[
|
[
|
||||||
'module-resolver',
|
'module-resolver',
|
||||||
@ -20,5 +19,16 @@ 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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -108,6 +108,7 @@
|
|||||||
"@welldone-software/why-did-you-render": "^6.0.5",
|
"@welldone-software/why-did-you-render": "^6.0.5",
|
||||||
"babel-jest": "~25.2.6",
|
"babel-jest": "~25.2.6",
|
||||||
"babel-plugin-module-resolver": "^4.1.0",
|
"babel-plugin-module-resolver": "^4.1.0",
|
||||||
|
"babel-plugin-transform-remove-console": "^6.9.4",
|
||||||
"chalk": "^4.1.0",
|
"chalk": "^4.1.0",
|
||||||
"dotenv": "^8.2.0",
|
"dotenv": "^8.2.0",
|
||||||
"jest": "^26.6.3",
|
"jest": "^26.6.3",
|
||||||
|
@ -3124,6 +3124,11 @@ babel-plugin-syntax-trailing-function-commas@^7.0.0-beta.0:
|
|||||||
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-7.0.0-beta.0.tgz#aa213c1435e2bffeb6fca842287ef534ad05d5cf"
|
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-7.0.0-beta.0.tgz#aa213c1435e2bffeb6fca842287ef534ad05d5cf"
|
||||||
integrity sha512-Xj9XuRuz3nTSbaTXWv3itLOcxyF4oPD8douBBmj7U9BBC6nEBYfyOJYQMf/8PJAFotC62UY5dFfIGEPr7WswzQ==
|
integrity sha512-Xj9XuRuz3nTSbaTXWv3itLOcxyF4oPD8douBBmj7U9BBC6nEBYfyOJYQMf/8PJAFotC62UY5dFfIGEPr7WswzQ==
|
||||||
|
|
||||||
|
babel-plugin-transform-remove-console@^6.9.4:
|
||||||
|
version "6.9.4"
|
||||||
|
resolved "https://registry.yarnpkg.com/babel-plugin-transform-remove-console/-/babel-plugin-transform-remove-console-6.9.4.tgz#b980360c067384e24b357a588d807d3c83527780"
|
||||||
|
integrity sha1-uYA2DAZzhOJLNXpYjYB9PINSd4A=
|
||||||
|
|
||||||
babel-preset-current-node-syntax@^0.1.2:
|
babel-preset-current-node-syntax@^0.1.2:
|
||||||
version "0.1.4"
|
version "0.1.4"
|
||||||
resolved "https://registry.yarnpkg.com/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-0.1.4.tgz#826f1f8e7245ad534714ba001f84f7e906c3b615"
|
resolved "https://registry.yarnpkg.com/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-0.1.4.tgz#826f1f8e7245ad534714ba001f84f7e906c3b615"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user