Donny/강동윤
|
63ad4b4322
|
fix(es/minifier): Fix minification of react hooks (#2450)
swc_ecma_minifier:
- `analyze`: Track for conditional usages.
- `collapse_vars`: Don't inline a variable if usage it conditinal.
|
2021-10-17 15:24:17 +09:00 |
|
Donny/강동윤
|
1645bb30b7
|
perf(es/transforms): Reduce usage of #[fast_path] (#2442)
swc_ecma_ast:
- Implement `Take` for `ObjectLit`.
- Implement `Take` for `ArrayLit`.
swc_ecma_transforms_compat:
- `nullish_coalescing`: Remove exponential visit.
- `nullish_coalescing`: Migrate to `VisitMut`.
- `optional_chaining`: Reduce exponential visit. (But it's not removed)
- `class_properties`: Remove exponential visit.
- `jsx_src`: Migrate to `VisitMut`.
- `optional_chaining`: Mae it parallel.
- `async_to_generator`: Remove `#[fast_path]`.
- `arrow`: Remove `#[fast_path]`.
- `destructuring`: Remove `#[fast_path]`.
- `block_scoped_functions`: Remove `#[fast_path]`.
- `classes`: Remove `#[fast_path]`.
|
2021-10-16 08:12:02 +00:00 |
|
Donny/강동윤
|
0e48284afb
|
fix(es/minifier): Fix bugs (#2433)
swc_ecma_minifier:
- `sequences`: Stop searching for candidates if a dependency issue is found.
|
2021-10-14 13:48:14 +00:00 |
|
Donny/강동윤
|
ab687a0f98
|
fix(es/minifer): Fix handling of callable expressions (#2379)
swc_ecma_minifier:
- `sequences`: Don't inline into arrow expression or function expressions.
- Inject variables to arrow expressions correctly.
|
2021-10-10 03:47:11 +00:00 |
|