Donny/강동윤
|
f33d3218cd
|
feat(es/transforms/compat): Add single-property optimization to destructuring (#2511)
swc_ecma_transforms_compat:
- `destructuring`: Convert single-property destructuring to direct field access.
|
2021-10-22 13:46:29 +00:00 |
|
Donny/강동윤
|
26944e159d
|
fix(es/transforms/base): Reimplement hygiene (#2408)
swc_ecma_transforms_base:
- Reimplement `hygiene`.
|
2021-10-21 05:12:50 +00:00 |
|
Donny/강동윤
|
7c5b6cafd8
|
fix(es/minifier): Fix regexp handling (#2489)
swc_ecma_minifier:
- Use allowlist of characters for optimizing RegExp calls.
|
2021-10-19 19:30:20 +00:00 |
|
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 |
|