esbuild-federation-example
esbuild-federation-example copied to clipboard
Demonstrates consuming modules from a webpack bundle from an esbuild bundle using https://github.com/jacob-ebey/esbuild-federation-share-scope.
esbuild federation example
Demonstrates consuming modules from a webpack bundle from an esbuild bundle using esbuild-federation-share-scope.
See it live
esbuild-host: https://esbuild-federation-example-esbuild-host.vercel.app/
webpack-remote: https://esbuild-federation-example-webpack-remote.vercel.app/
Running
From the root of the project:
yarn
yarn build
yarn start
or in the individual folders, you can run vercel dev --listen 300{0 or 1}
The webpack bundled application that owns the Header component will start on http://localhost:3001 while the esbuild bundled application that consumes the exposed Header component will start on http://localhost:3000.