mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* Compress output for optional chain with multiple `?.` * Shorter output for optional delete * Use a single temp variable per optional chain
15 lines
594 B
JavaScript
15 lines
594 B
JavaScript
function f(a = (_x => (_x = x) === null || _x === void 0 ? void 0 : _x.y)()) {}
|
|
function g({
|
|
a,
|
|
b = a === null || a === void 0 ? void 0 : a.c
|
|
}) {}
|
|
function h(a, {
|
|
b = (_a$b => (_a$b = a.b) === null || _a$b === void 0 || (_a$b = _a$b.c) === null || _a$b === void 0 ? void 0 : _a$b.d.e)()
|
|
}) {}
|
|
function i(a, {
|
|
b = (_a$b2 => (_a$b2 = a.b) === null || _a$b2 === void 0 || (_a$b2 = _a$b2.c) === null || _a$b2 === void 0 ? void 0 : _a$b2.d)().e
|
|
}) {}
|
|
function j(a, {
|
|
b = (_a$b3 => a === null || a === void 0 || (_a$b3 = a.b) === null || _a$b3 === void 0 ? void 0 : _a$b3.c().d.e)()
|
|
}) {}
|