Skip to content

Commit 451ad44

Browse files
committed
Enable ForkTsCheckerWebpackPlugin unconditionally
- should run type check on every change in 'watch'
1 parent 93b9bb1 commit 451ad44

1 file changed

Lines changed: 9 additions & 13 deletions

File tree

‎apps/editor/webpack.config.ts‎

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -103,19 +103,15 @@ const config: ((env: any, argv: any) => webpack.Configuration)[] = [
103103
dangerouslyAllowCleanPatternsOutsideProject: true,
104104
dry: false
105105
}),
106-
...(argv.watch
107-
? []
108-
: [
109-
new ForkTsCheckerWebpackPlugin({
110-
typescript: {
111-
configFile: path.resolve(__dirname, 'tsconfig.json'),
112-
diagnosticOptions: {
113-
semantic: true,
114-
syntactic: true
115-
}
116-
}
117-
})
118-
]),
106+
new ForkTsCheckerWebpackPlugin({
107+
typescript: {
108+
configFile: path.resolve(__dirname, 'tsconfig.json'),
109+
diagnosticOptions: {
110+
semantic: true,
111+
syntactic: true
112+
}
113+
}
114+
}),
119115
new CopyWebpackPlugin({
120116
patterns: [
121117
{

0 commit comments

Comments
 (0)