swc-project
swc
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
fix(es/parser): handle Flow async generic arrows (#11926) **Description:** Fixes two Flow parser gaps reported in #11925: - Parse async generic arrows with typed params and explicit return annotations, such as `async <T>(x: T): Promise<T> => x`. - Parse anonymous function-type parameters in `declare class` method signatures, preserving the existing `__flow_anon_param_N` synthetic parameter convention. - Adds focused Flow parser fixtures for both cases. Validated with: - `cargo fmt --all` - `cargo test -p swc_ecma_parser` - `cargo test -p swc_ecma_parser --features flow --test flow -- --ignored` - `cargo test -p swc_ecma_transforms_typescript flow_strip_reparses_as_javascript -- --ignored` - `cargo test -p swc_ecma_parser --features flow --test flow_hermes` - `cargo clippy --all --all-targets -- -D warnings` **Related issue:** Fixes #11925
main
15 minutes ago
chore: add changeset for Flow parser fix
kdy1/fix-flow-parser-11925
43 minutes ago
fix(es/parser): support unknown AST cfg for Flow params
kdy1/fix-flow-parser-11925
4 hours ago
fix(es/minifier): handle unknown member props (#11927) **Description:** Fixes a build failure when `swc_ecma_minifier` is compiled with `RUSTFLAGS="--cfg swc_ast_unknown"`. With `swc_ast_unknown`, `MemberProp` is treated as non-exhaustive, so the hoisted property replacement match in the minifier needs to account for future or unknown variants. Unknown member props now simply skip this optimization path, preserving the original expression and normal traversal behavior. Also adds a patch changeset for `swc_ecma_minifier` and `swc_core`. Validated with: - `RUSTFLAGS="--cfg swc_ast_unknown" cargo check -p swc_ecma_minifier` - `git submodule update --init --recursive` - `cargo fmt --all` - `cargo test -p swc_ecma_minifier` - `cargo clippy --all --all-targets -- -D warnings` **Related issue:** Closes #11910
main
5 hours ago
fix(es/codegen): Emit `export as namespace` minified correctly (#11924) **Related issue:** - follow up #11923
main
5 hours ago
chore: add changeset for unknown member props
kdy1/fix-11910-swc-ast-unknown
5 hours ago
fix(es/parser): handle Flow async generic arrows
kdy1/fix-flow-parser-11925
5 hours ago
chore: Add changeset for minified namespace export
magic-akari:fix/codegen-minify-export-as-namespace
6 hours ago
Latest Branches
CodSpeed Performance Gauge
0%
fix(es/parser): handle Flow async generic arrows
#11926
45 minutes ago
d716b0b
kdy1/fix-flow-parser-11925
CodSpeed Performance Gauge
0%
fix(es/minifier): handle unknown member props
#11927
5 hours ago
5cd27e0
kdy1/fix-11910-swc-ast-unknown
CodSpeed Performance Gauge
0%
fix(es/codegen): Emit `export as namespace` minified correctly
#11924
6 hours ago
74966d5
magic-akari:fix/codegen-minify-export-as-namespace
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs