@salesforce/webapp-template-feature-micro-frontend
v1.107.2
Published
Micro Frontend generation feature for Web Applications
Maintainers
Keywords
Readme
Feature: Micro Frontends
Overview
This feature provides Micro Frontend integration for Salesforce Web Applications, including:
- Generation - Integration with a CLI script to generate a Micro Frontend given a Web Application
- Builder Integration - Exposing a Micro Frontend to builder targets
- Customization - Customizing a Micro Frontend with properties
Usage
See also: Micro Frontend Skill
Generate
Build and preview the Web Application:
npm run build # apply patches → dist
npm run generate # generate a Micro Frontend LWC component for the Web AppBuilder Integration
Customize the targets for the Micro Frontend component under force-app/main/default/lwc/featureMicroFrontend/featureMicroFrontend.js-meta.xml.
Customization with Properties
Update the Micro Frontend properties by returning data from the properties getter in force-app/main/default/lwc/featureMicroFrontend/featureMicroFrontend.js. All properties are passed to the Web Application wrapped in the Micro Frontend upon page load.
To make the properties builder-configurable, add targetConfigs in the js-meta file along with corresponding @api public properties.
