@samitouri / QOS-React-2 / commits / 4d84784ca6

Sync transforms from internal

Ben Alpert committed Mar 30, 2015 at 11:43 UTC 4d84784ca65437d9eb72014eb217caad1657df3b
4 files changed +6 -7
vendor/fbtransform/transforms/__tests__/jsx-test.js
+1 -1
@@ -6,7 +6,7 @@
6 * LICENSE file in the root directory of this source tree. An additional grant
7 * of patent rights can be found in the PATENTS file in the same directory.
8 *
9 - * @emails react-core
9 + * @emails jeffmo@fb.com
10 */
11
12 'use strict';
vendor/fbtransform/transforms/__tests__/react-displayName-test.js
+1 -1
@@ -15,7 +15,7 @@ require('mock-modules').autoMockOff();
15 var transformAll = require('../../syntax.js').transformAll;
16
17 function transform(source) {
18 - return transformAll(source, {}, ['allocate']);
18 + return transformAll(source, {}, ['sourcemeta']);
19 }
20
21 describe('react displayName jsx', function() {
vendor/fbtransform/transforms/__tests__/react-test.js
+1 -1
@@ -22,7 +22,7 @@ describe('react jsx', function() {
22 return transformAll(
23 code,
24 options,
25 - (excludes || []).concat(['sourcemeta', 'allocate'])
25 + (excludes || []).concat(['sourcemeta'])
26 );
27 };
28
vendor/fbtransform/transforms/react.js
+3 -4
@@ -6,14 +6,14 @@
6 * LICENSE file in the root directory of this source tree. An additional grant
7 * of patent rights can be found in the PATENTS file in the same directory.
8 */
9 -/*global exports:true*/
9 'use strict';
10
11 +/*global exports:true*/
12 +
13 var Syntax = require('jstransform').Syntax;
14 var utils = require('jstransform/src/utils');
15
15 -var renderJSXExpressionContainer =
16 - require('./jsx').renderJSXExpressionContainer;
16 +var renderJSXExpressionContainer = require('./jsx').renderJSXExpressionContainer;
17 var renderJSXLiteral = require('./jsx').renderJSXLiteral;
18 var quoteAttrName = require('./jsx').quoteAttrName;
19
@@ -163,7 +163,6 @@ function visitReactTag(traverse, object, path, state) {
163 utils.catchup(attr.range[1], state, trimLeft);
164
165 previousWasSpread = false;
166 -
166 });
167
168 if (!openingElement.selfClosing) {