Removed the deprecated jsx pragma detection code (#6145)
* 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/
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
/** @jsx dom */
|
||||
|
||||
<Foo></Foo>;
|
||||
|
||||
var profile = <div>
|
||||
<img src="avatar.png" className="profile" />
|
||||
<h3>{[user.firstName, user.lastName].join(" ")}</h3>
|
||||
</div>;
|
||||
@@ -1,6 +0,0 @@
|
||||
/** @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(" ")));
|
||||
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"plugins": [
|
||||
["transform-react-jsx", {"pragma": "foo.bar"}]
|
||||
]
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
/** @jsx dom */
|
||||
|
||||
<Foo></Foo>;
|
||||
|
||||
var profile = <div>
|
||||
<img src="avatar.png" className="profile" />
|
||||
<h3>{[user.firstName, user.lastName].join(" ")}</h3>
|
||||
</div>;
|
||||
@@ -1,6 +0,0 @@
|
||||
/** @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(" ")));
|
||||
@@ -1,10 +0,0 @@
|
||||
/**
|
||||
* @jsx React.DOM
|
||||
*/
|
||||
|
||||
<Foo></Foo>;
|
||||
|
||||
var profile = <div>
|
||||
<img src="avatar.png" className="profile" />
|
||||
<h3>{[user.firstName, user.lastName].join(" ")}</h3>
|
||||
</div>;
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"throws": "The @jsx React.DOM pragma has been deprecated as of React 0.12"
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
/* @jsx React.DOM */
|
||||
|
||||
<Foo></Foo>;
|
||||
|
||||
var profile = <div>
|
||||
<img src="avatar.png" className="profile" />
|
||||
<h3>{[user.firstName, user.lastName].join(" ")}</h3>
|
||||
</div>;
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"throws": "The @jsx React.DOM pragma has been deprecated as of React 0.12"
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
// @jsx React.DOM
|
||||
|
||||
<Foo></Foo>;
|
||||
|
||||
var profile = <div>
|
||||
<img src="avatar.png" className="profile" />
|
||||
<h3>{[user.firstName, user.lastName].join(" ")}</h3>
|
||||
</div>;
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"throws": "The @jsx React.DOM pragma has been deprecated as of React 0.12"
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
/** @jsx React.DOM */
|
||||
|
||||
<Foo></Foo>;
|
||||
|
||||
var profile = <div>
|
||||
<img src="avatar.png" className="profile" />
|
||||
<h3>{[user.firstName, user.lastName].join(" ")}</h3>
|
||||
</div>;
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"throws": "The @jsx React.DOM pragma has been deprecated as of React 0.12"
|
||||
}
|
||||
Reference in New Issue
Block a user