
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-app-rewire-micro-frontends
Advanced tools
Modifies react-scripts 2.0 for micro frontend development
This package makes a couple of modifications to react-scripts 2.0 for the purpose of building microfrontends
In react-scripts v1, your JavaScript was always compiled to a single file. In
version 2, code splitting is enabled by default, so your application will be
split into several 'chunks' which can be loaded onto the page indepedently. This
makes it much more difficult to dynamically download the required scripts into
an HTML file other than the one that react-scripts generates. So this rewiring
puts things back into a single chunk.
To save bandwidth, react and react-dom are excluded from the compiled code, and are expected to be present on the page as scripts instead.
Install required dependencies:
yarn add -D react-app-rewired react-app-rewire-micro-frontends
Edit your package.json scripts to use react-app-rewired instead of react-scripts.
Add this line to your package.json:
"config-overrides-path": "node_modules/react-app-rewire-micro-frontends",
That's it! Your app should now be compiled to just /static/js/bundle.js in dev
mode, or main.[hash].js for production builds, and in either case the compiled
code will not include react or react-dom.
FAQs
Modifies react-scripts 2.0 for micro frontend development
We found that react-app-rewire-micro-frontends demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.