├── .gitignore ├── .nvmrc ├── README.md ├── app1 ├── .babelrc ├── .gitignore ├── package.json ├── src │ ├── bootstrap.tsx │ ├── components │ │ └── NavigationManager.tsx │ ├── index.css │ ├── index.html │ ├── index.ts │ ├── pages │ │ ├── Page1.tsx │ │ └── Page2.tsx │ └── routing │ │ ├── router-factory.ts │ │ ├── routes.tsx │ │ └── types.ts ├── tsconfig.json └── webpack.config.js ├── app2 ├── .babelrc ├── .gitignore ├── package.json ├── src │ ├── bootstrap.tsx │ ├── components │ │ └── NavigationManager.tsx │ ├── index.css │ ├── index.html │ ├── index.ts │ ├── pages │ │ ├── PageA.tsx │ │ └── PageB.tsx │ └── routing │ │ ├── router-factory.ts │ │ ├── routes.tsx │ │ └── types.ts ├── tsconfig.json └── webpack.config.js ├── package.json └── shell ├── .babelrc ├── .gitignore ├── package.json ├── src ├── App.tsx ├── bootstrap.tsx ├── components │ ├── App1.tsx │ ├── App2.tsx │ └── Layout.tsx ├── index.css ├── index.html ├── index.ts ├── remotes.d.ts └── routing │ ├── Router.tsx │ ├── constants.ts │ └── routes.tsx ├── tsconfig.json └── webpack.config.js /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/.gitignore -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 16.14.0 -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/README.md -------------------------------------------------------------------------------- /app1/.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/app1/.babelrc -------------------------------------------------------------------------------- /app1/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/app1/.gitignore -------------------------------------------------------------------------------- /app1/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/app1/package.json -------------------------------------------------------------------------------- /app1/src/bootstrap.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/app1/src/bootstrap.tsx -------------------------------------------------------------------------------- /app1/src/components/NavigationManager.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/app1/src/components/NavigationManager.tsx -------------------------------------------------------------------------------- /app1/src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/app1/src/index.css -------------------------------------------------------------------------------- /app1/src/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/app1/src/index.html -------------------------------------------------------------------------------- /app1/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/app1/src/index.ts -------------------------------------------------------------------------------- /app1/src/pages/Page1.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/app1/src/pages/Page1.tsx -------------------------------------------------------------------------------- /app1/src/pages/Page2.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/app1/src/pages/Page2.tsx -------------------------------------------------------------------------------- /app1/src/routing/router-factory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/app1/src/routing/router-factory.ts -------------------------------------------------------------------------------- /app1/src/routing/routes.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/app1/src/routing/routes.tsx -------------------------------------------------------------------------------- /app1/src/routing/types.ts: -------------------------------------------------------------------------------- 1 | export type RoutingStrategy = 'memory' | 'browser'; -------------------------------------------------------------------------------- /app1/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/app1/tsconfig.json -------------------------------------------------------------------------------- /app1/webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/app1/webpack.config.js -------------------------------------------------------------------------------- /app2/.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/app2/.babelrc -------------------------------------------------------------------------------- /app2/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/app2/.gitignore -------------------------------------------------------------------------------- /app2/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/app2/package.json -------------------------------------------------------------------------------- /app2/src/bootstrap.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/app2/src/bootstrap.tsx -------------------------------------------------------------------------------- /app2/src/components/NavigationManager.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/app2/src/components/NavigationManager.tsx -------------------------------------------------------------------------------- /app2/src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/app2/src/index.css -------------------------------------------------------------------------------- /app2/src/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/app2/src/index.html -------------------------------------------------------------------------------- /app2/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/app2/src/index.ts -------------------------------------------------------------------------------- /app2/src/pages/PageA.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/app2/src/pages/PageA.tsx -------------------------------------------------------------------------------- /app2/src/pages/PageB.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/app2/src/pages/PageB.tsx -------------------------------------------------------------------------------- /app2/src/routing/router-factory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/app2/src/routing/router-factory.ts -------------------------------------------------------------------------------- /app2/src/routing/routes.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/app2/src/routing/routes.tsx -------------------------------------------------------------------------------- /app2/src/routing/types.ts: -------------------------------------------------------------------------------- 1 | export type RoutingStrategy = 'memory' | 'browser'; -------------------------------------------------------------------------------- /app2/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/app2/tsconfig.json -------------------------------------------------------------------------------- /app2/webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/app2/webpack.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/package.json -------------------------------------------------------------------------------- /shell/.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/shell/.babelrc -------------------------------------------------------------------------------- /shell/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/shell/.gitignore -------------------------------------------------------------------------------- /shell/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/shell/package.json -------------------------------------------------------------------------------- /shell/src/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/shell/src/App.tsx -------------------------------------------------------------------------------- /shell/src/bootstrap.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/shell/src/bootstrap.tsx -------------------------------------------------------------------------------- /shell/src/components/App1.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/shell/src/components/App1.tsx -------------------------------------------------------------------------------- /shell/src/components/App2.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/shell/src/components/App2.tsx -------------------------------------------------------------------------------- /shell/src/components/Layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/shell/src/components/Layout.tsx -------------------------------------------------------------------------------- /shell/src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/shell/src/index.css -------------------------------------------------------------------------------- /shell/src/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/shell/src/index.html -------------------------------------------------------------------------------- /shell/src/index.ts: -------------------------------------------------------------------------------- 1 | import('./bootstrap'); 2 | 3 | export {}; 4 | -------------------------------------------------------------------------------- /shell/src/remotes.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/shell/src/remotes.d.ts -------------------------------------------------------------------------------- /shell/src/routing/Router.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/shell/src/routing/Router.tsx -------------------------------------------------------------------------------- /shell/src/routing/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/shell/src/routing/constants.ts -------------------------------------------------------------------------------- /shell/src/routing/routes.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/shell/src/routing/routes.tsx -------------------------------------------------------------------------------- /shell/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/shell/tsconfig.json -------------------------------------------------------------------------------- /shell/webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nebarf/module-federation-react-router-dom/HEAD/shell/webpack.config.js --------------------------------------------------------------------------------