monolithed (2015-02-05T12:51:41.000Z)
I could not find an answer in the specification regarding the following
cases:

import './foo/index.js'
import 'foo/index.js'
import 'foo/index'
import 'foo'
import 'foo/'


Is there a difference?

Node.js lets create an 'index.js' file, which indicates the main include
file for a directory.
So if you call require('./foo'), both a 'foo.js' file as well as an
'foo/index.js' file will be considered, this goes for non-relative includes
as well.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150205/60f8940f/attachment.html>
monolithed at gmail.com (2015-02-05T12:58:59.952Z)
I could not find an answer in the specification regarding the following
cases:

```js
import './foo/index.js'
import 'foo/index.js'
import 'foo/index'
import 'foo'
import 'foo/'
```

Is there a difference?

Node.js lets create an 'index.js' file, which indicates the main include
file for a directory.
So if you call require('./foo'), both a 'foo.js' file as well as an
'foo/index.js' file will be considered, this goes for non-relative includes
as well.