javascript - Automatic import or require based on file name being equal to folder name -
we use import many times way:
// file tree folder_name/ |__ index.js // foo.js import foo './folder_name'
however, index.js
not descriptive
@ , in ide see many index.js
tab title hard know tab want open next. possible make import/require automatically load:
// file tree same_name_both/ |__ same_name_both.js // foo.js import foo './same_name_both'
Comments
Post a Comment