Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You shouldn't require using the extension.

This gives you the flexibility to transparently change the file into a folder + index.*, then break functionality up into pieces that live inside that folder.



Still, currently you need to require everything with a relative path unless it's inside node_modules.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: