jorendorff / js-loaders

Pseudoimplementation of the proposed ES6 module loaders.
54 stars 7 forks source link

Consider allowing module names below baseURL #76

Closed guybedford closed 10 years ago

guybedford commented 10 years ago

In the implementation, this can be included by treating a negative stop value in the System.normalize function as the initial number of ../ before the module name.

amatiasq commented 10 years ago

I think this is a basic feature, it's confusing if it's not allowed since CommonJS and AMD already allow it. A simple use case is a test html page inside a bigger project, where the page doesn't need to be at the root directory, it will need to load modules below baseURL. :+1:

guybedford commented 10 years ago

This does not make sense since module names are absolute references.