In terms of 3rd party code, you can just add the JS file into the project and change the loading type to be ‘Before Engine’.
Alternatively, you can go into project settings and add the URL to External Scripts

As for modules, I believe they have to be loaded in a particular way? @Leonidas or @will might have some more info on that.