babel-preset-expo
Advanced tools
Comparing version 0.0.1-canary-20240305-e60019e to 0.0.1-canary-20240308-6715875
@@ -84,13 +84,12 @@ "use strict"; | ||
} | ||
const inlineEnv = { | ||
EXPO_OS: platform, | ||
}; | ||
// Allow jest tests to redefine the environment variables. | ||
if (process.env.NODE_ENV !== 'test') { | ||
extraPlugins.push([ | ||
inline_env_vars_1.expoInlineTransformEnvVars, | ||
{ | ||
// These values should not be prefixed with `EXPO_PUBLIC_`, so we don't | ||
// squat user-defined environment variables. | ||
EXPO_BASE_URL: baseUrl, | ||
}, | ||
]); | ||
// These values should not be prefixed with `EXPO_PUBLIC_`, so we don't | ||
// squat user-defined environment variables. | ||
inlineEnv['EXPO_BASE_URL'] = baseUrl; | ||
} | ||
extraPlugins.push([inline_env_vars_1.expoInlineTransformEnvVars, inlineEnv]); | ||
// Only apply in non-server, for metro-only, in production environments, when the user hasn't disabled the feature. | ||
@@ -97,0 +96,0 @@ // Webpack uses DefinePlugin for environment variables. |
{ | ||
"name": "babel-preset-expo", | ||
"version": "0.0.1-canary-20240305-e60019e", | ||
"version": "0.0.1-canary-20240308-6715875", | ||
"description": "The Babel preset for Expo projects", | ||
@@ -56,6 +56,6 @@ "main": "build/index.js", | ||
"@babel/core": "^7.20.0", | ||
"expo-module-scripts": "0.0.1-canary-20240305-e60019e", | ||
"expo-module-scripts": "0.0.1-canary-20240308-6715875", | ||
"jest": "^29.2.1" | ||
}, | ||
"gitHead": "e60019e11a6d46e330b57b18c64468a58d589875" | ||
"gitHead": "67158757cf78be8094fe6b7461e8523157f1f615" | ||
} |
56669
992