Is there a way to install a Javascript library using npm install, and use it in a SC Extension?
I've followed this document earlier for using a 3rd party library:
https://developers.suitecommerce.com/add-a-third-party-javascript-library-to-an-extension
But according to this document, I have to copy the files of the library in an extension's module and give it a name in its define method (if it is AMD compatible of course) and then I can use it.
Is there a way to just install the library and use it directly?
The issue is, the library I'm trying to use has a lot of files which reference each other, I'm trying to avoid to modify each of those files and set the define parameters on them manually.