Sync transforms from internal

This commit is contained in:
Ben Alpert
2015-03-30 11:43:26 -07:00
parent 835fc3d0fb
commit 4d84784ca6
4 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -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
View File
@@ -22,7 +22,7 @@ describe('react jsx', function() {
return transformAll(
code,
options,
(excludes || []).concat(['sourcemeta', 'allocate'])
(excludes || []).concat(['sourcemeta'])
);
};
+3 -4
View File
@@ -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) {