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

15 lines
348 B
JavaScript
Raw Normal View History

/*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;