├── test ├── app2 │ ├── .env │ ├── src │ │ ├── index.ts │ │ ├── react-app-env.d.ts │ │ ├── App.tsx │ │ ├── Button │ │ │ ├── JeanSunHo.ttf │ │ │ ├── style.scss │ │ │ └── index.tsx │ │ ├── bootstrap.tsx │ │ └── setupTests.ts │ ├── public │ │ ├── robots.txt │ │ ├── favicon.ico │ │ ├── logo192.png │ │ ├── logo512.png │ │ ├── manifest.json │ │ └── index.html │ ├── craco.config.js │ ├── .gitignore │ ├── modulefederation.config.js │ ├── tsconfig.json │ ├── package.json │ └── README.md └── app1 │ ├── src │ ├── index.ts │ ├── react-app-env.d.ts │ ├── Button.tsx │ ├── setupTests.ts │ ├── bootstrap.tsx │ ├── App.test.tsx │ ├── index.css │ ├── App.tsx │ ├── App.css │ └── logo.svg │ ├── public │ ├── robots.txt │ ├── favicon.ico │ ├── logo192.png │ ├── logo512.png │ ├── manifest.json │ └── index.html │ ├── craco.config.js │ ├── .gitignore │ ├── modulefederation.config.js │ ├── tsconfig.json │ ├── package.json │ └── README.md ├── .gitignore ├── .github └── workflows │ └── npm-publish.yml ├── package.json ├── LICENSE.md ├── index.js └── README.md /test/app2/.env: -------------------------------------------------------------------------------- 1 | PORT=3002 -------------------------------------------------------------------------------- /test/app1/src/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-ignore 2 | import("./bootstrap"); 3 | -------------------------------------------------------------------------------- /test/app2/src/index.ts: -------------------------------------------------------------------------------- 1 | // @ts-ignore 2 | import("./bootstrap"); 3 | -------------------------------------------------------------------------------- /test/app1/src/react-app-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /test/app2/src/react-app-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /test/app1/public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /test/app2/public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /test/app1/src/Button.tsx: -------------------------------------------------------------------------------- 1 | const Button = () => ; 2 | export default Button; 3 | -------------------------------------------------------------------------------- /test/app1/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasanayan/craco-module-federation/HEAD/test/app1/public/favicon.ico -------------------------------------------------------------------------------- /test/app1/public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasanayan/craco-module-federation/HEAD/test/app1/public/logo192.png -------------------------------------------------------------------------------- /test/app1/public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasanayan/craco-module-federation/HEAD/test/app1/public/logo512.png -------------------------------------------------------------------------------- /test/app2/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasanayan/craco-module-federation/HEAD/test/app2/public/favicon.ico -------------------------------------------------------------------------------- /test/app2/public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasanayan/craco-module-federation/HEAD/test/app2/public/logo192.png -------------------------------------------------------------------------------- /test/app2/public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasanayan/craco-module-federation/HEAD/test/app2/public/logo512.png -------------------------------------------------------------------------------- /test/app2/src/App.tsx: -------------------------------------------------------------------------------- 1 | import Button from "./Button"; 2 | function App() { 3 | return