/* jshint ignore:start */
if (callback) {
    if(typeof define === 'function' && define.amd){
        //For backwards compatability
        var n_callback = callback;
        requirejs(["strophe"],function(o){
            n_callback(o.Strophe,o.$build,o.$msg,o.$iq,o.$pres);
        });
    }else{
        return callback(Strophe, $build, $msg, $iq, $pres);
    }
}


})(function (Strophe, build, msg, iq, pres) {
    window.Strophe = Strophe;
    window.$build = build;
    window.$msg = msg;
    window.$iq = iq;
    window.$pres = pres;
});
/* jshint ignore:end */

@@ -160,16 +160,67 @@
 llback;%0A
+        if (typeof requirejs === 'function') %7B%0A    
         
@@ -241,16 +241,17 @@
 rophe%22%5D,
+ 
 function
@@ -267,16 +267,20 @@
         
+   
+ 
 n_callba
@@ -332,19 +332,181 @@
         
-%7D);
+    %7D);%0A        %7D else %7B%0A            require(%5B%22strophe%22%5D, function(o)%7B%0A                n_callback(o.Strophe,o.$build,o.$msg,o.$iq,o.$pres);%0A            %7D);%0A        %7D
 %0A    %7Del

Fix for webpack