createClass.js 583 B

12345678910111213
  1. var toPropertyKey = require("./toPropertyKey.js");
  2. function _defineProperties(e, r) {
  3. for (var t = 0; t < r.length; t++) {
  4. var o = r[t];
  5. o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
  6. }
  7. }
  8. function _createClass(e, r, t) {
  9. return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
  10. writable: !1
  11. }), e;
  12. }
  13. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;