use babel to compile code
TSC allows to transform typecript code into es5 or es6.
We have to keep "es6 import" but transform into es5 some features that are incompatible with some browsers such as "spread operator".
Since typescript does not allow such a precise configuration, we could use babel with @babel/preset-typescript for this purpose.