https://github.com/miyucy/ts-checker-webpack-plugin
https://github.com/miyucy/ts-checker-webpack-plugin
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/miyucy/ts-checker-webpack-plugin
- Owner: miyucy
- Created: 2018-08-31T01:49:20.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-03T19:32:20.000Z (over 2 years ago)
- Last Synced: 2025-03-27T10:21:20.699Z (3 months ago)
- Language: TypeScript
- Size: 1.33 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
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 buildcd examples/prj1
yarn install
yarn build
```