Skip to content

Commit

Permalink
add umd
Browse files Browse the repository at this point in the history
  • Loading branch information
akdcl committed Jun 20, 2018
1 parent c5cf381 commit 84fc000
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions DragonBones/src/dragonBones/core/DragonBones.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,10 +353,6 @@ namespace dragonBones {
}
}
//
if (typeof global === "undefined") {
var global = window as any;
}
//
if (!console.warn) {
console.warn = function () { };
}
Expand All @@ -381,4 +377,21 @@ var __extends: any = function (t: any, e: any) {
}
}
r.prototype = e.prototype, t.prototype = new (r as any)();
};
};
//
if (typeof global === "undefined") {
var global = window as any;
}
//
declare var exports: any;
declare var module: any;
declare var define: any;
if (typeof exports === "object" && typeof module === "object") {
module.exports = dragonBones;
}
else if (typeof define === "function" && define["amd"]) {
define(["dragonBones"], function () { return dragonBones; });
}
else if (typeof exports === "object") {
exports["dragonBones"] = dragonBones;
}

0 comments on commit 84fc000

Please sign in to comment.