Gathering detailed insights and metrics for react-app-rewire-babel-loader
Gathering detailed insights and metrics for react-app-rewire-babel-loader
Gathering detailed insights and metrics for react-app-rewire-babel-loader
Gathering detailed insights and metrics for react-app-rewire-babel-loader
Rewire babel-loader loader in your create-react-app project using react-app-rewired.
npm install react-app-rewire-babel-loader
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
22 Stars
10 Commits
3 Forks
2 Watchers
1 Branches
1 Contributors
Updated on Oct 31, 2024
Latest Version
0.1.1
Package Id
react-app-rewire-babel-loader@0.1.1
Size
19.46 kB
NPM Version
5.5.1
Node Version
9.2.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
5
Rewire
babel-loader
loader in yourcreate-react-app
project usingreact-app-rewired
.
Say there is an awesome library you found on npm that you want to use within your un-ejected create-react-app
project, but unfortunately, it's published in ES6+ (since node_modules
doesn't go through babel-loader
), so you cannot really use it.
However, with react-app-rewired
and this library, react-app-rewire-babel-loader
, you can use that awesome library you've found.
See below for usage.
1// config-overrides.js 2// see: https://github.com/timarney/react-app-rewired 3 4const path = require("path"); 5const fs = require("fs"); 6 7const rewireBabelLoader = require("react-app-rewire-babel-loader"); 8 9// helpers 10 11const appDirectory = fs.realpathSync(process.cwd()); 12const resolveApp = relativePath => path.resolve(appDirectory, relativePath); 13 14module.exports = function override(config, env) { 15 16 // white-list some npm modules to the babel-loader pipeline 17 // see: https://webpack.js.org/configuration/module/#rule-include 18 19 config = rewireBabelLoader.include( 20 config, 21 resolveApp("node_modules/isemail") 22 ); 23 24 // black-list some modules from the babel-loader pipeline 25 // see: https://webpack.js.org/configuration/module/#rule-exclude 26 27 config = rewireBabelLoader.exclude( 28 config, 29 /(node_modules|bower_components)/ 30 ); 31 32 return config; 33 34};
node.js
and npm
. See: https://github.com/creationix/nvm#installationyarn
. See: https://yarnpkg.com/en/docs/installnpm
dependencies. Run: yarn install
yarn run lint
yarn run pretty
yarn run test
yarn run prepublish
yarn run build
MIT.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/10 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
28 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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