split-require icon indicating copy to clipboard operation
split-require copied to clipboard

capture required bundles during server rendering

Open goto-bus-stop opened this issue 7 years ago • 1 comments

so you can generate script tags for everything that is needed to render the page.

maybe having an api like splitRequire.capture(function (cb) { render(cb) }, function (result, bundles) {}) could be cool; could use the new async_hooks probably.

goto-bus-stop avatar Mar 08 '18 15:03 goto-bus-stop

Not 100% related but you might want to take a look at this: https://github.com/nearform/choo-bundles

diffcunha avatar Apr 06 '18 11:04 diffcunha