tidev / hyperloop.next

Hyperloop Next version (we forgot the version number at this point)
Other
7 stars 4 forks source link

feat(android): update babel #370

Closed m1ga closed 2 years ago

m1ga commented 2 years ago

Since v7.8.0 it should support optional chaining by default.

Test

const o = { a: { } };
console.log(o?.a);
console.log(o?.a?.b);
console.log(o?.a?.b ?? 'should be printed');
m1ga commented 2 years ago

Tested the artifact with hyperloop-examples: build fine and works :+1:

some other hl test projects work fine too.

const o = { a: { } };
console.log(o?.a);
console.log(o?.a?.b);
console.log(o?.a?.b ?? 'should be printed');

compiles and outputs

[INFO]  {}
[INFO]  undefined
[INFO]  should be printed