import() doesn’t resolve directories

Do you want to request a feature or report a bug?

What is the current behavior?
import (‘/some/path’) fails to import /some/path/index.js

If the current behavior is a bug, please provide the steps to reproduce.
import a directory that contains an index.js

What is the expected behavior?

import() should follow the same rules as import for filename resolution

If this is a feature request, what is motivation or use case for changing the behavior?

Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.

Author: Fantashit

1 thought on “import() doesn’t resolve directories

Comments are closed.