1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/* this is AMD */ // works with comments!!! /* At least I hope so */ "amd"; var m = { amd: 'amd' }; define(m); // attempt to fool amd detection if (typeof module != 'undefined') module.exports = 'hello';