zth / rescript-relay-router

MIT License
16 stars 3 forks source link

Remove eagerPreloadFn #52

Closed zth closed 2 years ago

zth commented 2 years ago

Needs to be paired with these changes to the PPX https://github.com/zth/rescript-relay/tree/more-secret-router-work

This removes redundant things from the preload type the PPX uses. It moves from using eagerPreloadFn to eagerly preload code, to using a regular script tag instead, now that we always have the proper chunk src inlined.

It also removes the now redundant duplicate types file, since the PPX has been updated to not refer to it.