@rnx-kit/babel-preset-metro-react-native
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "@rnx-kit/babel-preset-metro-react-native", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Babel preset for React Native applications", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/microsoft/rnx-kit/tree/main/packages/babel-preset-metro-react-native#readme", |
@@ -62,3 +62,8 @@ /* jshint esversion: 8, node: true */ | ||
// Use the `esbuild` transform profile if the serializer is being used. | ||
if (!transformProfile && process.env["RNX_METRO_SERIALIZER_ESBUILD"]) { | ||
const env = process.env.BABEL_ENV || process.env.NODE_ENV; | ||
if ( | ||
!transformProfile && | ||
env === "production" && | ||
process.env["RNX_METRO_SERIALIZER_ESBUILD"] | ||
) { | ||
transformProfile = "esbuild"; | ||
@@ -65,0 +70,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8495
146
6