Hacker News new | ask | show | jobs
by secoif 5129 days ago
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.

1 comments

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