Gathering detailed insights and metrics for @kne/craco-module-federation
Gathering detailed insights and metrics for @kne/craco-module-federation
Gathering detailed insights and metrics for @kne/craco-module-federation
Gathering detailed insights and metrics for @kne/craco-module-federation
Enable Module Federation on your CRA project without ejecting or losing update support of react-scripts
npm install @kne/craco-module-federation
Typescript
Module System
Node Version
NPM Version
HTML (34.73%)
JavaScript (32.34%)
TypeScript (22.51%)
CSS (9.38%)
SCSS (0.95%)
Shell (0.09%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
50 Stars
10 Commits
20 Forks
4 Watchers
2 Branches
1 Contributors
Updated on Apr 27, 2025
Latest Version
1.1.8
Package Id
@kne/craco-module-federation@1.1.8
Unpacked Size
947.00 kB
Size
372.58 kB
File Count
48
NPM Version
8.19.4
Node Version
16.20.2
Published on
Feb 19, 2024
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
2
1
THIS IS NOT PRODUCTION READY Webpack 5 support of CRA is still in its alpha phase and there might be breaking changes in either CRA5 or this plugin in the future.
Add module-federation support to your CRA5 project without ejecting and losing update support of react-scripts
npm install craco-module-federation --save-dev
const cracoModuleFederation = require('craco-module-federation');
module.exports = {
plugins: [{
plugin: cracoModuleFederation,
options: { useNamedChunkIds:true } //THIS LINE IS OPTIONAL
},
]
}
modulefederation.config.js
in the project root. You should export ModuleFederationPlugin constructor options as json from this module. For example;const deps = require("./package.json").dependencies;
module.exports = {
name: "app1",
exposes: {
"./Button": "./src/Button",
},
remotes: {
app2: "app2@http://localhost:3002/remoteEntry.js",
},
filename: "remoteEntry.js",
shared: {
...deps,
react: {
singleton: true,
requiredVersion: deps["react"],
},
"react-dom": {
singleton: true,
requiredVersion: deps["react-dom"],
},
},
};
...
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"craco:build": "craco build",
"craco:start": "craco start",
...
There are two test apps in this repository inside test folder (app1 and app2). Install their dependencies on them using yarn (yarn install
) and hit yarn start
on both of them. When you navigate to app1 it should render the exported button from app2 that says hello from app2
Licensed under the MIT License, Copyright ©️ 2021 Hasan Ayan. See LICENSE.md for more information.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
Found 0/10 approved changesets -- score normalized to 0
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
65 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-14
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