Open a-chabot opened 1 week ago
BTW one slightly broken thing I noticed is that isWindowOrDocumentCheck
doesn't bother to check the right-hand-side:
This means that it treats typeof document === 'undefined'
the same as typeof document === 'object'
. This doesn't need to be fixed in this PR, but it is odd since they mean completely different things.
@W-17070457 Allow multi conditional !import.meta.env.SSR statements
@lwc/lwc/ssr/no-unsupported-properties
did not recognize when there is a multi conditional check with!import.meta.env.SSR
.Example: These is the scenario we are trying to fix: