We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36f961e commit b9b2fcdCopy full SHA for b9b2fcd
packages/@vue/cli-plugin-typescript/vue-compiler-sfc-shim.js
@@ -2,6 +2,13 @@ const compilerSFC = require('@vue/compiler-sfc')
2
3
module.exports = {
4
parseComponent (content, options) {
5
- return compilerSFC.parse(content, options)
+ const result = compilerSFC.parse(content, options)
6
+ const { script } = result.descriptor
7
+
8
+ // fork-ts-checker-webpack-plugin needs to use the `start` property,
9
+ // which doesn't present in the `@vue/compiler-sfc` parse result
10
+ if (script) {
11
+ script.start = script.loc.start.offset
12
+ }
13
}
14
0 commit comments