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:
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:
rssawb_import_map_ux_fragmentwith the import-map definition and all the script importssingle-spa-angular-widgeta simple parcel
Create a page template with the rssawb_import_map_ux_fragment in it, then design a page with the widget.
See https://dev.entando.org for more information on creating bundles, page templates, etc.
Enjoy!