File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/typescript-build/lib Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ const consola = require('consola')
3
3
4
4
const defaults = {
5
5
tsConfig : undefined ,
6
- typeCheck : true ,
6
+ typeCheck : { } ,
7
7
ignoreNotFoundWarnings : false
8
8
}
9
9
@@ -51,13 +51,13 @@ function tsModule(_moduleOptions) {
51
51
52
52
if ( moduleOptions . typeCheck && isClient && ! isModern ) {
53
53
const ForkTsCheckerWebpackPlugin = require ( this . nuxt . resolver . resolveModule ( 'fork-ts-checker-webpack-plugin' ) )
54
- config . plugins . push ( new ForkTsCheckerWebpackPlugin ( {
54
+ config . plugins . push ( new ForkTsCheckerWebpackPlugin ( Object . assign ( {
55
55
vue : true ,
56
56
tsconfig : moduleOptions . tsConfig || path . resolve ( this . options . rootDir , 'tsconfig.json' ) ,
57
57
tslint : false , // We recommend using ESLint so we set this option to `false` by default
58
58
formatter : 'codeframe' ,
59
59
logger : consola . withScope ( 'nuxt:typescript' )
60
- } ) )
60
+ } , moduleOptions . typeCheck ) ) )
61
61
}
62
62
} )
63
63
}
You can’t perform that action at this time.
0 commit comments