GT2/GT2-iOS/node_modules/raven-js/plugins/require.js

15 lines
348 B
JavaScript
Raw Normal View History

2018-02-12 17:26:06 +00:00
/*global define*/
/**
* require.js plugin
*
* Automatically wrap define/require callbacks. (Experimental)
*/
function requirePlugin(Raven) {
if (typeof define === 'function' && define.amd) {
window.define = Raven.wrap({deep: false}, define);
window.require = Raven.wrap({deep: false}, require);
}
}
module.exports = requirePlugin;