ES6 - modules

added by bpwndaddy
6/1/2015 4:03:36 PM

364 Views

Today we have a couple of ways to create modules, export & import them. JavaScript doesn’t have any built-in module loader yet. Upcoming ECMAScript 2015 standard gives us a reason to make people happy. Finally ;) We have third party standards: CommonJS and AMD. The most popular, but unfortunately incompatible standards for module loaders. The goal for ES6 is (was) to mix these two standards and make both user groups happy. ES6 gives us an easy syntax and support for asynchronous and configurable module loading.


0 comments