mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-18 07:29:16 -05:00
add jsx factory and hold text in jsxtext node (#29439)
* add jsx factory and hold text in jsxtext node * update jsxtext prop name and factory
This commit is contained in:
committed by
Wesley Wigham
parent
3ba5aa9f60
commit
b97b1a8de6
@@ -905,7 +905,7 @@ namespace ts {
|
||||
}
|
||||
|
||||
function isWhiteSpaceOnlyJsxText(node: Node): boolean {
|
||||
return isJsxText(node) && node.containsOnlyWhiteSpaces;
|
||||
return isJsxText(node) && node.containsOnlyTriviaWhiteSpaces;
|
||||
}
|
||||
|
||||
export function isInTemplateString(sourceFile: SourceFile, position: number) {
|
||||
|
||||
Reference in New Issue
Block a user