swc_ecma_transforms_base 42.0.1

rust port of babel and closure compiler.
Documentation
1
2
3
4
5
6
7
8
9
function _initializer_define_property(target, property, descriptor, context) {
    if (!descriptor) return;
    Object.defineProperty(target, property, {
        enumerable: descriptor.enumerable,
        configurable: descriptor.configurable,
        writable: descriptor.writable,
        value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
    });
}