Skip to content

Commit

Permalink
feat: ts check
Browse files Browse the repository at this point in the history
- block build on ts errors
  • Loading branch information
denchiklut committed Sep 29, 2024
1 parent 35bd441 commit a1ac5d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webpack/plugins/tsChecker.plugin.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { resolve } from 'path'
import ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin'
import { IS_DEV } from '../utils'

/**
* You can set `async` prop. If true, reports issues after webpack's compilation is done.
Expand All @@ -9,6 +10,7 @@ import ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin'
*/
export const tsChecker = new ForkTsCheckerWebpackPlugin({
devServer: false,
async: IS_DEV,
typescript: {
configFile: resolve('tsconfig.json'),
diagnosticOptions: {
Expand Down

0 comments on commit a1ac5d9

Please sign in to comment.