systemjs/test/tests/nameddefine.js
2013-12-27 11:20:12 +02:00

14 lines
393 B
JavaScript

var Showdown = { converter: true };
// export
if (typeof module !== 'undefined') module.exports = Showdown;
// stolen from AMD branch of underscore
// AMD define happens at the end for compatibility with AMD loaders
// that don't enforce next-turn semantics on modules.
if (typeof define === 'function' && define.amd) {
define('showdown', function() {
return Showdown;
});
}