forked from babel/babel
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't treat JSXIdentifier in JSXMemberExpression as HTML tag. Closes b…
- Loading branch information
Showing
4 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
...react-inline-elements/test/fixtures/inline-elements/lowercase-member-expression/actual.js
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,6 @@ | ||
//index.js file | ||
import { form } from "./export"; | ||
|
||
function ParentComponent() { | ||
return <form.TestComponent />; | ||
} |
7 changes: 7 additions & 0 deletions
7
...act-inline-elements/test/fixtures/inline-elements/lowercase-member-expression/expected.js
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,7 @@ | ||
"use strict"; | ||
|
||
var _export = require("./export"); | ||
|
||
function ParentComponent() { | ||
return babelHelpers.jsx(_export.form.TestComponent, {}); | ||
} //index.js file |
9 changes: 9 additions & 0 deletions
9
...ct-inline-elements/test/fixtures/inline-elements/lowercase-member-expression/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 @@ | ||
{ | ||
"plugins": [ | ||
"external-helpers", | ||
"syntax-jsx", | ||
"transform-react-inline-elements", | ||
"transform-react-jsx", | ||
"transform-es2015-modules-commonjs" | ||
] | ||
} |
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