The System loader may well be used to load a great many different things that are not simply JavaScript modules. It seems that in the spirit of The Extensible Web it would be best to describe what hooks get used in a way that is universal and can be extended by users at the lowest level. Ideally without HAVING to sub-class.
I would propose that something similar to what is being considered for ServiceWorkers => url-scopes/path-expressions be used in an api for registering hooks to handle loading. This would allow, for example, a translate hook be registered for "*.coffee" etc.
The System loader may well be used to load a great many different things that are not simply JavaScript modules. It seems that in the spirit of The Extensible Web it would be best to describe what hooks get used in a way that is universal and can be extended by users at the lowest level. Ideally without HAVING to sub-class.
I would propose that something similar to what is being considered for ServiceWorkers => url-scopes/path-expressions be used in an api for registering hooks to handle loading. This would allow, for example, a translate hook be registered for "*.coffee" etc.