Very often, we have widgets which reuse components. For example, widget A and B import same package C.
With webpack, we bundle everything so A will have C and B will also have C.
But i wonder if it is possible to split so that we can only load C one time.
If yes, is it possible to add this feature to the boiler-plate?
Unfortunately we don't support multiples widgets per packages at the moment. You can try to extend the webpack config as we documented in the README, or when you have a good solution open a PR.
Very often, we have widgets which reuse components. For example, widget A and B import same package C. With webpack, we bundle everything so A will have C and B will also have C. But i wonder if it is possible to split so that we can only load C one time. If yes, is it possible to add this feature to the boiler-plate?