salesforce / lwc

⚡️ LWC - A Blazing Fast, Enterprise-Grade Web Components Foundation
https://lwc.dev
Other
1.64k stars 392 forks source link

[SSR] Make dynamic `import()`s no-ops #4875

Open nolanlawson opened 2 hours ago

nolanlawson commented 2 hours ago

In the SSR compiler, dynamic import()s should (probably) be no-ops because we run in sync mode so you wouldn't be able to do anything with the constructor you import anyway.

We also need to strip these import()s anyway because core will complain if it sees them after compilation.

git2gus[bot] commented 1 hour ago

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