John Barton (2015-02-05T15:53:47.000Z)
d at domenic.me (2015-02-17T18:06:57.937Z)
The following solution has worked very well for us: ```js import './foo/index.js'; ``` means resolve './foo/index.js' relative to the importing file. All of the rest mean look up 'foo' in the developer's mapping of names, replacing 'foo' with a path that is then used to resolve the import. To be sure 'foo' 'foo/index' and 'foo/' would likely fail after lookup since they don't name files. (This kind of thing cannot be "up to the host". If TC39 passes on deciding, then developers will).