Last active
October 7, 2018 13:08
-
-
Save daybrush/8afa11e9a163fe53982e51ad5a3cd377 to your computer and use it in GitHub Desktop.
class transpile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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