Closed ZhangYiJiang closed 5 years ago
Hello @ZhangYiJiang,
Do you know how to do that? Do you want to do a PR?
Thanks!
I've not done it before, but I've seen it done using Rollup. I don't have time this week, unfortunately, but I can take a look maybe this or next weekend
I gave this a try yesterday. A few things I've found
Hi @ZhangYiJiang,
Thanks for your all help! I've just updated some dependencies and now the project is using webpack 4.27. Not sure if this can be helpful.
I don't mind to have two different build systems.
Currently because of the way this library is packaged as UMD, importing any component from the library will cause the all components to be imported. It would be great if the components can also be built as ES6 and made available under the
modules
entry point inpackage.json
so that ES6 aware bundlers can shake away unused components.