Re:JavaScript Modules
by ripter on Wednesday July 02, 2014 @12:46PM
(#7978007)
CommonJS is not an official standard that is part of the language. It works, but it's also competing with AMD.
ES6 Modules officially add modules to the language. It gives a standard that should work in browser and in node. It's heavily inspired by CommonJS and AMD.
ES6 Modules officially add modules to the language. It gives a standard that should work in browser and in node. It's heavily inspired by CommonJS and AMD.