8000 fix: typescript type checker when using Vue (#297) · electron-userland/electron-webpack@ca18b60 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit ca18b60

Browse files
SaswatBdevelar
authored andcommitted
fix: typescript type checker when using Vue (#297)
1 parent e95cc47 commit ca18b60

File tree

1 file changed

+3
-1
lines changed
  • packages/electron-webpack/src/configurators

1 file changed

+3
-1
lines changed

packages/electron-webpack/src/configurators/ts.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export async function configureTypescript(configurator: WebpackConfigurator) {
2525

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

3637
warn: console.warn.bind(console),
3738
error: console.error.bind(console),
38-
}
39+
},
40+
vue: hasVue
3941
}))
4042
}
4143

0 commit comments

Comments
 (0)
0