This question has been answered many times before, and I know one solution is to simply change it so (Esri's)dojo is the last one to load.
Problem is I'm working on a modular widget that has no access to the page's html to change the order, I must only load libraries via Dojo's AMD Loader.
Folder structure :
/Widget
--/Widget.js
--/Datatable.js
This is the Widget.js file:
<SPAN class="token function">define</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">[</SPAN>
<SPAN class="string token">'./Datatable'</SPAN><SPAN class="punctuation token">,</SPAN>
<SPAN class="string token"><SPAN>'</SPAN><A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fcode.jquery.com%2Fjquery-3.3.1.min.js" target="_blank">https://code.jquery.com/jquery-3.3.1.min.js</A><SPAN>'</SPAN></SPAN><SPAN class="punctuation token">,</SPAN>
<SPAN class="string token"><SPAN>'</SPAN><A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fstackpath.bootstrapcdn.com%2Fbootstrap%2F4.1.1%2Fjs%2Fbootstrap.bundle.js" target="_blank">https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.bundle.js</A><SPAN>'</SPAN></SPAN><SPAN class="punctuation token">,</SPAN>
<SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="keyword token">function</SPAN><SPAN class="punctuation token">(</SPAN>Datatable<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">{</SPAN> <SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN> <SPAN class="punctuation token">}</SPAN>
<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>