JavaScript Modules the ES6 Way

added by Paul Wheeler
12/4/2014 1:29:37 PM

237 Views

JavaScript admittedly has plenty of flaws, but one of the largest and most prominent is the lack of a module system: a way to split up your application into a series of smaller files that can depend on each other to function correctly.


2 comments

Drew Peterson
12/4/2014 7:29:55 PM
What do you think, @paulwheeler @MostlyHarmlessD, would you rather use a transpiler today or stick with browserify/requirejs until ES6 modules have browser support?

Paul Wheeler
12/4/2014 7:43:13 PM
@drewpcodes I'm not currently using either method yet, but I'm really leaning heavily towards adding a transpiler into our js build process (probably traceur) so we can get more of the ES6 goodness today, knowing we could ultimately remove the need for it as browsers eventually implement ES6.