I did not know that it was that easy to plug in new functionality in the
module loader. With this new information it seems very doable to package an
application with Rollup (and have the benefit of their tree-shaking and
other goodies), and then write a new module loader that can load the few
Thanks for the tip. This gives me like a 25% reduction in size for our
project which is very valuable to us.
Cheers
//Jan
fre 21 okt. 2016 kl 20:25 skrev Alain Mouette :
> You could try
> Npm dedupe
>
> -
> Alain Mouette
>
> A 13 de outubro de 2016 11:44:06
Thanks for this.
We have tried this, but as soon has you have add-on modules, things starts
to get complicated. I have made some experiments with webpack and Rollup
and while distributing pure JS projects is not a problem, AFAIK neither of
them support the loading of add-ons, since how that