Open
Description
Is your feature request related to a problem? Please describe.
Adding support for Hot Module Resolution(HMR) requires a registration process to hot swap component constructor, template and stylesheet. Today we have a mechanism to register a template and component constructor as trusted. This feature request is to provide a similar registration mechanism for StyleSheets.
When a new style is being registered for swap, it can be validated before being used.
Describe the solution you'd like
Provide a registerStyleSheet()
API from 'lwc' module
Additional context
This requirement originated while reviewing this PR #1860
Activity