Select to view content in your preferred language

importing old style modules in typescript

05-29-2019 06:51 AM
New Contributor III

I am making a widget for 4.11 that relies on an older module and a plugin for that module.  The only way I appear to get it to work is to reference the two scripts in < script > tags in the starting index.html page.  However I would like to keep all dependencies entirely contained in the widget instead.  Is this even possible?

These are the scripts as they work at the end of my index.html

<script src='//'></script>
<script src='//'></script>

The annotation plugin for Chart.js is the most picky of the two and is what complicates this.  It needs to be loaded only after the first one has finished, I think because it's expecting Chart as a global.


Tags (2)
0 Kudos
0 Replies