4 ms·
Imagine if you're requiring that local module throughout your codebase. Now suppose that the module has become large enough to be come a directory. All those re
by qubyte 13y ago
Imagine if you're requiring that local module throughout your codebase. Now suppose that the module has become large enough to be come a directory. All those requires with the .js extension will break! If you leave it off, then no problem. Always avoid adding the .js.