If I include de library in a html file outside maestro, it works like a charm, but as soon as i try to use it inside a maestro form it throws undefined whenever i call it.
It seems that theres somo issues when you use any library built with webpack and 'umd' as targetLibrary. To get this working i had to clone the git repo and specify 'var' as targetLibrary.
Probably you can solve this problem using this reference:
Library Advanced Features
Let me know if you solve the problem with these feedback.