Custom Labels
This configuration allows you to define multiple Custom Label paths to be resolved locally without having to explicitly map all files in your lwr.config.json
|lwc.config.json
file.
This differs from the official @lwrjs/label-module-provider
package which is designed to be used with non-on-platform configurations. This package resolves labels directly form your on-platform CustomLabels.labels-meta.xml
file(s).
The configuration uses a custom module provider. This can be configured as follows:
The resolver searches the "paths"
folder for any *.labels-meta.xml
appended files. These are standard on-platform Custom Label XML based files.
Here is an example CustomLabels.labels-meta.xml
:
This can be used within your LWC files using the standard Custom Label import syntax: