From ab23f4c7271af1cf3e62954dac1e3a874f91b2b2 Mon Sep 17 00:00:00 2001 From: Tomek Zawadzki Date: Fri, 31 Jul 2026 15:22:50 +0200 Subject: [PATCH] Revert "Fix worklets errors" This reverts commit a06d6d241fbf51fa2ae65e4cba2dccdd692a64c1. --- babel.config.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/babel.config.js b/babel.config.js index 38ba69b4f0..c29a1d2e44 100644 --- a/babel.config.js +++ b/babel.config.js @@ -3,16 +3,6 @@ * @returns {import("@babel/core").InputOptions} */ module.exports = function (api) { - /* - * react-native-dotenv inlines every `process.env.*` reference (in - * node_modules too) from the transform worker's environment. Metro workers - * run under jest-worker, which sets JEST_WORKER_ID, so keeping the plugin in - * Metro builds bakes JEST_WORKER_ID into the app bundle and flips - * react-native-reanimated into its Jest/web mode on device. Only the webpack - * web build needs it. - */ - const isWebpack = api.caller(caller => caller?.name === 'babel-loader') - return { presets: [ [ @@ -30,7 +20,7 @@ module.exports = function (api) { plugins: [ '@lingui/babel-plugin-lingui-macro', ['babel-plugin-react-compiler', {target: '19'}], - ...(isWebpack ? ['module:react-native-dotenv'] : []), // used by web build! can remove when we drop webpack + 'module:react-native-dotenv', // used by web build! can remove when we drop webpack [ 'module-resolver', {