diff --git a/babel.config.js b/babel.config.js index de000b9de8..24bdde26f2 100644 --- a/babel.config.js +++ b/babel.config.js @@ -18,6 +18,7 @@ module.exports = function (api) { plugins: [ '@lingui/babel-plugin-lingui-macro', ['babel-plugin-react-compiler', {target: '19'}], + 'module:react-native-dotenv', // used by web build! can remove when we drop webpack [ 'module-resolver', { diff --git a/eslint.config.mjs b/eslint.config.mjs index c8addf66ae..d8bf2d6ecb 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -38,6 +38,8 @@ export default defineConfig( '*.e2e.ts', '*.e2e.tsx', 'eslint.config.mjs', + 'babel.config.js', + 'metro.config.js', '.jscodeshift/**', ], }, diff --git a/package.json b/package.json index 01908600bb..bfe9dcf9c4 100644 --- a/package.json +++ b/package.json @@ -297,6 +297,7 @@ "jest-junit": "^16.0.0", "lint-staged": "^13.2.3", "prettier": "^3.8.3", + "react-native-dotenv": "^3.4.11", "react-refresh": "^0.14.0", "svgo": "^3.3.2", "ts-plugin-sort-import-suggestions": "^1.0.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index de5c6d073a..f2c97f65df 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -851,6 +851,9 @@ importers: prettier: specifier: ^3.8.3 version: 3.8.3 + react-native-dotenv: + specifier: ^3.4.11 + version: 3.4.11(@babel/runtime@7.29.2) react-refresh: specifier: ^0.14.0 version: 0.14.2 @@ -8008,6 +8011,11 @@ packages: react: '*' react-native: '*' + react-native-dotenv@3.4.11: + resolution: {integrity: sha512-6vnIE+WHABSeHCaYP6l3O1BOEhWxKH6nHAdV7n/wKn/sciZ64zPPp2NUdEUf1m7g4uuzlLbjgr+6uDt89q2DOg==} + peerDependencies: + '@babel/runtime': ^7.20.6 + react-native-drawer-layout@4.2.3: resolution: {integrity: sha512-mj/riptO4O8D9loG9N76M4VqLR9EQXLQkx/nN4GVgT/y46wpVlrqqLlDAqFVylTDEW/u3WvZhZph+8Iu64MsZw==} peerDependencies: @@ -17846,6 +17854,11 @@ snapshots: react: 19.1.0 react-native: 0.81.5(patch_hash=2656ac6deb71b92a4df4af4593d13ace6a5740936432e5e7e8ef32bc3cd05194)(@babel/core@7.29.0)(@types/react@19.1.17)(react@19.1.0) + react-native-dotenv@3.4.11(@babel/runtime@7.29.2): + dependencies: + '@babel/runtime': 7.29.2 + dotenv: 16.6.1 + react-native-drawer-layout@4.2.3(patch_hash=74f2c043cc22ab87054f219e7c7373a509b779b18bfa79d27e7d051d73355130)(react-native-gesture-handler@2.28.0(react-native@0.81.5(patch_hash=2656ac6deb71b92a4df4af4593d13ace6a5740936432e5e7e8ef32bc3cd05194)(@babel/core@7.29.0)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0))(react-native-reanimated@3.19.1(patch_hash=97a1967f37a4213fbab59e1fd59a1bf859b5efc79af5e1b528a47fe488e6c5d6)(@babel/core@7.29.0)(react-native@0.81.5(patch_hash=2656ac6deb71b92a4df4af4593d13ace6a5740936432e5e7e8ef32bc3cd05194)(@babel/core@7.29.0)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0))(react-native@0.81.5(patch_hash=2656ac6deb71b92a4df4af4593d13ace6a5740936432e5e7e8ef32bc3cd05194)(@babel/core@7.29.0)(@types/react@19.1.17)(react@19.1.0))(react@19.1.0): dependencies: color: 4.2.3