int3/jsshaper — comment on commit c18505c090d582671f715621290f2f0d19a65fe2
File:  line 0
By cscott:

Ok, take a look at https://github.com/cscott/jsshaper/commits/for-olov -- that branch AMD-ifies jsshaper. In particular, commit cscott/jsshaper@b76271d77cb09ac8dd27e28b460665464541a2ac has most of the define()-wrapping, using https://github.com/jrburke/amdefine for node compatibility. As a side-effect, the "use strict" statements become function-scoped, so they don't infect other code if you concatenate stuff together. https://github.com/cscott/jsshaper/blob/for-olov/src/browser.html and https://github.com/cscott/jsshaper/blob/for-olov/src/browser.js show how this lets you use jsshaper as a client-side transpiler.