Re:CommonJS Is The Future For Rails JavaScript Packaging
by bobfunk on Saturday July 02, 2011 @01:22PM
(#2721955)
Looks very cool, will play around with it. Seems like a big missed opportunity that Sprockets doesn't speak CommonJS.
[ Parent
| on HN ]
Re:CommonJS Is The Future For Rails JavaScript Packaging
by shubber on Saturday July 02, 2011 @08:13PM
(#2722711)
Sprockets, as it exists, can't do module loading: it's a Javascript concatenator. All it does it copy the contents of <filename.js> in place of //= require 'filename.js'.
Gotta, say, I just spent a chunk of time converting a project from one to the other (actually RequireJS), and I really think it was the right move.