@miyucy/ts-checker-webpack-plugin
v1.0.3
Published
Runs typescript type checker on threads.
Downloads
18
Maintainers
Readme
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