Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle remapping of JSXIdentifier to MemberExpression in CommonJS tra…
- Loading branch information
Showing
4 changed files
with
23 additions
and
0 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
2 changes: 2 additions & 0 deletions
2
...transform-react-inline-elements/test/fixtures/inline-elements/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,2 @@ | ||
import { Modal } from "react-bootstrap"; | ||
export default CustomModal = () => <Modal.Header>foobar</Modal.Header>; |
9 changes: 9 additions & 0 deletions
9
...ansform-react-inline-elements/test/fixtures/inline-elements/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,9 @@ | ||
"use strict"; | ||
|
||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
|
||
var _reactBootstrap = require("react-bootstrap"); | ||
|
||
exports.default = CustomModal = () => babelHelpers.jsx(_reactBootstrap.Modal.Header, {}, void 0, "foobar"); |
9 changes: 9 additions & 0 deletions
9
...nsform-react-inline-elements/test/fixtures/inline-elements/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" | ||
] | ||
} |