John Barton (2014-07-14T17:53:33.000Z)
forbes at lindesay.co.uk (2014-07-16T22:38:18.940Z)
Why not something more like: ```js class RemappingLoader extends Reflect.Loader { constructor(hooks, baseURL, paths) { super(hooks); //... } fetch(load) { // .. } } Reflect.global.System = new RemappingLoader(Reflect.global.System, process.cwd() + '/', {'*': '*.js' }); ``` The main differences here are: 1. This already works, 2. Use std Loader not System.constructor, 3. Don't attach baseURL to loaderConfig, since the loaderConfig is documented in the std. (System is already an instance of Reflect.Loader so I'm unclear on why we need the change you suggest). The biggest hole I see in my example is the use of Reflect.global.System as the value for the loader hooks. What I want to say here is "This platform's built in loader hooks", not "The loader hooks some random other package wrote onto System".