Rescribet
12/21/2021, 3:43 PMjsBrowserProductionWebpack
)
There are 22 lines in the bundle which are actually related to Shape
which on their own just work as expected (47kB vs 600 byte)
@JsExport
data class Shape(val type: String, val sides: Int)
Rescribet
12/21/2021, 3:44 PM(function (root, factory) {
if (typeof define === 'function' && define.amd)
define(['exports'], factory);
else if (typeof exports === 'object')
factory(module.exports);
else
root['ir-enumclasses'] = factory(typeof this['ir-enumclasses'] === 'undefined' ? {} : this['ir-enumclasses']);
}(this, function (_) {
'use strict';
function Shape(type, sides) {
this._type = type;
this._sides = sides;
}
Shape.prototype._get_type__0_k$ = function () {
return this._type;
};
Shape.prototype._get_sides__0_k$ = function () {
return this._sides;
};
Shape.$metadata$ = {
simpleName: 'Shape',
kind: 'class',
interfaces: []
};
Object.defineProperty(Shape.prototype, 'type', {
configurable: true,
get: Shape.prototype._get_type__0_k$
});
Object.defineProperty(Shape.prototype, 'sides', {
configurable: true,
get: Shape.prototype._get_sides__0_k$
});
_.Shape = Shape;
return _;
}));
Big Chungus
12/21/2021, 3:48 PMRescribet
12/21/2021, 3:52 PMBig Chungus
12/21/2021, 3:55 PMBig Chungus
12/21/2021, 3:55 PMRescribet
12/21/2021, 4:15 PMGabriel Duncan
12/21/2021, 9:54 PMBig Chungus
12/21/2021, 9:56 PMGabriel Duncan
12/21/2021, 9:57 PMGabriel Duncan
12/21/2021, 9:59 PMBig Chungus
12/21/2021, 10:00 PMBig Chungus
12/21/2021, 10:01 PMBig Chungus
12/21/2021, 10:02 PMGabriel Duncan
12/21/2021, 10:03 PMGabriel Duncan
12/21/2021, 10:03 PMRescribet
12/22/2021, 12:02 AMBig Chungus
12/22/2021, 12:22 AMexternal fun import(module: String): Promise<dynamic>
Gabriel Duncan
12/22/2021, 10:33 PMGabriel Duncan
12/22/2021, 10:33 PMRescribet
12/23/2021, 4:39 PMGabriel Duncan
12/23/2021, 6:24 PM