Skip to content


Subversion checkout URL

You can clone with
Download ZIP
A bundle transform for ASP.NET that takes a TypeScript bundle and compiles it to Javascript.
JavaScript C#
Branch: master
Failed to load latest commit information.
Example license.txt
TypeScriptBundleTransform license.txt
libs/Noesis.Javascript.0.7.0 Version 1.0
packages Version 1.0
.gitignore license.txt
TypeScriptMvcBundles.sln Version 1.0
license.txt Update license.txt

TypeScript BundleTransform

A bundle transform for ASP.NET that takes a TypeScript bundle and compiles it to Javascript.

by Wouter Devinck (


PS> Install-Package TypeScriptBundleTransform


// Called from Application_Start in Global.asax.cs
public static void RegisterBundles() {
   var bundle = new Bundle("~/default", new TypeScriptTransformer());

With type checking (throw exception) and whitout minification:

new TypeScriptTransformer();


new TypeScriptTransformer(TypeScriptTransformer.ErrorLevel.ThrowException, false)

Without type checking and whitout minification:

new TypeScriptTransformer(TypeScriptTransformer.ErrorLevel.NoTypeChecking, false);

With type checking (log errors in Visual Studio output and as console.error lines in the Javascript output):

new TypeScriptTransformer(TypeScriptTransformer.ErrorLevel.LogError, false);

With minification:

new TypeScriptTransformer(true);

or any of the above with true as the second parameter.

How it works

This uses the TypeScript compiler, which is written in TypeScript and compiled to Javascript and runs it in Google's V8 Javascript Engine on your server. This is an implementation of the IBundleTransform interface, found in System.Web.Optimization.

If you want to take a quick look at the code, this is probably the file you are looking for:


The following licenses apply:

  1. TypeScript-BundleTransform - Apache License 2.0 -
  2. TypeScript - Apache License 2.0 -
  3. Noesis Innovation Javascript.NET - New BSD License -
  4. Google V8 - New BSD License -
  5. Douglas Crockford's jsmin.c - License below -
  6. Inspired by: TypeScript-compile - Apache License 2.0 -

See license.txt for more info.

More info

Something went wrong with that request. Please try again.