Skip to content

jacob-ebey/esbuild-federation-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.