Is there a way to utilize the TypeScript compiler solely for the purpose of stripping type annotations without transpiling async functions? Is there an option akin to { target: 'esInfinite' }
? The rationale behind this question is that some browsers already have support for async functions, so I am seeking a build target where these functions remain unaffected.
For instance:
async function bar(x : string) : Promise<void> {}
expected result:
async function bar(x) {}