Resolving files for `named directory` pattern

Is it possible to make Webstorm resolve imports like `src/MyComponent` into `src/MyComponent/MyComponent.js`?

It does understand index files, but some projects follow this `named directory` convention, without index files. Webpack allows to do this via plugins, but configuring Webstorm to use webpack config file doesn't help with this issue.

1 comment
Comment actions Permalink

Do you mean a directory named webpack plugin ? such imports are not currently supported, there is no way to make them work in the IDE.

Please follow for updates


Please sign in to leave a comment.