Skip to content

andreypopp/typescript-loader

Repository files navigation

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

[DEPRECATED] TypeScript Webpack Plugin

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5