Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: don't elide jsx pragma import namespaces (#11523)
* fix: don't elide jsx pragma import namespaces * use the correct pragma oops
- Loading branch information
Showing
4 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...-plugin-transform-typescript/test/fixtures/imports/elide-jsx-pragma-namespace-no/input.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/* @jsx jsx.htm */ | ||
// Don't elide htm if a JSX element appears somewhere. | ||
import * as jsx from "fake-jsx-package"; | ||
<div></div>; |
3 changes: 3 additions & 0 deletions
3
...gin-transform-typescript/test/fixtures/imports/elide-jsx-pragma-namespace-no/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"plugins": [["transform-typescript", { "isTSX": true }]] | ||
} |
4 changes: 4 additions & 0 deletions
4
...lugin-transform-typescript/test/fixtures/imports/elide-jsx-pragma-namespace-no/output.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/* @jsx jsx.htm */ | ||
// Don't elide htm if a JSX element appears somewhere. | ||
import * as jsx from "fake-jsx-package"; | ||
<div></div>; |