Skip to content

Commit

Permalink
fix: typescript type checker when using Vue (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
SaswatB authored and develar committed Jul 8, 2019
1 parent e95cc47 commit ca18b60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/electron-webpack/src/configurators/ts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export async function configureTypescript(configurator: WebpackConfigurator) {

// no sense to use fork-ts-checker-webpack-plugin for production build
if (isTranspileOnly && !configurator.isTest) {
const hasVue = configurator.hasDependency("vue")
const ForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin")
configurator.plugins.push(new ForkTsCheckerWebpackPlugin({
tsconfig: tsConfigFile,
Expand All @@ -35,7 +36,8 @@ export async function configureTypescript(configurator: WebpackConfigurator) {

warn: console.warn.bind(console),
error: console.error.bind(console),
}
},
vue: hasVue
}))
}

Expand Down

0 comments on commit ca18b60

Please sign in to comment.