Re:JavaScript Modules
by Touche on Wednesday July 02, 2014 @10:57AM
(#7977327)
to support CommonJS in the browser you either 1) require that it is wrapped (and therefore isn't really CommonJS) or 2) you XHR it, wrap it yourself, and eval. That's it's possible to work around the problem doesn't discount that it "doesn't work well" in browsers.
[ Parent
| on HN ]
There are no comments on this comment yet.