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

Create separate browser and server-side builds #16

Open
overlookmotel opened this issue Apr 7, 2020 · 0 comments
Open

Create separate browser and server-side builds #16

overlookmotel opened this issue Apr 7, 2020 · 0 comments

Comments

@overlookmotel
Copy link
Owner

overlookmotel commented Apr 7, 2020

Most of the code specifically for server-side is contained in the context injected on server side, and so not included in the main bundle.

However, could do a bit better in terms of minimizing the client-side bundle by producing both browser and server builds and using the relevant one using the browser key in package.json - like axios does.

In case that doesn't work for some users, could also allow browser and server builds to be imported directly from:

  • react-lazy-data/browser
  • react-lazy-data/node
  • react-lazy-data/es/browser
  • react-lazy-data/es/node
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

1 participant