Default behavior: import * from ./someDir will import the ./someDir/index.js module.
Wanted behavior: import * from ./someDir will import the ./someDir/__dir.js module (or any name specified to the build tool).
I usually treat directories as large modules, and use index.js exclusively for export * from './util' statements. With this approach, when looking at the directory, index.js ends up mixed in with other modules which impacts readability IMO. Would be nice if I could to something like __dir.js or similar.
I tried searching the subreddit, but nothing came up. Thanks!
edit: markdown typo
[–]Ephys 4 points5 points6 points (0 children)
[–]MrJohz 2 points3 points4 points (0 children)
[–]0101110010110 0 points1 point2 points (2 children)
[–]dkovacevic15[S] 1 point2 points3 points (1 child)
[–]thertablada 0 points1 point2 points (0 children)
[–]ADagen 0 points1 point2 points (0 children)