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.
请先登录再写评论。
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 https://youtrack.jetbrains.com/issue/WEB-25716 for updates