We are not declaring JavaScript libraries as globals in UX for a good while now; this approach was deprecated months ago.
Please check the example in that repository, which uses require() to include the bundled library. If the problem persists, I suggest you raise an issue on that repository for the author to see.