JSX pragma revert (#6195)
* Removed the deprecated jsx pragma detection code and the concerned tests that included jsx-pragma * Removed extra tests * Restored packages/babel-plugin-transform-react-jsx/test/fixtures/react/honor-custom-jsx-pragma-option/ * Added JSX_ANNOTATION_REGEX * Reverted the tests for jsx-pragma-options and removed those which throw deprecated message
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
/** @jsx dom */
|
||||
|
||||
<Foo></Foo>;
|
||||
|
||||
var profile = <div>
|
||||
<img src="avatar.png" className="profile" />
|
||||
<h3>{[user.firstName, user.lastName].join(" ")}</h3>
|
||||
</div>;
|
||||
@@ -0,0 +1,6 @@
|
||||
/** @jsx dom */
|
||||
dom(Foo, null);
|
||||
var profile = dom("div", null, dom("img", {
|
||||
src: "avatar.png",
|
||||
className: "profile"
|
||||
}), dom("h3", null, [user.firstName, user.lastName].join(" ")));
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"plugins": [
|
||||
["transform-react-jsx", {"pragma": "foo.bar"}]
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/** @jsx dom */
|
||||
|
||||
<Foo></Foo>;
|
||||
|
||||
var profile = <div>
|
||||
<img src="avatar.png" className="profile" />
|
||||
<h3>{[user.firstName, user.lastName].join(" ")}</h3>
|
||||
</div>;
|
||||
@@ -0,0 +1,6 @@
|
||||
/** @jsx dom */
|
||||
dom(Foo, null);
|
||||
var profile = dom("div", null, dom("img", {
|
||||
src: "avatar.png",
|
||||
className: "profile"
|
||||
}), dom("h3", null, [user.firstName, user.lastName].join(" ")));
|
||||
Reference in New Issue
Block a user