So I created a form and and attached a Drupal library to it. From there I created a route that uses that form. Last a added a link that uses ajax to render that form.
For some reason when I look at the context that is rendered from that ajax request the /core/misc/vertical-tabs.js?v=8.2.6 gets loaded onto the page along with the form content, but my attached custom library does not.
If I visit the page without using the ajax request both the /core/misc/vertical-tabs.js?v=8.2.6 and my custom library load fine.
How can I get my custom library to load with ajax?