I am needing to update some Javascript in a custom plugin we developed for our installation a few years ago and I remember struggling last time with figuring out how exactly to make an AMD module. Evidentially I figured it out back then as it works and has worked since that version was released, but like so many one-time requirements I have lost this knowledge. Now in reviewing several pages across the Moodle docs including Javascript Modules and Grunt, I see several changes have come about in regards to ES6 and that beginning in 3.10 (which we will move to soon) these scripts will have to be in ES6 anyway.
What I cannot figure out is if I simply MUST use Grunt or if there is another way to get the ES6 code converted to a module in the format needed for Moodle. Our team already has a couple processors in place and I hesitate to require anyone who needs to work on our Moodle code to have to go through the time and effort to set up yet another workflow just to make small changes to Javascript. Our primary tool for processing is Prepros and I've tried having my ES6 code transpiled with Babel and Bundled with imports and required modules through that tool. But when I load the page, I get a console warning Uncaught Error: No define call for plugin_name/filename.
Do I have to go through Grunt?