Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert warnings logged from Unexpected LWC stylesheet content to errors #3447

Open
Tracked by #2964
jye-sf opened this issue Apr 5, 2023 · 0 comments
Open
Tracked by #2964

Comments

@jye-sf
Copy link
Contributor

jye-sf commented Apr 5, 2023

Description

#3443 adds logging and reporting when an unregistered stylesheet is evaluated by the engine. The end goal here is to lock this functionality down completely and throw an error when an invalid stylesheet is detected. This is potentially a breaking a change, so we'll evaluate the risk of breakage through the reporting API.

End Goal

// Check that this stylesheet was generated by our compiler
if (!isStylesheetRegistered(stylesheet)) {
    throw new Error(TypeError, `Unexpected LWC stylesheet content found for component <${vm.tagName.toLowerCase()}>.`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants