sumwatshade / bazel-module-federation

Proof of concept for using Bazel to back a webpack module federation website

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bazel-module-federation

Proof of concept for using Bazel to back a webpack module federation website

Setup

  1. yarn for local development
  2. yarn bazel COMMAND for running any bazel based commands

Run

If you want to try the federated site, you can do the following

  1. Make sure Docker is running on your machine.
  2. yarn bazel build //...
  3. yarn bazel run //src/server
  4. 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.

About

Proof of concept for using Bazel to back a webpack module federation website

License:MIT License


Languages

Language:Starlark 51.8%Language:JavaScript 47.9%Language:Shell 0.3%