TODO remove. Should be able to replace this with:

```
extensionRequire = getRequireContextForExtension(name);
module = extensionRequire("main")
```