swc-project
swc
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Optimizations
Branches
Benchmarks
Runs
Performance History
Latest Results
fix(es/minifier): Account for shorthand expansion when inlining Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
LadyBluenotes:fix/object-factory-inline-cost
10 hours ago
fix(es/react-compiler): Grow the stack while converting expressions `convert_expr` and `convert_expression` recurse once per member-call link, so a long chain overflows a 2 MiB thread stack. Wrap both in `stacker::maybe_grow`, behind a default `stacker` feature, matching `swc_ecma_parser`. Refs #12423 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
BleedingDev:fix/react-compiler-stacker
1 day ago
chore: Add changeset
refactor/parser-contexts-and-construction
1 day ago
chore: Add changeset
refactor/parser-contexts-and-construction
1 day ago
chore: Add changeset
refactor/parser-contexts-and-construction
1 day ago
fix(es/react-compiler): Skip programs that `fast_check` rules out In `infer` and `annotation` modes the React Compiler only compiles functions that `fast_check::is_required` can see. Return early from `transform` when it reports `false`, so files without React code skip AST conversion and HIR lowering. `all` and `syntax` stay ungated. Refs #12423 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
BleedingDev:fix/react-compiler-fast-check-gate
1 day ago
fix(html/minifier): Preserve adjacent script elements (#12411) **Description:** Keep adjacent HTML and SVG `<script>` elements separate during minification. Merging them changed evaluation boundaries, `document.currentScript`, and CSP hashes; a throw in the first script could also cause the second script to be dropped. Compatible `<style>` elements continue to merge. Add regression fixtures for throwing scripts, `minifyJs: false`, `document.currentScript`, and module and SVG scripts. Update the existing script fixtures. Verified with `cargo test -p swc_html_minifier`, `cargo fmt --all`, and `cargo clippy --all --all-targets -- -D warnings`. **BREAKING CHANGE:** `mergeMetadataElements` no longer merges `<script>` elements. Minified HTML now retains their separate element boundaries. **Related issue (if exists):** Closes #12402
main
1 day ago
fix(es/parser): Parse optional renamed Flow component parameters (#12410) **Description:** Parse optional renamed Flow component parameters such as `foo as bar?: T` and `'data-testid' as dataTestId?: T`. Mark the renamed binding as optional while preserving the existing behavior for optional parameters and required renamed parameters. Add Flow parser fixtures for identifier and string keys, a default value, and a duplicate optional marker error. Include a patch changeset for `swc_ecma_parser` and `swc_core`. **Tests:** - `cargo fmt --all` - `cargo clippy --all --all-targets -- -D warnings` - `cargo test -p swc_ecma_parser --features flow -- --quiet --skip errors_tests__typescript_errors__type_only_import_specifier__invalid_type_only__input_ts` - `cargo test -p swc_ecma_transforms_typescript --test flow_strip_correctness issue_12405 -- --quiet` The unfiltered parser suite has one unrelated pre-existing failure in `invalid_type_only/input.ts`; it also fails without the Flow feature enabled. **BREAKING CHANGE:** None. **Related issue (if exists):** Fixes #12405
main
1 day ago
Latest Branches
CodSpeed Performance Gauge
0%
fix(es/minifier): Account for shorthand expansion when inlining
#12428
10 hours ago
8d1e574
LadyBluenotes:fix/object-factory-inline-cost
CodSpeed Performance Gauge
0%
fix(es/react-compiler): Grow the stack while converting expressions
#12426
1 day ago
27f269e
BleedingDev:fix/react-compiler-stacker
CodSpeed Performance Gauge
-3%
refactor(es/parser): Separate parser contexts and streamline parameter construction
#12425
1 day ago
d5e183d
refactor/parser-contexts-and-construction
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs