swc/tests/fixture/issue-1525/case1/input/index.tsx
강동윤 4db24fb7f6
fix(swc): Fix various bugs (#1588)
swc_ecma_transforms_module:
 - Change the order of functions exported as default. (#1568)
 - Handle mixed imports correctly. (#1525)

swc:
 - Ensure that #1581 is fixed. (#1581)
2021-04-18 20:58:30 +00:00

6 lines
141 B
TypeScript

import { Component, default as React } from "react";
class X extends Component {}
React.render(document.getElementById("#root"), <X></X>);