A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/probil/vue-socket.io-extended/issues/19 below:

Prevent socket.io-client duplication by force user to provide an instance of it · Issue #19 · probil/vue-socket.io-extended · GitHub

I've made investigation today using vue cli, and that's what I got:

vue                                                    : 61.77 kb
vue + vue-socket.io-extended                           : 132.10 kb
vue + vue-socket.io-extended + custom socket.io-client : 190.87 kb

There is a duplication of socket.io-client library when you pass socket.io-client instance to the plugin.
So if you use it this way, you probably have extra ~70kb of useless data in your build.

The only way to fix it is to force library user to pass socket.io-client instance always.

Advantages:

Disadvantages:

d-corler and Alonso-GarnierBBDO


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4