swc-project
swc
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
fix(es/minifier): narrow new function arg cleanup Remove the visitor-based constructor argument observability checks and narrow the direct new-function argument cleanup to a known-safe fast path. The optimization now only handles anonymous, parameterless direct function constructors with a trivially safe body, and only removes side-effect-free arguments. More complex constructor bodies are skipped instead of analyzed. This keeps the fix for #11684 while avoiding new visitors for a small optimization.
skku970412:fix-new-expr-useless-args-11684
23 minutes ago
fix(es/parser): refresh release and fixture metadata
kdy1:kdy1/remove-ecma-lexer
7 hours ago
Merge origin/main into kdy1/remove-ecma-lexer
kdy1:kdy1/remove-ecma-lexer
8 hours ago
refactor(es/lexer): remove smartstring dependency (#12013) **Description:** `smartstring` is archived and no longer maintained, but it was still used by the JSX entity readers in `swc_ecma_lexer` and `swc_ecma_parser` and by the `hstr` comparison benchmarks. This replaces the lexer buffers with the existing workspace dependency `compact_str::CompactString`, removes the obsolete `hstr` benchmark cases, and refreshes the root and standalone fixture/fuzz lockfiles so `smartstring` is no longer present in the repository dependency graph. JSX parsing behavior and public APIs are unchanged. Validation: - `cargo test -p swc_ecma_lexer -p swc_ecma_parser -p hstr` - `cargo check -p hstr --benches` - `cargo test -p swc_core -p swc_ecma_minifier -p swc_plugin_backend_tests` - `cargo fmt --all -- --check` - `cargo clippy --all --all-targets -- -D warnings` - `cargo tree -i smartstring --workspace --edges normal,dev` confirms the package is absent **Related issue:** Closes #11986
main
9 hours ago
test: verify v1 plugins with v2 host
kdy1:kdy1/swc-v2-parallel-packages
9 hours ago
refactor(es/parser): remove legacy lexer crate
kdy1:kdy1/remove-ecma-lexer
9 hours ago
refactor(es/lexer): remove smartstring dependency
kdy1/remove-smartstring
9 hours ago
fix(es/minifier): guard computed class keys in new functions Computed class element keys are evaluated while defining the class and can run in the surrounding constructor scope. The usage analyzer may not mark the outer constructor scope as using arguments for these keys, so the new-function argument cleanup must handle them explicitly. Bail out when the current constructor evaluation context may observe the constructor argument list through arguments, this, a referenced named function expression, new.target, or eval, including computed class keys and class heritage expressions. Add fixture and execution coverage for computed class key cases.
skku970412:fix-new-expr-useless-args-11684
19 hours ago
Latest Branches
CodSpeed Performance Gauge
0%
fix(es/minifier): drop pure extra args of new function expr
#12012
26 minutes ago
e4e8879
skku970412:fix-new-expr-useless-args-11684
CodSpeed Performance Gauge
0%
refactor(es/parser): remove legacy lexer crate
#12014
7 hours ago
0e11994
kdy1:kdy1/remove-ecma-lexer
CodSpeed Performance Gauge
0%
feat: scaffold parallel SWC v2 npm API
#12015
9 hours ago
6cc187a
kdy1:kdy1/swc-v2-parallel-packages
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs