@lwc/errors
9.5.3 · 27 Oct 2026MIT384.1k / weekRepositoryHomepagenpmAtom feed
6.7.2 is the newest release of 6.x.
In short
8 faster7 fixed2 internal
Release note
Observable changes
HTML elements with class and style attributes may render with additional whitespace. This is due to an optimization to improve the render time of Lightning Web Components.
This change is exactly the same as what we've reported in previous releases, and can be fixed by avoiding anti-patterns for styling components. E.g.:
/* Don’t do this */
document.querySelector('[class="highlight yellow"]');
/* Do this instead */
document.querySelector(".highlight.yellow");The difference now is that this change may be seen in more components than before.
What's Changed
Apply static parts optimization to dynamic attributes
Fix iframe onload with static content optimization
Remove unnecessary nullish coalescing
Apply static parts optimization to dynamic style
synthetic-shadow: Optimize recursivelySetShadowResolver
template-compiler: Support
keyin static contentOptimize
createUpgradableConstructorApply static parts optimization to dynamic class attributes
Support arguments for FACE callbacks
engine-core: Fix warnings for invalid keys
engine-core: Optimize
patchClassAttributeError accessing tagName on fragment
Apply static parts optimization to dynamic text
Children and childNodes not returning top-level slotted children
Add signals as dependency