salesforce/lwc

[SSR] Restrict exports from `lwc` package

Opened this issue · 1 comments

Follow-up to https://github.com/salesforce/lwc/pull/4617/files#r1800044756.

If you can't import certain things from 'lwc', then you shouldn't be able to export them either:

export { foo } from 'lwc'

Also we should probably rename allowedLwcImports to ssrFriendlyLwcImports or something, since that's the real intent.

This issue has been linked to a new work item: W-16984771