(state)
| 28 | ); |
| 29 | }, |
| 30 | pre(state) { |
| 31 | const tagName = state.tagName; |
| 32 | const args = state.args; |
| 33 | if (t.react.isCompatTag(tagName)) { |
| 34 | args.push(t.stringLiteral(tagName!)); |
| 35 | } else { |
| 36 | args.push(state.tagExpr); |
| 37 | } |
| 38 | }, |
| 39 | post(state, pass) { |
| 40 | state.callee = pass.addHelper("jsx"); |
| 41 | // NOTE: The arguments passed to the "jsx" helper are: |