This repository has been archived by the owner on Feb 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
optimize bundle size #196
Comments
graphql-zeus's AllTypesProps takes quite a bit (233kB, though it gzips to 17kB). We could limit our GraphQL API surface to the nodes we're actually using from the frontend and generate a constrained Zeus client for production.
|
We could consider getting rid of @unly/universal-language-detector in favor of next-i18next. It seems that universal-langauage-detector imports both server and browser code eagerly https://github.com/UnlyEd/universal-language-detector/blob/master/src/index.ts, and it also imports |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Problem
Course of action
This look like we're including a server-only module in bundle.
browser
field in package.json or webpack's IgnorePlugin to exclude the module.See https://arunoda.me/blog/ssr-and-server-only-modules
The text was updated successfully, but these errors were encountered: