create app shell (aka root) npx create-single-spa --moduleType root-config
app shell running on http://localhost:9000
npx create-single-spa --moduleType app-parcel
run 'rc' micro frontend yarn start --port 8500
npx create-single-spa --moduleType app-parcel
run 'bpm' micro frontend yarn start --port 8501
npx create-single-spa --moduleType app-parcel
run 'header' micro frontend yarn start --port 8502
npx create-single-spa --moduleType app-parcel
run 'dd' micro frontend yarn start --port 5000
edit index.ejs
and add the following imports
"react": "https://cdn.jsdelivr.net/npm/[email protected]/umd/react.production.min.js",
"react-dom": "https://cdn.jsdelivr.net/npm/[email protected]/umd/react-dom.production.min.js"
"@dmi/rc": "http://localhost:8500/dmi-rc.js",
"@dmi/bpm": "http://localhost:8501/dmi-bpm.js",
"@dmi/header": "http://localhost:5000/dmi-dd.js",
update microfrontend-layout.html
<application name="@single-spa/welcome"></application>