3 ms·
I miss the simplicity of CommonJS. > Ecma Script Modules which finally solved the problem of sharing code between files (modules) on a language level. It was a
by ricardobeat 9y ago
I miss the simplicity of CommonJS.
> Ecma Script Modules which finally solved the problem of sharing code between files (modules) on a language level. It was a huge step forward
Step forward? We were writing modules just fine in 2010. I don’t know a single project off the top of my head that actually benefits from tree shaking. It has been 5-6 years since modules appeared and there is little to show for it. We could do almost the same with node’s commonjs. You could write code that would run anywhere without pre-processing or transpiling. Every time I see a project where the first three pages of documentation are about setting up Babel and webpack I feel like switching off.