TypeStrong / fork-ts-checker-webpack-plugin

Webpack plugin that runs typescript type checker on a separate process.
MIT License
1.94k stars 239 forks source link

Not support Vue3 setup-script block #665

Closed curly210102 closed 2 years ago

curly210102 commented 2 years ago

Current behavior

Config fork-ts-checker-webpack-plugin with

{
  typescript: {
          extensions: {
            vue: {
              enabled: true,
              compiler: isVue3
                ? require.resolve('@vue/compiler-sfc')
                : require.resolve('vue-template-compiler')
            }
          },
          diagnosticOptions: {
            semantic: true,
            // https://github.com/TypeStrong/ts-loader#happypackmode
            syntactic: useThreads
          }
      }
   }
}

the ts-checker is not working with vue setup-script block.

<script setup lang="ts">
const b:string = 1;
</script>

Expected behavior

ts-checker works with setup-script block, also works when Githubissues.

  • Githubissues is a development platform for aggregating issues.