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

Reduce bundle size #411

Open
austinhallock opened this issue May 6, 2020 · 0 comments
Open

Reduce bundle size #411

austinhallock opened this issue May 6, 2020 · 0 comments

Comments

@austinhallock
Copy link
Contributor

This is obviously very low priority, but here's what the current breakdown of bundle size is

Some big boy libraries in there:

  • vue-phone-number-input (upgrading to v1+ will fix part of that (info). But probably should dynamically import this.
  • moment (Replace moment.js with dayjs #409)
  • sentry (try importing just what you need instead of *)
  • lodash (import just what you need instead of _ from "lodash), and you might need to use lodash-es
  • awesome-phonenumber dynamic import
  • socket.io/engine.io/vue-socket.io not sure for this one. Socket.io has a slim version, but you'd have to fork vue-socket.io to use it, so probably not worth it

To get the bundle size breakdown (image above), you can use BUNDLE_ANALYZER=1 npm run build if #410 gets merged

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

No branches or pull requests

1 participant