-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[babel 8] Better file ext handling for TS and Flow presets (#14955)
Co-authored-by: liuxingbaoyu <30521560+liuxingbaoyu@users.noreply.github.com>
- Loading branch information
1 parent
b1b75fc
commit fe7c9a0
Showing
78 changed files
with
500 additions
and
178 deletions.
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
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
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
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
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
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
3 changes: 3 additions & 0 deletions
3
...s/babel-plugin-transform-parameters/test/fixtures/parameters/flow-this-param/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-parameters", "syntax-flow"] | ||
} |
2 changes: 0 additions & 2 deletions
2
packages/babel-plugin-transform-parameters/test/fixtures/parameters/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
8 changes: 8 additions & 0 deletions
8
...es/babel-plugin-transform-parameters/test/fixtures/parameters/preserve-types/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-parameters", | ||
"syntax-typescript", | ||
"transform-block-scoping", | ||
"transform-destructuring" | ||
] | ||
} |
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...-plugin-transform-parameters/test/fixtures/parameters/rest-ts-this-parameter/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-parameters", "syntax-typescript"] | ||
} |
5 changes: 5 additions & 0 deletions
5
...ansform-react-jsx-development/test/fixtures/linux/within-ts-module-block-babel-7/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> | ||
); | ||
} |
9 changes: 9 additions & 0 deletions
9
...orm-react-jsx-development/test/fixtures/linux/within-ts-module-block-babel-7/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,9 @@ | ||
{ | ||
"BABEL_8_BREAKING": false, | ||
"plugins": [ | ||
"transform-react-jsx-development", | ||
["syntax-typescript", { "isTSX": true }] | ||
], | ||
"sourceType": "module", | ||
"os": ["linux", "darwin"] | ||
} |
11 changes: 11 additions & 0 deletions
11
...sform-react-jsx-development/test/fixtures/linux/within-ts-module-block-babel-7/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-babel-7/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 | ||
}, this); | ||
} |
4 changes: 3 additions & 1 deletion
4
...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
5 changes: 5 additions & 0 deletions
5
...sform-react-jsx-development/test/fixtures/windows/within-ts-module-block-babel-7/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> | ||
); | ||
} |
Oops, something went wrong.