[RequireJS] Compatibility issue with xml2json library
Created by: davidgarry
Hello,
I am currently implementing dashjs 2.4 instead of dashjs 2.3, but I have an error to load dashjs library. As all my website use requirejs, I load dashjs with the requirejs "shim" option (as it doesn't support AMD).
All was ok with 2.3, but with 2.4, the xml2json external library has been updated and it now use AMD. So, X2JS variable is not defined on the window object :
(function (root, factory) {
if (typeof define === "function" && define.amd) {
define([], factory);
} else if (typeof exports === "object") {
module.exports = factory();
} else {
root.X2JS = factory();
}
}(this, function () {
Commit : 5aa8931e
Would you be able to standardize that, by using amd for all modules, or by removing amd support on xml2json library ?
Regards, David