mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Sync transforms from internal
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@
|
||||
* LICENSE file in the root directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*
|
||||
* @emails react-core
|
||||
* @emails jeffmo@fb.com
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
@@ -15,7 +15,7 @@ require('mock-modules').autoMockOff();
|
||||
var transformAll = require('../../syntax.js').transformAll;
|
||||
|
||||
function transform(source) {
|
||||
return transformAll(source, {}, ['allocate']);
|
||||
return transformAll(source, {}, ['sourcemeta']);
|
||||
}
|
||||
|
||||
describe('react displayName jsx', function() {
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ describe('react jsx', function() {
|
||||
return transformAll(
|
||||
code,
|
||||
options,
|
||||
(excludes || []).concat(['sourcemeta', 'allocate'])
|
||||
(excludes || []).concat(['sourcemeta'])
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
+3
-4
@@ -6,14 +6,14 @@
|
||||
* LICENSE file in the root directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*/
|
||||
/*global exports:true*/
|
||||
'use strict';
|
||||
|
||||
/*global exports:true*/
|
||||
|
||||
var Syntax = require('jstransform').Syntax;
|
||||
var utils = require('jstransform/src/utils');
|
||||
|
||||
var renderJSXExpressionContainer =
|
||||
require('./jsx').renderJSXExpressionContainer;
|
||||
var renderJSXExpressionContainer = require('./jsx').renderJSXExpressionContainer;
|
||||
var renderJSXLiteral = require('./jsx').renderJSXLiteral;
|
||||
var quoteAttrName = require('./jsx').quoteAttrName;
|
||||
|
||||
@@ -163,7 +163,6 @@ function visitReactTag(traverse, object, path, state) {
|
||||
utils.catchup(attr.range[1], state, trimLeft);
|
||||
|
||||
previousWasSpread = false;
|
||||
|
||||
});
|
||||
|
||||
if (!openingElement.selfClosing) {
|
||||
|
||||
Reference in New Issue
Block a user