Gathering detailed insights and metrics for metro-react-native-babel-preset
Gathering detailed insights and metrics for metro-react-native-babel-preset
Gathering detailed insights and metrics for metro-react-native-babel-preset
Gathering detailed insights and metrics for metro-react-native-babel-preset
babel-preset-expo
The Babel preset for Expo projects
@rnx-kit/babel-preset-metro-react-native
Babel preset for React Native applications
@exodus/metro-react-native-babel-preset
Babel preset for React Native applications
@tuofeng/metro-react-native-babel-preset
Babel preset for React Native applications
🚇 The JavaScript bundler for React Native
npm install metro-react-native-babel-preset
Typescript
Module System
Min. Node Version
Node Version
NPM Version
84.2
Supply Chain
62.7
Quality
75.8
Maintenance
100
Vulnerability
99.3
License
JavaScript (99.81%)
SCSS (0.15%)
CSS (0.03%)
TypeScript (0.02%)
Total Downloads
435,989,409
Last Day
203,668
Last Week
1,130,789
Last Month
5,341,652
Last Year
87,507,457
MIT License
5,372 Stars
4,741 Commits
651 Forks
99 Watchers
94 Branches
413 Contributors
Updated on May 09, 2025
Minified
Minified + Gzipped
Latest Version
0.77.0
Package Id
metro-react-native-babel-preset@0.77.0
Unpacked Size
14.19 kB
Size
4.15 kB
File Count
7
NPM Version
8.19.2
Node Version
18.12.1
Published on
Jul 06, 2023
Cumulative downloads
Total Downloads
Last Day
41.4%
203,668
Compared to previous day
Last Week
1.4%
1,130,789
Compared to previous week
Last Month
-15.9%
5,341,652
Compared to previous month
Last Year
-26.9%
87,507,457
Compared to previous year
39
1
Babel presets for React Native applications. React Native itself uses this Babel preset by default when transforming your app's source code.
If you wish to use a custom Babel configuration by writing a babel.config.js
file in your project's root directory, you must specify all the plugins necessary to transform your code. React Native does not apply its default Babel configuration in this case. So, to make your life easier, you can use this preset to get the default configuration and then specify more plugins that run before it.
As mentioned above, you only need to use this preset if you are writing a custom babel.config.js
file.
Install metro-react-native-babel-preset
in your app:
with npm
:
1npm i metro-react-native-babel-preset --save-dev
or with yarn
:
1yarn add -D metro-react-native-babel-preset
Then, create a file called babel.config.js
in your project's root directory. The existence of this babel.config.js
file will tell React Native to use your custom Babel configuration instead of its own. Then load this preset:
{
"presets": ["module:metro-react-native-babel-preset"]
}
You can further customize your Babel configuration by specifying plugins and other options. See Babel's babel.config.js
documentation to learn more.
If you get stuck configuring Babel, please ask a question on Stack Overflow or find a consultant for help. If you discover a bug, please open up an issue.
No vulnerabilities found.
Reason
all changesets reviewed
Reason
30 commit(s) and 3 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no SAST tool detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
11 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-05-05
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More