feat(transformer): add /* @_PURE__ */ annotation for pure calls#9424
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
9895df1 to
da3b1a8
Compare
|
It seems like we need to turn off comments in conformance codegen. |
CodSpeed Performance ReportMerging #9424 will create unknown performance changesComparing Summary
Benchmarks breakdown
|
You mean turn off pure annotation comments? We need this to test if we added pure correctly. I found a lot of tests failed due to the way it is printed is not the same. For example: var HelloMessage = React.createClass({ render: function() {
return /* @__PURE__ */ React.createElement("div", null, "Hello ", this.props.name);
} });
-React.render(
- /* @__PURE__ */ React.createElement(HelloMessage, { name: /* @__PURE__ */ React.createElement("span", null, "Sebastian") }),
- mountNode
-);
+React.render(/* @__PURE__ */ React.createElement(HelloMessage, { name: /* @__PURE__ */ React.createElement("span", null, "Sebastian") }), mountNode);I will dig into this problem later. |
5c54b9c to
2fa4b60
Compare
5305812 to
643a2e6
Compare
2fa4b60 to
6cab457
Compare
72b0a1d to
8f53bcd
Compare
6cab457 to
5042261
Compare
8f53bcd to
d2bc1d3
Compare
Boshen
left a comment
There was a problem hiding this comment.
Feel free to merge after fixing the conformance issues.
d2bc1d3 to
7f62265
Compare
Fixed in #9530 |
Merge activity
|
) close: #6072 Many tests outputs are updated because we need to print `/* @_PURE__ */` for the pure calls.
5042261 to
59a9f1d
Compare
7f62265 to
45ace44
Compare

close: #6072
Many tests outputs are updated because we need to print
/* @_PURE__ */for the pure calls.