Skip to content

Commit a6a1aa0

Browse files
wip(vue2): @ts-ignore not needed any more for log()
1 parent f50277e commit a6a1aa0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/createVue2SFCModule.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ export async function createSFCModule(source : string, filename : string, option
184184
}
185185
}
186186

187-
// @ts-ignore (Property 'message' does not exist on type 'string | CompilerError')
188187
log?.('error', 'SFC template', formatErrorStartEnd(err.msg, filename, compileTemplateOptions.source.trim(), err.start, err.end ));
189188
}
190189
}
@@ -238,7 +237,6 @@ export async function createSFCModule(source : string, filename : string, option
238237
preventCache();
239238
for ( const err of compiledStyle.errors ) {
240239

241-
// @ts-ignore (Property 'line' does not exist on type 'Error' and Property 'column' does not exist on type 'Error')
242240
log?.('error', 'SFC style', formatError(err, filename, descStyle.content));
243241
}
244242
}

0 commit comments

Comments
 (0)