You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I want to hook into the resolution logic of import('/virtual/path').
Describe the solution you'd like
Make the rollup hook resolveDynamicImport works in dev. It works similar to resolveId hook, but applied to dynamic import
Describe alternatives you've considered
We can also make resolveId apply to dynamic import.
Uhm, any news about this? This is a blocker to using SSR with React 18. You need to add <script defer> for every thing that was import()ed during server rendering into the end of generated HTML, so that before you hydrate everything is already loaded. Otherwise it will overwrite already generated HTML for <Suspense> with loaders.
At the moment there is no API to collect the list of loaded dynamic imports during SSR.
Is your feature request related to a problem? Please describe.
I want to hook into the resolution logic of
import('/virtual/path')
.Describe the solution you'd like
Make the rollup hook resolveDynamicImport works in dev. It works similar to
resolveId
hook, but applied to dynamic importDescribe alternatives you've considered
We can also make
resolveId
apply to dynamic import.The text was updated successfully, but these errors were encountered: