js-loaders
js-loaders copied to clipboard
Pseudoimplementation of the proposed ES6 module loaders.
The `address` result of the resolve hook, as well as the `address` result of the fetch hook, is polymorphic in the core system. Decide on a format in the browser.
eval(), evalAsync(), and load() all accept an `options.address` option; consider also allowing `options.lineNumber`. `Error().lineNumber` is not standard. This or something like it will be necessary to support what browsers already...
Should it be `"@js/foo"` `"@web/foo"`, or just `"js/foo"` `"web/foo"`?
Her'es what I've currently got: ``` The syntax for a module name in the browser is: module_name = segments | dot slash segments | (dot dot slash)+ segments segments =...
Is the browser's System loader an instance of a Loader subclass? Is `new Loader().resolve === System.resolve` in the browser? Is `System.resolve` an own property of `System`? And so on.