lwc
lwc copied to clipboard
fix: implement stylesheet registration and disallow arbitrary functions
#3443
-
fix: implement stylesheet registration and disallow arbitrary functions
-
feat: log as error and use reporting API
-
fix: move to dev-only warning, address PR comments
-
fix: add test to verify existing behavior is maintained
-
fix: only import registerStylesheet if new styles were compiled
Details
Reverts https://github.com/salesforce/lwc/commit/5e9ee508bc9db8405fe38c497f44171dd4c1d67f.
This PR is blocked due to the version mismatch issue with CLWR and cannot be merged/released until that issue is resolved. Once a component's stylesheets are compiled with the new registerStylesheet
API, it will expect the runtime to have that method. To do that, the runtime and compiler versions must both be upgraded.
Does this pull request introduce a breaking change?
- 🚨 Yes, it does introduce a breaking change.
Does this pull request introduce an observable change?
- ⚠️ Yes, it does include an observable change.
GUS work item
/nucleus test