Commit Graph

16 Commits

Author SHA1 Message Date
Donny/강동윤
2071f89d4e
fix(es/preset-env): Fix pass ordering (#7434)
**Related issue:**

 - Closes #6898.
 - Closes #7432.
2023-05-23 07:14:37 +00:00
Donny/강동윤
66d52ec849
fix(es/compat): Fix destructuring handling of block_scoping (#7425)
**Related issue:**

 - Closes #7418.
2023-05-22 03:21:50 +00:00
Austaras
c114f006b4
refactor(es/resolver): Make syntax context for unresolved and top-level stable (#7096) 2023-03-20 11:01:19 +09:00
Austaras
0f09e356c3
feat(es/resolver): Make scope context identical to the vars (#7095) 2023-03-19 11:57:14 +09:00
HeYunfei
4c2d42261e
fix(es/compat): Prepend generated _loop to the correct scope (#6604) 2022-12-09 01:48:29 +00:00
Donny/강동윤
81a4bb304a
fix(es/compat): Fix span hygiene of function naming pass (#6345)
**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6344.
2022-11-14 06:03:09 +00:00
Donny/강동윤
4820f0cbcc
fix(es/compat): Handle yield in block scoping pass (#5668) 2022-08-30 09:55:18 +00:00
Austaras
b423d6f936
fix(es/compat): Fix capturing of block scoping pass (#5279) 2022-07-25 03:34:18 +00:00
Austaras
18ea2b5770
fix(es/compat): Preserve this in function with block scoped vars (#5056) 2022-06-29 04:03:00 +00:00
Donny/강동윤
36d960c7e9
perf(es/hygiene): Make hygiene faster (#4952) 2022-06-15 14:36:57 +00:00
Austaras
db1698e012
fix(es/compat): Handle nested break/continue in block_scoping (#4778) 2022-05-24 12:31:50 +00:00
Austaras
4f00914c1a
fix(es/compat): Handle nested for loops with break/continue (#4777) 2022-05-24 11:32:49 +00:00
Donny/강동윤
a6d404a8c2
chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00
Donny/강동윤
6c9882ec68 fix(es/compat): Fix renaming bug of block_scoping (#4310) 2022-04-12 22:11:34 +09:00
Donny/강동윤
406b8eaeaf
fix(es/compat): Fix block scoping of variables (#3826) 2022-03-03 10:51:45 +00:00
Donny/강동윤
b1a8db6194
fix(es/block-scoping): Pop scope correctly on early returns (#3360)
swc_ecma_transforms_compat:
 - `block_scoping`: Pop scope even on fast-path.
2022-01-25 17:22:58 +09:00