File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
packages/electron-webpack/src/configurators Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ export async function configureTypescript(configurator: WebpackConfigurator) {
25
25
26
26
// no sense to use fork-ts-checker-webpack-plugin for production build
27
27
if ( isTranspileOnly && ! configurator . isTest ) {
28
+ const hasVue = configurator . hasDependency ( "vue" )
28
29
const ForkTsCheckerWebpackPlugin = require ( "fork-ts-checker-webpack-plugin" )
29
30
configurator . plugins . push ( new ForkTsCheckerWebpackPlugin ( {
30
31
tsconfig : tsConfigFile ,
@@ -35,7 +36,8 @@ export async function configureTypescript(configurator: WebpackConfigurator) {
35
36
36
37
warn : console . warn . bind ( console ) ,
37
38
error : console . error . bind ( console ) ,
38
- }
39
+ } ,
40
+ vue : hasVue
39
41
} ) )
40
42
}
41
43
You can’t perform that action at this time.
0 commit comments