Browserify plugin for TypeScript sources
npm install tsify2 --save-dev
import * as Browserify from "browserify";
import Tsify from "tsify2";
const tsify = Tsify({
// TypeScript compiler options
});
let browserify = Browserify()
.add('main.ts')
.plugin(tsify, {})
.bundle((error, data) => {
// do something with error and data
});
;
Read the documentation for more information.
Apache-2.0 © Eric MORAND