typescript – How do I stop visual studio inserting a space into JavaScript code on build/rebuild?

I am using Visual Studio 2019 Enterprise. When I build/rebuild my solution ASP.net 4 MVC my JavaScript files are removed as they are regenerated by my TypeScript files.

However the new JavaScript files have a single trailing space after { or } or ;

I have tried to remove the Autoformatting for JS/TS in tools => options but still those single trailing space are added.

Any idea?

So Far I have tried re-installing VS 2019 and change the tools option settings for JS/TS

This is my TypeScript settings Build:
enter image description here

Read more here: Source link