feat(compiler-cli): add support for TypeScript 4.0 (#38076)
With this change we add support for TypeScript 4.0 PR Close #38076
This commit is contained in:
@ -17,7 +17,7 @@ export function createHtmlSourceFile(filePath: string, content: string): ts.Sour
|
||||
|
||||
// Subtract two characters because the string literal quotes are only needed for parsing
|
||||
// and are not part of the actual source file.
|
||||
sourceFile.end = sourceFile.end - 2;
|
||||
(sourceFile.end as number) = sourceFile.end - 2;
|
||||
|
||||
// Note: This does not affect the way TSLint applies replacements for external resource files.
|
||||
// At the time of writing, TSLint loads files manually if the actual rule source file is not
|
||||
|
Reference in New Issue
Block a user