This continues on the preloading path, and does the following:
Ensure all dynamically imported assets are included in our res manifest.
Ensure route renderer JS script tags are emitted ASAP to the stream. We'll know the client will need them as soon as we've matched the initial routes to the URL, so we can emit them right away.
In dev, dedupe assets between preloading on the client/server.
Bring back script tag based preloading client side.
Things left to fix/that aren't working:
Preloading via script tags in dev in the client bundle doesn't work with Vite's invalidation (appending ?t=<timestamp>), and I don't know how/if we can fix that. It's a small thing though since it's dev only, so we can revisit later.
This continues on the preloading path, and does the following:
Things left to fix/that aren't working:
?t=<timestamp>
), and I don't know how/if we can fix that. It's a small thing though since it's dev only, so we can revisit later.Closes https://github.com/zth/rescript-relay-router/issues/17 Closes https://github.com/zth/rescript-relay-router/issues/46