Skip to content

Instantly share code, notes, and snippets.

@daybrush
Last active October 7, 2018 13:08
Show Gist options
  • Save daybrush/8afa11e9a163fe53982e51ad5a3cd377 to your computer and use it in GitHub Desktop.
Save daybrush/8afa11e9a163fe53982e51ad5a3cd377 to your computer and use it in GitHub Desktop.
class transpile
Class Item {
a() {}
b() {}
c() {}
}
// tsc transpile
var Item = /*#__PURE__*/ function () {
function Item() {}
Item.prototype.a = function () {}
Item.prototype.b = function () {}
Item.prototype.c = function () {}
return Item;
}();
// prototype minification
var Item = /*#__PURE__*/ function () {
function Item() {}
var __proto = Item.prototype;
__proto.a = function () {}
__proto.b = function () {}
__proto.c = function () {}
return Item;
}();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment