This is a recipe for creating a bundle with a micro frontend widget using a single spa parcel (https://single-spa.js.org/docs/parcels-overview/).
With this configuration, you can use the ent cli (https://dev.entando.org/v6.3/docs/reference/entando-cli.html) to perform the different tasks:
mkdir bundle && cp -r bundle-src/* bundleent prj initent prj fe-build -aent prj pbs-init(it asks for the git bundle repo)ent prj fe-push- For a local Entando installation:
ent prj generate-cr | ent kubectl create -n entando -f -
Install the bundle using the App Builder.
The bundle contains:
import_map_ux_fragmentwith the import-map definition and all the script importssingle-spa-react-router-widgetan example for hashrouting a MFE widget inside entandosingle-spa-react-widgeta simple parcel
Create a page template with the import_map_ux_fragment in it, then design a page with the widgets.
See https://dev.entando.org for more information on creating bundles, page templates, etc.
Enjoy!