4 ms·
Looks like it offers a subset of the features by allowing you to use the same require() function for both amd and commonjs modules. https://gist.github.com/spe
by spencera 12y ago
Looks like it offers a subset of the features by allowing you to use the same require() function for both amd and commonjs modules.
https://gist.github.com/spenceralger/946ddc6c55d997d4a028 https://gist.github.com/spenceralger/946ddc6c55d997d4a028
- alistairjcbrown 12y agoAh, thank you - I misunderstood the crucial piece "load AMD modules like ... they were native Node modules". I guess I can see the value in this, if you're retrofitting a new module in the AMD style to an existing node application which does not use that style.