jbrantly / typescript-loader

TypeScript Webpack Plugin

Home Page:https://github.com/andreypopp/typescript-loader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeScript Webpack Loader

TypeScript loader for Webpack.

Example webpack.config.js configuration:

module.exports = {

  // Currently we need to add '.ts' to resolve.extensions array.
  resolve: {
    extensions: ['', '.webpack.js', '.web.js', '.ts', '.js']
  },

  // Source maps support (or 'inline-source-map' also works)
  devtool: 'source-map',

  // Add loader for .ts files.
  module: {
    loaders: [
      {
        test: /\.ts$/,
        loader: 'typescript-loader'
      }
    ],
  }
};

About

TypeScript Webpack Plugin

https://github.com/andreypopp/typescript-loader


Languages

Language:JavaScript 93.5%Language:TypeScript 6.0%Language:CSS 0.5%