bazel-module-federation
Proof of concept for using Bazel to back a webpack module federation website
Setup
yarn
for local developmentyarn bazel COMMAND
for running any bazel based commands
Run
If you want to try the federated site, you can do the following
- Make sure Docker is running on your machine.
yarn bazel build //...
yarn bazel run //src/server
docker-compose up -d
You can then navigate to http://localhost:8080/
to see the default route and http://localhost:8080/secondary
route.
When done, run docker-compose down
It is recommended you use StackBuild plugin for VSCode to get good Bazel integration.