Tyler
Tyler

Reputation: 3200

How to Stop VS 2013 from Generating TypeScript Map Files

Does anyone know how to stop VS 2013 from generating *.map files for TypeScript?

We're not such a big fan of them since they:

I can delete them with a post build step, but the javascript that gets generated still has a:

//# sourceMappingURL=someFile.js.map

Which makes the browser look for the map files (generating a 404). Even if we try to build a project that has TypeScript in Release mode it still generates JS with references to map files.

Anyway to stop the pain?

Upvotes: 10

Views: 3634

Answers (1)

ulrichb
ulrichb

Reputation: 20044

In the TypeScript project properties, go to "TypeScript Build" (available starting with TS 0.9.5) and deselect "Generate source maps".

Upvotes: 17

Related Questions