fork-ts-checker-webpack-plugin
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|---|---|---|---|---|
@babel/code-frame | 7.23.5 | 7.25 kB | MIT | prod | |
chalk | 4.1.2 | 11.31 kB | MIT | prod | |
chokidar | 3.5.3 | 25.67 kB | MIT | prod | |
cosmiconfig | 8.3.6 | 18.95 kB | MIT | prod | |
deepmerge | 4.3.1 | 8.25 kB | MIT | prod | |
fs-extra | 10.1.0 | 16.52 kB | MIT | prod | |
memfs | 3.5.3 | 38.43 kB | Unlicense | prod | |
minimatch | 3.1.2 | 11.66 kB | ISC | prod | |
node-abort-controller | 3.1.1 | 5.28 kB | MIT | prod | |
schema-utils | 3.3.0 | 17.93 kB | MIT | prod | |
semver | 7.5.4 | 26.25 kB | ISC | prod | |
tapable | 2.2.1 | 10.64 kB | MIT | prod | |
typescript | 5.3.2 | 5.49 MB | Apache-2.0 | prod peer | |
webpack | 5.89.0 | 912.46 kB | MIT | prod peer | 1 1 |
The Fork TS Checker Webpack Plugin is a Webpack plugin that enhances the speed of TypeScript type checking by running it on a separate process. It supports modern TypeScript features such as project references and incremental mode, delivering clean error messages using the code frame formatter.
To use the Fork TS Checker Webpack Plugin, firstly it requires Node.js β₯14.0.0+, Webpack ^5.11.0, TypeScript ^3.6.0. Start by installing it in your project with npm or yarn:
# with npm
npm install --save-dev fork-ts-checker-webpack-plugin
# with yarn
yarn add --dev fork-ts-checker-webpack-plugin
Then, modify your webpack configuration (webpack.config.js
) to utilize this plugin:
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
module.exports = {
context: __dirname, // to automatically find tsconfig.json
entry: './src/index.ts',
resolve: {
extensions: [".ts", ".tsx", ".js"],
},
module: {
rules: [
{
test: /\.tsx?$/,
loader: 'ts-loader',
// add transpileOnly option if you use ts-loader < 9.3.0
// options: {
// transpileOnly: true
// }
}
]
},
plugins: [new ForkTsCheckerWebpackPlugin()],
watchOptions: {
ignored: /node_modules/,
},
};
Remember to replace ./src/index.ts
with the actual entry point to your app.
The documentation for Fork TS Checker Webpack Plugin is located on its GitHub page: https://github.com/TypeStrong/fork-ts-checker-webpack-plugin. Here, you will find comprehensive details about its features, installation, usage, configuration options, and more.