Commit Graph

223 Commits

Author SHA1 Message Date
magic-akari
fa68cbd74a
refactor(es/module): Implement new module transformer (#4758) 2022-06-27 12:32:06 +00:00
SWC Bot
1e313c07d0 chore: Publish crates 2022-06-21 05:48:32 +00:00
Donny/강동윤
fd73895a7b
fix(es/transforms): Add custom Sync + Send for the renamer (#5018) 2022-06-21 05:45:34 +00:00
SWC Bot
6ec6bbd4aa chore: Publish crates 2022-06-15 14:40:06 +00:00
Donny/강동윤
36d960c7e9
perf(es/hygiene): Make hygiene faster (#4952) 2022-06-15 14:36:57 +00:00
SWC Bot
dc78cb48b9 chore: Publish crates 2022-06-15 05:27:21 +00:00
Donny/강동윤
b3f6f20721
fix(es/resolver): Make catch parameter not disturb resolving (#4976) 2022-06-15 05:24:39 +00:00
Donny/강동윤
0782c533b5 chore: Publish crates 2022-06-15 13:59:06 +09:00
Donny/강동윤
1bf2b80f97
chore(ci): Use macos for release builds (#4968)
We need more memory
2022-06-14 19:54:34 +09:00
Donny/강동윤
3e03ebf8bb
fix(es/parser): Don't assume the length of char (#4967) 2022-06-14 07:05:35 +00:00
Donny/강동윤
4a27e6f84a
fix(es/helpers): Allow using external helpers with type: module (#4962) 2022-06-13 18:41:35 +00:00
SWC Bot
4cae0e8270 chore: Publish crates 2022-06-13 15:54:56 +00:00
Donny/강동윤
ea92a6ab8a
refactor(es/resolver): Prepare parallel resolver (#4957) 2022-06-13 15:52:15 +00:00
SWC Bot
ccd86a1f4d chore: Publish crates 2022-06-13 08:13:14 +00:00
Donny/강동윤
445d58518d
perf(es/transforms): Make rename operator parallel (#4951) 2022-06-13 08:10:09 +00:00
Donny/강동윤
bfede71e6c chore: Publish crates 2022-06-11 16:47:29 +09:00
SWC Bot
0f094da77f chore: Publish crates 2022-06-11 07:45:15 +00:00
Donny/강동윤
35c93be60f
perf(es/transforms): Make transforms parallel (#4939) 2022-06-11 07:42:43 +00:00
SWC Bot
946f2062b6 chore: Publish crates 2022-06-10 06:13:45 +00:00
Austaras
5bb417ef88
fix(es/fixer): Preserve parens in optional calls (#4923) 2022-06-10 06:11:05 +00:00
SWC Bot
4c45b1755b chore: Publish crates 2022-06-07 23:45:49 +00:00
Donny/강동윤
a9f91dc797
fix(es/resolver): Hoist namespaces (#4902) 2022-06-07 23:42:19 +00:00
SWC Bot
f54bc12e26 chore: Publish crates 2022-06-07 17:20:45 +00:00
Donny/강동윤
4e3a878b48
fix(es/helpers): Fix syntax context of helpers (#4900) 2022-06-07 17:18:16 +00:00
Donny/강동윤
eb0acc3859 chore: Publish crates 2022-06-06 04:54:19 +09:00
Donny/강동윤
0567f67664
fix(es/minifier): Apply name mangler for more cases (#4840) 2022-05-29 11:15:16 +00:00
SWC Bot
424e62e663 chore: Publish crates 2022-05-26 16:01:22 +00:00
Donny/강동윤
a487fc1d28
refactor(es/transforms): Remove concurrent (#4808) 2022-05-26 15:58:19 +00:00
Austaras
573bcb5b49
fix(es/compat): Use define for non-spread props (#4754) 2022-05-26 20:32:41 +09:00
SWC Bot
555e08d4d6 chore: Publish crates 2022-05-24 09:27:11 +00:00
brightwu
f28d9c143b
fix(es/resolver): Fix more edge cases related to catch and var (#4773) 2022-05-24 09:24:42 +00:00
SWC Bot
26578c8c0a chore: Publish crates 2022-05-24 07:55:58 +00:00
brightwu
e2da3ddc03
fix(es/resolver): Handle var after catch with the same name (#4772) 2022-05-24 16:53:13 +09:00
SWC Bot
565fb38aec chore: Publish crates 2022-05-24 05:58:20 +00:00
Austaras
65b7c4b695
fix(es/fixer): Preserve the paren in a spread element (#4771) 2022-05-24 05:55:45 +00:00
Donny/강동윤
995e9661cc chore: Publish crates 2022-05-24 13:15:57 +09:00
Donny/강동윤
b8d2fb8546
feat(es/helpers): Import only used helpers (#4767) 2022-05-24 04:09:59 +00:00
Kevin Barabash
72fbf692a4
fix(es/codegen): Don't add a newline after an arrow body (#4711) 2022-05-19 07:12:37 +00:00
Donny/강동윤
98e4845fce
build(repo): Update rustc (#4667) 2022-05-15 09:03:54 +00:00
SWC Bot
ead25ee153 chore: Publish crates 2022-05-15 05:09:48 +00:00
Donny/강동윤
eb8508f88c
feat(es/codegen): Implement ascii-only (#4660) 2022-05-15 05:07:21 +00:00
Donny/강동윤
053f42b3aa
feat(es/minifier): Improve minifier (#4655)
swc_ecma_transforms_base:
 - Improved `fixer`.

swc_ecma_minifier:
 - `ignore_return_value`: Support computed access to array literals.
2022-05-14 07:06:03 +00:00
SWC Bot
0b06ab4022 chore: Publish crates 2022-05-13 06:34:22 +00:00
David Sherret
2745cb7949
fix(es/resolver): Ensure that a parameter type is resolved to parent (#4645) 2022-05-13 06:31:52 +00:00
Donny/강동윤
79f87e03db
test(es/minifier): Execute more tests (#4636) 2022-05-12 16:28:52 +09:00
SWC Bot
97808349a2 chore: Publish crates 2022-05-11 16:17:07 +00:00
SWC Bot
90569d4673 chore: Publish crates 2022-05-11 04:38:52 +00:00
Donny/강동윤
6a97c7bef8
fix(es/utils): Fix wrong apis (#4604)
# API Changes

## `swc_ecma_utils`

### Renames

 - `find_ids` => `find_pat_ids`
 - `prepend` => `prepend_stmt`
 - `as_bool` => `cast_to_bool`
 - `as_number` => `as_pure_number`
 - `as_string` => `cast_to_string`
 - (`as_pure_bool`, `cast_to_number` is not renamed)
 - `UsageFinder` => `IdentUsageFinder`.
 - `IdentFinder` => `IdentRefFinder`.

## Changes

 - Re-export of `HANDLER` from `swc_common::errors` is removed. Use `swc_common::error::HANDLER` instead.
 - Re-export of `Id` from `swc_ecma_ast` is removed. Use `swc_ecma_ast::Id` instead.
 - `ExprCtx` is used for apis related to `Expr`.
 - `preserve_effects` is now a method of `ExprCtx`. It was a top-level function.
 - `extract_side_effects_to` is now a method of `ExprCtx`. It was a top-level function.
 - `IdentUsageFinder` (previously `UsageFinder`) now takes `Id` instead of `Ident`.
 - `IdentRefFinder` (previously `IdentFinder`) now takes `Id` instead of `Ident`.
 - `ExprExt::is_ident_ref_to` is removed.
 - `Expr::is_global_ref_to` is added.
 - `:🆔:id` is removed. Use `Ident::to_id()` instead.
2022-05-11 04:36:22 +00:00
Donny/강동윤
2c861bd9e5
feat(es/ast): Improve Id APIs (#4614)
# API Changes

 - `Ident` now has `to_id()`. This method is added to allow removing an import.
2022-05-11 12:02:14 +09:00
SWC Bot
6c425d3d0a chore: Publish crates 2022-05-10 04:19:24 +00:00