How to use external javascript libraries in RPG Maker MV plugin?

Hello,

Apologies if this is a silly question, my use of javascript has been very limited thus far.

When using a javascript library in a html file I would typically include it like so (jquery used as an example):

<script src="http://code.jquery.com/jquery-1.11.1.js"></script>What would be the best way to include a library for an RPG Maker MV plugin?

Obviously I would want the file available locally, is it best placed inside the plugin itself, in another plugin or within the js\libs\ folder?

Also how would I actually reference the library itself in the javascript plugin file?

Thank you!
Please, don't use jquery with rpg maker. DOM manipulation is not very usefull with games.

But if you still want to use a library, you may want to edit index.html to include it.

If you plant to redistribute it, another way would be loading that library as a plugin before your plugin, that way ther library will be loaded before.
Aha don't worry, I'm not planning to use jquery, it was just the first example I had to hand.

I think I'll go the route of adding it as a plugin before my own, thank you!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-use-external-javascript-libraries-in-rpg-maker-mv-plugin.48679/