I'm wondering is there a way to add third-party js libraries to Magento 2 via Composer?
The main idea of this is to separate our modules from those dependencies and to have them required via Composer instead of having them inside modules.
For example, I'm going to implement a Magento 2 module. I would like to use 3rd-party js library to have a user-friendly chart.
How should I use the library in my module?
For now, I see one way only:
- Add the library to files of the module