* Mark transpiled JSX elements as pure * Avoid duble annotation * Add "pure" option to the React preset * Fix generator indentation * Update tests * Add tests for the "pure" option * Update windows fixtures
16 lines
275 B
JavaScript
16 lines
275 B
JavaScript
var foo = function () {
|
|
var _this = this;
|
|
|
|
return function () {
|
|
return /*#__PURE__*/React.createElement(_this, null);
|
|
};
|
|
};
|
|
|
|
var bar = function () {
|
|
var _this2 = this;
|
|
|
|
return function () {
|
|
return /*#__PURE__*/React.createElement(_this2.foo, null);
|
|
};
|
|
};
|