강동윤
57d1aaf80f
fix(es): Fix various bugs ( #1707 )
...
swc_ecma_codegen:
- Fix codegen of `\r\n` in template literals when targeting `es2020`. (denoland/deno#10282)
swc_ecma_parser:
- Support non-identifier getters in typescript. (#1708 )
swc_ecma_transforms_typescript:
- Skip `export {}` if it was not a module. (#1706 )
- Skip `export {}` if the result is module without it. (#1706 )
2021-05-17 22:27:59 +09:00
강동윤
b4aa1d48e3
fix(es/transform): Fix bugs ( #1699 )
...
swc_ecma_transforms_base:
- Fix bug of `ts_resolver`.
swc_ecma_transforms_typescript:
- `strip`: Emit `export {}` for type-only modules. (#1698 )
- `strip`: Support scripts.
2021-05-15 16:07:24 +09:00
Niklas Mischkulnig
f4d0e46cbb
feat(es/transforms/compat): Add pure comment to classes ( #1646 )
...
swc_ecma_transforms_compat:
- Add pure annotations while tranpiling classes.
2021-05-08 15:47:20 +09:00
Devon Govett
8f5daa3bbb
feat(es/transforms/react): Add pure annotation comments ( #1564 )
...
swc_ecma_transforms_react:
- Add pure annotations for react.
2021-04-11 15:09:27 +09:00
강동윤
5ce4e1e927
fix(es/parser): Use correct position for comments ( #1527 )
...
swc_ecma_parser:
- Use correct position for comments in
```ts
function Bar() {
const [foo, setFoo] = useState(0);
React.useEffect(() => {
// @refresh reset
});
return <h1>{foo}</h1>;
}
```
2021-03-31 19:30:05 +09:00