Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/miyucy/ts-checker-webpack-plugin


https://github.com/miyucy/ts-checker-webpack-plugin

Last synced: 6 days ago
JSON representation

Awesome Lists containing this project

README

        

# ts-checker-webpack-plugin

Runs typescript type checker on threads.

## Usage

```bash
yarn add @miyucy/ts-checker-webpack-plugin
```

```js
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

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

cd examples/prj1
yarn install
yarn build
```