
// Expose Raven to the world
window.Raven = Raven;

// AMD
if (typeof define === 'function' && define.amd) {
    define('raven', [], function() { return Raven; });
}

})(window);

// Expose Raven to the world
window.Raven = Raven;

// AMD
if (typeof define === 'function' && define.amd) {
    define('raven', [], function() { return Raven.noConflict(); });
}

})(window);

Use Raven.noConflict() when exporting as AMD module
Use Raven.noConflict() when exporting as AMD module