Gathering detailed insights and metrics for babel-plugin-react-native-web
Gathering detailed insights and metrics for babel-plugin-react-native-web
Gathering detailed insights and metrics for babel-plugin-react-native-web
Gathering detailed insights and metrics for babel-plugin-react-native-web
@applicaster/babel-preset-quick-brick
This Babel preset allows to easily set up the babel config for any quick brick app or plugin. It can be used on web as well as react-native
@startupjs/babel-plugin-react-pug-classnames
[react-pug] Transform className property using BEM classnames-like function
babel-plugin-react-native-web-pass-classname
[react-native-web] Pass className property when style property is passed.
babel-plugin-styled-components-react-native-web
babel plugin for styled-components/native with react-native-web
Cross-platform React UI packages
npm install babel-plugin-react-native-web
Typescript
Module System
Node Version
NPM Version
100
Supply Chain
82.5
Quality
81
Maintenance
100
Vulnerability
100
License
JavaScript (83%)
CSS (9.11%)
HTML (7.85%)
Shell (0.05%)
Total Downloads
116,576,745
Last Day
337,765
Last Week
1,470,193
Last Month
6,154,047
Last Year
49,223,361
MIT License
21,886 Stars
1,996 Commits
1,818 Forks
332 Watchers
21 Branches
187 Contributors
Updated on May 14, 2025
Minified
Minified + Gzipped
Latest Version
0.20.0
Package Id
babel-plugin-react-native-web@0.20.0
Unpacked Size
16.82 kB
Size
4.12 kB
File Count
8
NPM Version
10.9.2
Node Version
22.14.0
Published on
Apr 03, 2025
Cumulative downloads
Total Downloads
Last Day
30.1%
337,765
Compared to previous day
Last Week
6.2%
1,470,193
Compared to previous week
Last Month
3.8%
6,154,047
Compared to previous month
Last Year
83.1%
49,223,361
Compared to previous year
1
A Babel plugin that will alias react-native
to react-native-web
and exclude
any modules not required by your app (keeping bundle size down).
npm install --save-dev babel-plugin-react-native-web
.babelrc
{
"plugins": [
["react-native-web", { commonjs: true }]
]
}
You should configure the plugin to match the module format used by your
bundler. Most modern bundlers will use a package's ES modules by default (i.e.,
if package.json
has a module
field). But if you need the plugin to rewrite
import paths to point to CommonJS modules, you must set the commonjs
option
to true
.
NOTE: react-native-web
internal paths are not stable and you must not rely
on them. Always use the Babel plugin to optimize your build. What follows is an
example of the rewrite performed by the plugin.
Before
1import { StyleSheet, View } from 'react-native';
After
1import StyleSheet from 'react-native-web/dist/exports/StyleSheet'; 2import View from 'react-native-web/dist/exports/View';
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
4 commit(s) and 4 issue activity found in the last 90 days -- score normalized to 6
Reason
Found 8/23 approved changesets -- score normalized to 3
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
16 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