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

Popular posts from this blog

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

java - How to provide dependency injections in Eclipse RCP 3.x? -