3 ms·
Can anyone comment on how this compares to something like RequireJS? (http://requirejs.org/docs/why.html http://requirejs.org/docs/why.html)
by samstokes 16y ago
Can anyone comment on how this compares to something like RequireJS? (http://requirejs.org/docs/why.html http://requirejs.org/docs/why.html)
- tlrobinson 16y agoI can't really tell how JSBuild works because the docs aren't very helpful and I don't feel like diving into the code right now, but I can tell you RequireJS only supports modules in one of the wrapped "transport" / "async module definition" formats, NOT all CommonJS modules. The author is very opinionated about this so I wouldn't expect that to change any time soon. Yabble does support unwrapped modules, so you might want to take a look at that: http://github.com/jbrantly/yabble http://github.com/jbrantly/yabble
- samstokes 16y agoThanks, I'll check out Yabble too.
- diamondhead 16y agoThe basic difference between JSBuild and the other alternatives is that JSBuild generates unobtrusive code for specified CommonJS packages or apps. You may check the "How It Works" section in thee user guide for details.