cAMPy cAMPy - 1 year ago 86
Javascript Question

Exclude file from Typescript compile effect into one output JS in Visual Studio

I have a typescript project which I compile to a single file with VS. Everything works fine, but there is one library that I already have in the target environment and since it's 3000lines I want to exclude it from compiling to the output file. Unfortunately this library is not a d.ts file, simply .ts one. Is there a way to exclude it from compilation?

Answer Source

In your tsconfig.json add it to the exclude array

"exclude": [

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download