esm.sh provides a fast, global content delivery network publicly using Cloudflare, but you also can deploy your own CDN.
You will need Go 1.16+ to compile the server. The server runtime will install the nodejs (14 LTS) automatically.
git clone https://github.com/esm-dev/esm.sh
cd esm.sh
go run main.go --port=8080 --dev
then you can import React
from http://localhost:8080/react
Please ensure the supervisor installed on your host machine.
./scripts/deploy.sh
WIP
An example Dockerfile is found in the root of this project.