Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Talk:Javascript Modules

From MoodleDocs

1. I have a third party javascript module which doesn't use an external framework (e.g. jQuery) and isn't an AMD module. I may only have the minified version of the module. I want to include it in my Moodle page. How do I do that?

2. Same question as above but the module is a jQuery non-AMD module. How do I include it?

The page reads to me like there should be a way to do that... it mentions that there is a way, but only describes what to do if the JavaScript file is an AMD module.