Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jsx-development: do not emit
this
within ts module block (#14271)
- Loading branch information
Showing
7 changed files
with
74 additions
and
46 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
...lugin-transform-react-jsx-development/test/fixtures/linux/within-ts-module-block/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,5 @@ | ||
export namespace Namespaced { | ||
export const Component = () => ( | ||
<div>Hello, world!</div> | ||
); | ||
} |
8 changes: 8 additions & 0 deletions
8
...n-transform-react-jsx-development/test/fixtures/linux/within-ts-module-block/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,8 @@ | ||
{ | ||
"plugins": [ | ||
"transform-react-jsx-development", | ||
["syntax-typescript", { "isTSX": true }] | ||
], | ||
"sourceType": "module", | ||
"os": ["linux", "darwin"] | ||
} |
11 changes: 11 additions & 0 deletions
11
...gin-transform-react-jsx-development/test/fixtures/linux/within-ts-module-block/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,11 @@ | ||
var _jsxFileName = "<CWD>/packages/babel-plugin-transform-react-jsx-development/test/fixtures/linux/within-ts-module-block/input.ts"; | ||
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime"; | ||
export namespace Namespaced { | ||
export const Component = () => /*#__PURE__*/_jsxDEV("div", { | ||
children: "Hello, world!" | ||
}, void 0, false, { | ||
fileName: _jsxFileName, | ||
lineNumber: 3, | ||
columnNumber: 3 | ||
}, void 0); | ||
} |
5 changes: 5 additions & 0 deletions
5
...gin-transform-react-jsx-development/test/fixtures/windows/within-ts-module-block/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,5 @@ | ||
export namespace Namespaced { | ||
export const Component = () => ( | ||
<div>Hello, world!</div> | ||
); | ||
} |
8 changes: 8 additions & 0 deletions
8
...transform-react-jsx-development/test/fixtures/windows/within-ts-module-block/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,8 @@ | ||
{ | ||
"plugins": [ | ||
"transform-react-jsx-development", | ||
["syntax-typescript", { "isTSX": true }] | ||
], | ||
"sourceType": "module", | ||
"os": ["win32"] | ||
} |
11 changes: 11 additions & 0 deletions
11
...n-transform-react-jsx-development/test/fixtures/windows/within-ts-module-block/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,11 @@ | ||
var _jsxFileName = "<CWD>\\packages\\babel-plugin-transform-react-jsx-development\\test\\fixtures\\windows\\within-ts-module-block\\input.ts"; | ||
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime"; | ||
export namespace Namespaced { | ||
export const Component = () => /*#__PURE__*/_jsxDEV("div", { | ||
children: "Hello, world!" | ||
}, void 0, false, { | ||
fileName: _jsxFileName, | ||
lineNumber: 3, | ||
columnNumber: 3 | ||
}, void 0); | ||
} |
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