Convert CodeLoader() to match ES6 Loader()