UNPKG

babel-preset-latest-node

Version:

babel preset latest for node 14 (Current), node 12 (Active LTS) node 10 (Maintenance LTS)

22 lines (17 loc) 409 B
'use strict'; exports.presetOptions = { target: '12', }; exports.actual = ` const foo = { baz: 42 }; const bar = null; console.log(foo?.baz === 42 && bar?.baz === undefined); `; exports.expected = ` "use strict"; const foo = { baz: 42 }; const bar = null; console.log((foo === null || foo === void 0 ? void 0 : foo.baz) === 42 && (bar === null || bar === void 0 ? void 0 : bar.baz) === undefined); `;