I’ve done some testing using TypeScript and one gotcha I found was that the CLI drags Babel in for the Esbuild config - this requires adding a .babelrc
to add the Typescript preset.
However Esbuild seem perfectly capable without Babel - and I tried by commenting out the Babel plugin here: Lightning-CLI/esbuild.es6.config.js at master · rdkcentral/Lightning-CLI · GitHub
The result is that the Babel-free build is 4 times faster - I mean the whole point of Esbuild is to avoid using Babel in the first place.
So… is there a reason for including Babel?