titouancreach / eeglui

Set of graphical/HOC components built on top of vuetify
0 stars 1 forks source link

Reduce bundle size #3

Open titouancreach opened 6 years ago

titouancreach commented 6 years ago

In the bundle it should only have my code and vue-hoc. It seems that Vue lands in the bundle

suyanhanx commented 6 years ago

Using webpack to build with telling it that the 'Vue' is a globel variable. Without import vue then you can get the bundle you want.

titouancreach commented 6 years ago

Good one! External or global is better with webpack ? I currently use microbundle because I like configuration free bundler

titouancreach commented 6 years ago

https://github.com/jackmellis/vue-hoc/blob/master/src/createHOC.js Vue-hoc include Vue as peer dependencies https://github.com/jackmellis/vue-hoc/issues/20