File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -23517,7 +23517,7 @@ namespace ts {
23517
23517
// if jsxFactory compiler option is provided, ensure jsxFragmentFactory compiler option or @jsxFrag pragma is provided too
23518
23518
const nodeSourceFile = getSourceFileOfNode(node);
23519
23519
if (compilerOptions.jsx === JsxEmit.React && (compilerOptions.jsxFactory || nodeSourceFile.pragmas.has("jsx"))
23520
- && !compilerOptions.jsxFragmentFactory && !nodeSourceFile.pragmas.has("jsxFrag ")) {
23520
+ && !compilerOptions.jsxFragmentFactory && !nodeSourceFile.pragmas.has("jsxfrag ")) {
23521
23521
error(node, compilerOptions.jsxFactory
23522
23522
? Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option
23523
23523
: Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments);
@@ -36473,7 +36473,7 @@ namespace ts {
36473
36473
if (file.localJsxFragmentFactory) {
36474
36474
return file.localJsxFragmentFactory;
36475
36475
}
36476
- const jsxFragPragmas = file.pragmas.get("jsxFrag ");
36476
+ const jsxFragPragmas = file.pragmas.get("jsxfrag ");
36477
36477
const jsxFragPragma = Array.isArray(jsxFragPragmas) ? jsxFragPragmas[0] : jsxFragPragmas;
36478
36478
if (jsxFragPragma) {
36479
36479
file.localJsxFragmentFactory = parseIsolatedEntityName(jsxFragPragma.arguments.factory, languageVersion);
Original file line number Diff line number Diff line change @@ -8509,7 +8509,9 @@ namespace ts {
8509
8509
} ) ;
8510
8510
break ;
8511
8511
}
8512
- case "jsx" : return ; // Accessed directly
8512
+ case "jsx" :
8513
+ case "jsxfrag" :
8514
+ return ; // Accessed directly
8513
8515
default : Debug . fail ( "Unhandled pragma kind" ) ; // Can this be made into an assertNever in the future?
8514
8516
}
8515
8517
} ) ;
Original file line number Diff line number Diff line change @@ -6684,7 +6684,7 @@ namespace ts {
6684
6684
args : [ { name : "factory" } ] ,
6685
6685
kind : PragmaKindFlags . MultiLine
6686
6686
} ,
6687
- "jsxFrag " : {
6687
+ "jsxfrag " : {
6688
6688
args : [ { name : "factory" } ] ,
6689
6689
kind : PragmaKindFlags . MultiLine
6690
6690
} ,
You can’t perform that action at this time.
0 commit comments