Skip to content

Commit

Permalink
add comment for reference
Browse files Browse the repository at this point in the history
  • Loading branch information
solderq35 committed Apr 3, 2024
1 parent f953427 commit 22d0c56
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,16 @@ module.exports = function (api) {
return {
presets: ["babel-preset-expo", "module:metro-react-native-babel-preset"],
plugins: [
// Fix issues with test login script (yarn test), and build cache
// Reference: https://github.com/expo/router/issues/41#issuecomment-1657674119
[
"transform-inline-environment-variables",
{
include: ["EXPO_ROUTER_APP_ROOT"],
},
],
require.resolve("expo-router/babel"),
"@babel/plugin-transform-export-namespace-from",
"react-native-paper/babel",
"react-native-reanimated/plugin",
[
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"devDependencies": {
"@babel/core": "^7.20.0",
"@tanstack/eslint-plugin-query": "^5.20.1",
"babel-plugin-transform-inline-environment-variables": "^0.4.4",
"prettier": "3.2.5",
"prettier-plugin-organize-imports": "^3.2.4"
},
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3523,6 +3523,11 @@ babel-plugin-transform-flow-enums@^0.0.2:
dependencies:
"@babel/plugin-syntax-flow" "^7.12.1"

babel-plugin-transform-inline-environment-variables@^0.4.4:
version "0.4.4"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-inline-environment-variables/-/babel-plugin-transform-inline-environment-variables-0.4.4.tgz#974245008b3cbbd646bd81707af147aea3acca43"
integrity sha512-bJILBtn5a11SmtR2j/3mBOjX4K3weC6cq+NNZ7hG22wCAqpc3qtj/iN7dSe9HDiS46lgp1nHsQgeYrea/RUe+g==

babel-preset-expo@~9.5.2:
version "9.5.2"
resolved "https://registry.yarnpkg.com/babel-preset-expo/-/babel-preset-expo-9.5.2.tgz#5ed1756c8434ca972d7a940e4f13570a283641df"
Expand Down

0 comments on commit 22d0c56

Please sign in to comment.