how to implement react serverside rendering with codesplitting using rollup?

273 Views Asked by At

I recently implemented serverside-rendering react app with code splitting using loadable-components

But it seems that loadable-components itself dependent on webpack, since loadable replaces jsonp_callback with its own reporter.

So what are the alternative options that we can use when using other bundlers like rollup, esbuild?

Do we have to manually walk through the react tree to pre configure which chunk is needed on which component unless there is no specific bundler targeted library like loadable-components when implementing code splitting on serverside rendering?

0

There are 0 best solutions below