1.0.3 • Published 6 years ago

@miyucy/ts-checker-webpack-plugin v1.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

ts-checker-webpack-plugin

Runs typescript type checker on threads.

Usage

yarn add @miyucy/ts-checker-webpack-plugin
const TsCheckerPlugin = require("@miyucy/ts-checker-webpack-plugin").default;

module.exports = {
  // :
  module: {
    rules: [
      {
        test: /\.tsx?$/,
        use: [
          {
            loader: "ts-loader",
            options: {
              transpileOnly: true
            }
          }
        ]
      }
    ]
  }
  // :
  plugins: [
    new TsCheckerPlugin()
  ]
};

Examples

git clone [this repo]
cd [repo]
yarn install
yarn build

cd examples/prj1
yarn install
yarn build