Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion packages/@vue/cli-plugin-typescript/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,17 @@ module.exports = (api, projectOptions) => {
return options
})

if (!process.env.VUE_CLI_TEST) {
let isUsingNextCompiler = true
try {
require('@vue/compiler-sfc')
} catch (e) {
isUsingNextCompiler = false
}
if (!process.env.VUE_CLI_TEST && !isUsingNextCompiler) {
// this plugin does not play well with jest + cypress setup (tsPluginE2e.spec.js) somehow
// so temporarily disabled for vue-cli tests
// it also does not play well with `@vue/compiler-sfc`
// so we also disable it if the project is built with Vue 3
config
.plugin('fork-ts-checker')
.use(require('fork-ts-checker-webpack-plugin'), [{
Expand Down