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.
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss