Using Webpack , how can you configure the loader to get the file through the import using the path
import User from 'elements/user'; the structure of the project itself looks like this
elements/user/user.js user.js needs to be taken automatically based on the same folder name (analogous to the work of the default index.js file ). That is, the folder and file must be the same. If someone has a good solution help pliz.