aboutsummaryrefslogtreecommitdiff
path: root/thirdparty/systemjs/test/tests/nameddefine.js
blob: f0a3029713c183402065130377c41179fc9c1d44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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('tests/nameddefine.js', function() {
        return Showdown;
    });
}
define('another-define', { named: 'define' });