Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

capture required bundles during server rendering #19

Open
goto-bus-stop opened this issue Mar 8, 2018 · 1 comment
Open

capture required bundles during server rendering #19

goto-bus-stop opened this issue Mar 8, 2018 · 1 comment

Comments

@goto-bus-stop
Copy link
Owner

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.

@diffcunha
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants