commit_hash stringlengths 40 40 | author stringlengths 1 57 | date timestamp[s]date 2010-07-26 04:45:09 2026-04-14 18:21:10 | message stringlengths 8 1.39M | diff stringlengths 68 51.2k | files_changed int64 1 136 | insertions int64 0 2.35k | deletions int64 0 1.9k |
|---|---|---|---|---|---|---|---|
77b7854046b584a933935b9252fd6df183828409 | Donny/κ°λμ€ | 2026-03-19T03:16:32 | feat(dbg-swc): add flow strip verification command (#11706)
## Summary
- add a new Flow debug command group under `dbg-swc es flow`
- add `dbg-swc es flow strip <path>` to verify Flow strip behavior for
user-provided file/directory inputs
- map Flow parser options from CLI flags (`--jsx`, `--all`,
`--require-directive... | diff --git a/Cargo.lock b/Cargo.lock
index 05d57fb612..623421d94c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1795,6 +1795,7 @@ dependencies = [
"swc_ecma_minifier",
"swc_ecma_parser",
"swc_ecma_transforms_base",
+ "swc_ecma_transforms_typescript",
"swc_ecma_visit",
"swc_error_reporters",
"swc_timer",
diff... | 5 | 454 | 2 |
0ea99502686a43bf33c397ef47fad344de78abb9 | Donny/κ°λμ€ | 2026-03-19T00:50:17 | feat(cli): enable Flow strip support in swc_cli_impl (#11705)
## Summary
- enable Flow parser support in `swc_cli_impl` by adding
`swc_core/base_flow`
- add a CLI integration regression test for `.swcrc` with
`jsc.parser.syntax: "flow"`
- verify Flow type annotations are stripped in compile output
## Testing
- git su... | diff --git a/crates/swc_cli_impl/Cargo.toml b/crates/swc_cli_impl/Cargo.toml
index ade95de8d0..1738540843 100644
--- a/crates/swc_cli_impl/Cargo.toml
+++ b/crates/swc_cli_impl/Cargo.toml
@@ -42,6 +42,7 @@ swc_core = { version = "58.0.4", features = [
"trace_macro",
"common_concurrent",
"base_concurrent",
+ "b... | 2 | 52 | 0 |
7528507bc6d3fb723742e62abb156d510fba1329 | Donny/κ°λμ€ | 2026-03-18T00:57:22 | fix: update lz4_flex to resolve RUSTSEC-2026-0041 (#11701)
## Summary
- update `lz4_flex` from `0.11.3` to `0.11.6` in `Cargo.lock`
- resolves `cargo deny` failure from advisory `RUSTSEC-2026-0041` in CI
- add an empty follow-up commit (`chore: trigger CI validation`) as
requested
## Context
- failing job:
https://gi... | diff --git a/Cargo.lock b/Cargo.lock
index 78ed1eb2a4..05d57fb612 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3450,11 +3450,11 @@ dependencies = [
[[package]]
name = "lz4_flex"
-version = "0.11.3"
+version = "0.11.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "75761162ae2b0e580d7... | 1 | 10 | 4 |
93da89a272408ec5d4cf43d9c087774794661657 | Donny/κ°λμ€ | 2026-03-16T16:02:25 | feat(bindings): enable flow strip support in @swc/core (#11696)
## Summary
- add a `base_flow` feature in `swc_core` to forward `swc/flow`
- enable `base_flow` from `binding_core_node` so `@swc/core` native
bindings build with Flow parser support
## Testing
- cargo fmt --all
- cargo clippy --all --all-targets -- -D w... | diff --git a/bindings/binding_core_node/Cargo.toml b/bindings/binding_core_node/Cargo.toml
index 501da54ac0..6385bfd20b 100644
--- a/bindings/binding_core_node/Cargo.toml
+++ b/bindings/binding_core_node/Cargo.toml
@@ -61,6 +61,7 @@ swc_core = { path = "../../crates/swc_core", features = [
"ecma_visit",
"base_nod... | 2 | 3 | 0 |
cd5ed813da185d8aacc3d9bf7a64acb2e1c32116 | Donny/κ°λμ€ | 2026-03-16T15:00:04 | test(es/flow): add flow strip corpus correctness test (#11694)
## Summary
- add a new flow-only integration test:
`crates/swc/tests/flow_strip_correctness.rs`
- validate the full Flow parser fixture corpus
(`../swc_ecma_parser/tests/flow/**/*.js`) through the actual `swc`
compile pipeline
- for each fixture, parse wit... | diff --git a/crates/swc/tests/flow_strip_correctness.rs b/crates/swc/tests/flow_strip_correctness.rs
new file mode 100644
index 0000000000..9765f27f21
--- /dev/null
+++ b/crates/swc/tests/flow_strip_correctness.rs
@@ -0,0 +1,119 @@
+#![cfg(feature = "flow")]
+
+use std::{fs::File, io::Read, path::PathBuf};
+
+use swc::... | 1 | 119 | 0 |
60df58288867757038c6eec45ccc54bf1799f10c | CPunisher | 2026-03-12T06:48:38 | feat(es/parser): Add `with_capacity` for `Capturing` (#11679)
**Description:**
This makes sense if the caller wants to preallocate the tokens vector | diff --git a/crates/swc_ecma_parser/src/lexer/capturing.rs b/crates/swc_ecma_parser/src/lexer/capturing.rs
index fe72906959..d050285d0c 100644
--- a/crates/swc_ecma_parser/src/lexer/capturing.rs
+++ b/crates/swc_ecma_parser/src/lexer/capturing.rs
@@ -38,6 +38,13 @@ impl<I> Capturing<I> {
}
}
+ pub fn... | 1 | 7 | 0 |
bdc24b7fdc006c77f4b5303bf4ff903b71fd8bcb | Donny/κ°λμ€ | 2026-03-12T01:42:00 | perf(es/transformer): remove O(n^2) statement mutation hotspots (#11672)
## Summary
This PR addresses the highest-impact performance hotspots from #11667 in
`swc_ecma_transformer` (`#1`-`#4` scope):
- Remove repeated front `Vec::insert(0, ...)` patterns in object-rest
lowering by using one-shot prepend materializati... | diff --git a/crates/swc_ecma_transformer/src/common/statement_injector.rs b/crates/swc_ecma_transformer/src/common/statement_injector.rs
index cef6f6d0e9..e12d93f47a 100644
--- a/crates/swc_ecma_transformer/src/common/statement_injector.rs
+++ b/crates/swc_ecma_transformer/src/common/statement_injector.rs
@@ -113,88 +1... | 3 | 268 | 148 |
06aa0db37d19ddec7f3255f92eef84f07c7f2d61 | Donny/κ°λμ€ | 2026-03-12T01:23:21 | perf(ts/fast-strip): avoid token capture in default transform path (#11668)
## Summary
- conditionally disable parser token capturing in
`swc_ts_fast_strip::operate` for the default transform hot path
- keep token capture enabled for strip-only mode and
`deprecated_ts_module_as_error` diagnostics
- add fixture coverag... | diff --git a/crates/swc_ts_fast_strip/src/lib.rs b/crates/swc_ts_fast_strip/src/lib.rs
index 4352895e8b..8f8648d3c1 100644
--- a/crates/swc_ts_fast_strip/src/lib.rs
+++ b/crates/swc_ts_fast_strip/src/lib.rs
@@ -233,6 +233,12 @@ pub fn operate(
input: String,
options: Options,
) -> Result<TransformOutput, TsE... | 2 | 58 | 18 |
becd9b0352db53611cd7ab3f922ff3b1f89d73fe | Donny/κ°λμ€ | 2026-03-12T01:21:18 | perf(es_parser): reduce lookahead and allocation overhead (#11673)
## Summary
This draft applies the planned `swc_es_parser` hot-path optimizations,
focused on parser lookahead/backtracking overhead and allocation
reductions, while keeping external behavior/API unchanged.
### Implemented changes
- Added parser-leve... | diff --git a/crates/swc_es_parser/src/lexer.rs b/crates/swc_es_parser/src/lexer.rs
index 8df732b2b4..24cfaf925a 100644
--- a/crates/swc_es_parser/src/lexer.rs
+++ b/crates/swc_es_parser/src/lexer.rs
@@ -206,7 +206,7 @@ impl<'a> Lexer<'a> {
kind: TokenKind::Ident,
span,
... | 3 | 379 | 243 |
0bf8a4656011bdfeb80afb94fb8f2764739d099e | Donny/κ°λμ€ | 2026-03-09T23:15:22 | test(es/parser): enforce full ecma fixture parity (#11637)
## Summary
- reuse all parse fixtures under `crates/swc_ecma_parser/tests` by path
reference in `swc_es_parser`
- replace split/budget parity tests with a single authoritative
`parity_all_fixtures`
- enforce test262 corpus readiness: fail fast when `test262-pa... | diff --git a/crates/swc_es_parser/tests/common/ecma_reuse.rs b/crates/swc_es_parser/tests/common/ecma_reuse.rs
index fb130d45f5..62e088edd9 100644
--- a/crates/swc_es_parser/tests/common/ecma_reuse.rs
+++ b/crates/swc_es_parser/tests/common/ecma_reuse.rs
@@ -25,8 +25,8 @@ use swc_es_visit::{
};
use walkdir::WalkDir;
... | 4 | 248 | 656 |
585f7d07a44b2508b05d6b07e9fcd83cb5cb7185 | Donny/κ°λμ€ | 2026-03-03T16:10:31 | feat(swc_es_parser): enforce full parity suite and extend grammar surface (#11611)
## Summary
- enforce full `swc_es_parser` parity execution by removing temporary
skips and sampling in `parity_suite`
- make parse entrypoints resilient by returning an empty program on
fatal parser failure while preserving public API s... | diff --git a/crates/swc_es_parser/src/error.rs b/crates/swc_es_parser/src/error.rs
index 697b9ed08b..8235492777 100644
--- a/crates/swc_es_parser/src/error.rs
+++ b/crates/swc_es_parser/src/error.rs
@@ -41,6 +41,14 @@ pub enum ErrorCode {
InvalidIdentifier,
/// Return statement outside function body.
Ret... | 5 | 98 | 68 |
5093a84cf941d4c16e02abbb094feb825590ec17 | DongYun Kang | 2026-03-02T02:50:30 | chore: Publish crates with `swc_core` `v58.0.3` | diff --git a/Cargo.lock b/Cargo.lock
index 4ac31035b7..250bc3f855 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5825,7 +5825,7 @@ dependencies = [
[[package]]
name = "swc_core"
-version = "58.0.2"
+version = "58.0.3"
dependencies = [
"anyhow",
"binding_macros",
diff --git a/crates/swc_cli_impl/Cargo.toml b/crat... | 3 | 3 | 3 |
7a06d967e43fe2f84078fc241bc655b41450d2c1 | Donny/κ°λμ€ | 2026-02-26T22:53:36 | feat(es/ast): Add runtime arena crate and bootstrap swc_es_ast (#11588)
## Summary
- add crates/swc_arena with a lifetime-free runtime arena based on typed
generational handles
- add crates/swc_es_ast as a separate arena-based ECMAScript AST crate
for gradual migration from swc_ecma_ast
- add focused tests for handle ... | diff --git a/Cargo.lock b/Cargo.lock
index 2f11337783..a10483c47e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5638,6 +5638,14 @@ dependencies = [
"swc_malloc",
]
+[[package]]
+name = "swc_arena"
+version = "0.1.0"
+dependencies = [
+ "codspeed-criterion-compat",
+ "swc_malloc",
+]
+
[[package]]
name = "swc_atom... | 16 | 1,303 | 0 |
c43ed1c287d1fa3ca03bb9c4abae7c7422f74bc1 | DongYun Kang | 2026-02-25T20:30:59 | chore: Fix repository url of `swc_sourcemap` | diff --git a/Cargo.lock b/Cargo.lock
index a0aa787d86..825a592261 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -7247,7 +7247,7 @@ dependencies = [
[[package]]
name = "swc_sourcemap"
-version = "10.0.0"
+version = "10.0.1"
dependencies = [
"base64-simd 0.8.0",
"bitvec",
diff --git a/crates/swc_sourcemap/Cargo.to... | 2 | 21 | 21 |
b7e87c7b951cb8f62d6b22a5cfa2105310a91ccc | Donny/κ°λμ€ | 2026-02-07T01:17:32 | refactor(es/typescript): Precompute namespace import-equals usage in semantic pass (#11534)
## Summary
- move namespace import-equals usage resolution into semantic analysis
- remove transform-time namespace usage collector visitor and consume
semantic lookup instead
- keep namespace pre-strip timing and add semantic ... | diff --git a/crates/swc_ecma_transforms_typescript/src/semantic.rs b/crates/swc_ecma_transforms_typescript/src/semantic.rs
index 4f3bc3fbca..942dfaa5ff 100644
--- a/crates/swc_ecma_transforms_typescript/src/semantic.rs
+++ b/crates/swc_ecma_transforms_typescript/src/semantic.rs
@@ -1,5 +1,5 @@
use rustc_hash::{FxHashM... | 2 | 179 | 169 |
01b3b648114ddb2e1e5ded32856397b996cb9fc2 | Donny/κ°λμ€ | 2026-02-06T04:12:26 | test(es/minifier): Add execution tests for issue #11517 (#11530)
## Summary
- Add 113 execution tests to verify the fix for issue #11517 (incorrect
if statement merging when local variables have different values)
This PR adds comprehensive test coverage for PR #11526.
## Test Coverage
**Core Issue Tests:**
- Origin... | diff --git a/crates/swc_ecma_minifier/tests/exec.rs b/crates/swc_ecma_minifier/tests/exec.rs
index 7f1ab4069b..15e55d9f08 100644
--- a/crates/swc_ecma_minifier/tests/exec.rs
+++ b/crates/swc_ecma_minifier/tests/exec.rs
@@ -11675,3 +11675,301 @@ console.log(typeof obj2);
run_exec_test(src, config, false);
}
+
+/... | 1 | 298 | 0 |
ff6cf88c88497881839ccb40fa18d33225971203 | CPunisher | 2026-02-05T09:23:35 | fix(es/minifier): Prevent convert_tpl_to_str when there's emoji under es5 (#11529)
**Description:**
When the target environment is below ES2015, and non-BMP characters
(like emojis) are encountered, we stop the conversion.
This is because:
1. Tpl: `π¦` (may output directly in source code or require minimal
escaping) ... | diff --git a/crates/swc_ecma_minifier/src/compress/pure/strings.rs b/crates/swc_ecma_minifier/src/compress/pure/strings.rs
index d8ea3363a5..62298443e4 100644
--- a/crates/swc_ecma_minifier/src/compress/pure/strings.rs
+++ b/crates/swc_ecma_minifier/src/compress/pure/strings.rs
@@ -236,7 +236,20 @@ impl Pure<'_> {
... | 1 | 759 | 1 |
f523e4ba581f5b43d97e2dda4f86f1b4a6fd438c | Donny/κ°λμ€ | 2026-02-04T03:38:44 | chore: Update bytes to 1.11.1 to fix RUSTSEC-2026-0007 (#11528)
Update bytes dependency from 1.10.1 to 1.11.1 to fix an integer overflow
vulnerability in `BytesMut::reserve` (RUSTSEC-2026-0007).
Closes #11527
Generated with [Claude Code](https://claude.ai/code)
Co-authored-by: claude[bot] <41898282+claude[bot]@user... | diff --git a/Cargo.lock b/Cargo.lock
index 5a88aa8853..7754dac379 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -681,9 +681,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
[[package]]
name = "bytes"
-version = "1.10.1"
+version = "1.11.1"
source = "registry+https://github.com/rust-... | 1 | 2 | 2 |
d72c9df7e390389c3f9a2645341f920c5d42d0db | Donny/κ°λμ€ | 2026-01-27T06:26:19 | perf(es/transformer): Add inline hint (#11508)
**Description:**
We have lots of `noop` hooks, so an inline hint may improve the performance | diff --git a/crates/swc_ecma_transformer/src/hook_utils.rs b/crates/swc_ecma_transformer/src/hook_utils.rs
index d509bbe6f2..0172defb2a 100644
--- a/crates/swc_ecma_transformer/src/hook_utils.rs
+++ b/crates/swc_ecma_transformer/src/hook_utils.rs
@@ -5,11 +5,13 @@ use crate::TraverseCtx;
macro_rules! chained_method ... | 1 | 2 | 0 |
5efcac946f5cf88e900da2867dc8b92c411bdd18 | Donny/κ°λμ€ | 2026-01-27T01:08:25 | feat(es/transformer): Merge ES3 hooks into swc_ecma_transformer (#11503)
This adds an `es3` feature (disabled by default) to
`swc_ecma_transformer` to integrate ES3 compatibility transforms.
Closes #11502
Generated with [Claude Code](https://claude.ai/claude-code)
---------
Co-authored-by: claude[bot] <41898282+cl... | diff --git a/Cargo.lock b/Cargo.lock
index 83dcfaf479..a72ac3d776 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -6117,14 +6117,10 @@ dependencies = [
name = "swc_ecma_compat_es3"
version = "27.0.0"
dependencies = [
- "swc_common",
"swc_ecma_ast",
- "swc_ecma_hooks",
"swc_ecma_parser",
+ "swc_ecma_transformer",
"... | 16 | 604 | 533 |
b53a0e2a98a7556c5f8a74270a717e4078793053 | Leo Shklovskii | 2026-01-26T23:46:34 | feat(cli): Add --root-mode argument for .swcrc resolution (#11501)
## Summary
Adds `--root-mode` CLI argument to the `swc compile` command, matching
Babel's behavior for resolving `.swcrc` configuration files.
Closes #1801
### Modes
| Mode | Behavior |
|------|----------|
| `root` (default) | Only looks for `.swcr... | diff --git a/crates/swc/src/config/mod.rs b/crates/swc/src/config/mod.rs
index 8c13800b2f..744ad60d81 100644
--- a/crates/swc/src/config/mod.rs
+++ b/crates/swc/src/config/mod.rs
@@ -958,7 +958,7 @@ pub enum RootMode {
UpwardOptional,
}
-const fn default_swcrc() -> bool {
+pub const fn default_swcrc() -> bool {... | 4 | 221 | 3 |
81daaaa054a579fd2b425c5362b33ffc90471e6f | Donny/κ°λμ€ | 2026-01-23T03:31:29 | perf(bindings): Optimize string handling by avoiding unnecessary clones (#11490)
## Summary
- Replace `.to_string()` with `.into_owned()` on `Cow<str>` results from
`String::from_utf8_lossy()`
- Replace `.to_string()` with `.clone()` on `&String` to avoid Display
trait allocation
- Optimizes 13 instances across 7 bin... | diff --git a/bindings/binding_core_node/src/minify.rs b/bindings/binding_core_node/src/minify.rs
index bbbb467037..f3d63a3aa0 100644
--- a/bindings/binding_core_node/src/minify.rs
+++ b/bindings/binding_core_node/src/minify.rs
@@ -97,8 +97,8 @@ fn minify(
signal: Option<AbortSignal>,
) -> AsyncTask<MinifyTask> {
... | 7 | 13 | 13 |
fade647452ed288d42336a4c5580b49bd4953e23 | Donny/κ°λμ€ | 2026-01-23T03:24:06 | test(es/parser): Check `handler.has_errors()` in test error parsing (#11487)
Fix CI behavior inconsistency where test262 error tests would falsely
pass when the parser successfully parses code but emits recoverable
errors.
The `with_parser` function in `errors.rs` was not checking
`handler.has_errors()` before return... | diff --git a/crates/swc_ecma_parser/tests/errors.rs b/crates/swc_ecma_parser/tests/errors.rs
index 15bad2591c..97769e606a 100644
--- a/crates/swc_ecma_parser/tests/errors.rs
+++ b/crates/swc_ecma_parser/tests/errors.rs
@@ -64,6 +64,10 @@ where
e.into_diagnostic(handler).emit();
}
+ if handler.has_err... | 1 | 4 | 0 |
aa9d789953fc8e62e07b91e25137573d3a4d70d7 | Donny/κ°λμ€ | 2026-01-22T04:39:50 | chore(es/minifier): Extend OrderedChain to support more node types (#11477)
## Summary
- Extended `OrderedChain` in `hook_utils.rs` with additional node types
for future hook consolidation
- Added support for expression, declaration, export, and identifier
hooks
## Test plan
- [x] cargo check passes
- [x] Library t... | diff --git a/crates/swc_ecma_minifier/src/hook_utils.rs b/crates/swc_ecma_minifier/src/hook_utils.rs
index e87012b74f..a19a09f09b 100644
--- a/crates/swc_ecma_minifier/src/hook_utils.rs
+++ b/crates/swc_ecma_minifier/src/hook_utils.rs
@@ -49,6 +49,7 @@ where
A: VisitMutHook<C>,
B: VisitMutHook<C>,
{
+ // ... | 1 | 43 | 1 |
73f77b6331b1501592315b78babcc96d9ae9b483 | Donny/κ°λμ€ | 2026-01-21T10:10:59 | test: Replace deprecated `cargo_bin` function with `cargo_bin!` macro (#11461)
The `assert_cmd::cargo_bin` function relies on implementation details of
Cargo that will break on future versions. This PR:
- Updates `assert_cmd` from v2.0.12 to v2.0.17 (which includes the
macro)
- Replaces `Command::cargo_bin("swc")` wi... | diff --git a/Cargo.lock b/Cargo.lock
index 46ea47142b..75e8b72d07 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -210,13 +210,13 @@ checksum = "d92bec98840b8f03a5ff5413de5293bfcd8bf96467cf5452609f939ec6f5de16"
[[package]]
name = "assert_cmd"
-version = "2.0.14"
+version = "2.1.2"
source = "registry+https://github.com... | 3 | 6 | 6 |
e9f78f032f7d85a500037cdc82babdcf2d2be99a | Donny/κ°λμ€ | 2026-01-19T08:19:06 | chore(deps): Update browserslist-data to v0.1.5 (#11454)
This updates the browserslist-data crate from v0.1.0 to v0.1.5, which
adds support for newer Node.js versions including 20.19.
Fixes #11451
Generated with [Claude Code](https://claude.ai/claude-code)
Co-authored-by: claude[bot] <41898282+claude[bot]@users.nor... | diff --git a/Cargo.lock b/Cargo.lock
index 4ff3f02f8c..197cf355d0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -572,9 +572,9 @@ dependencies = [
[[package]]
name = "browserslist-data"
-version = "0.1.0"
+version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3f42db7dd1800856... | 4 | 192 | 172 |
a41e63193c86290f20fec6529d7aa944562df713 | Donny/κ°λμ€ | 2026-01-09T02:33:11 | refactor(es/minifier): Migrate MinifierPass to Pass trait (#11442)
## Summary
- Migrate `MinifierPass` from `VisitMut` to `Pass` trait implementation
- Remove duplicate code by using `Program` instead of separate
`Module`/`Script` handlers
- Remove `visit_mut_pass` wrapper in config
## Test plan
- Existing tests shou... | diff --git a/crates/swc/src/builder.rs b/crates/swc/src/builder.rs
index dedd235d72..0cd9866db4 100644
--- a/crates/swc/src/builder.rs
+++ b/crates/swc/src/builder.rs
@@ -1,8 +1,8 @@
use swc_common::{comments::Comments, sync::Lrc, util::take::Take, Mark, SourceMap};
-use swc_ecma_ast::{Module, Script};
+use swc_ecma_a... | 2 | 25 | 89 |
dd007c64a691d37f6d4903624a8dfa39d389f912 | Donny/κ°λμ€ | 2026-01-07T23:34:02 | refactor(es/transforms): Migrate TypeScript transform to Pass trait (#11439)
## Summary
- Refactored `TypeScript` struct to implement `Pass` trait instead of
`VisitMut`
- Removed `visit_mut_pass()` wrapper in the `typescript()` function
- Changed `visit_mut_program` to `process` method (Pass trait interface)
- Remov... | diff --git a/crates/swc_ecma_transforms_typescript/src/typescript.rs b/crates/swc_ecma_transforms_typescript/src/typescript.rs
index 4cfc340ee7..41d0e3c55d 100644
--- a/crates/swc_ecma_transforms_typescript/src/typescript.rs
+++ b/crates/swc_ecma_transforms_typescript/src/typescript.rs
@@ -19,12 +19,12 @@ macro_rules! ... | 1 | 5 | 19 |
67c2d752910c945732cf4deebf2af0f8a110e880 | Donny/κ°λμ€ | 2026-01-07T22:48:42 | chore(deps): Update lru to 0.16.3 (#11438)
## Summary
- Update `lru` crate from 0.16.1 to 0.16.3
- Updates `hashbrown` to 0.16.0 and `foldhash` to 0.2.0 as transitive
dependencies
## Test plan
- CI should pass
π€ Generated with [Claude Code](https://claude.com/claude-code) | diff --git a/Cargo.lock b/Cargo.lock
index 33f020eeab..234660d914 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2153,6 +2153,12 @@ version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
+[[package]]
+name = "fol... | 1 | 16 | 5 |
f33a975c74f63f8d8e3c05db5166912c432ae18b | Donny/κ°λμ€ | 2026-01-07T06:58:26 | refactor(es): Improve TypeScript transform configuration structure (#11434)
## Summary
- Refactored TypeScript configuration block in the transformer chain
- Improved code structure and readability by adjusting block placement
and indentation
- No functional changes, purely structural improvements
## Test plan
- [ ] ... | diff --git a/crates/swc/src/config/mod.rs b/crates/swc/src/config/mod.rs
index d0e9737b8f..be626f0781 100644
--- a/crates/swc/src/config/mod.rs
+++ b/crates/swc/src/config/mod.rs
@@ -837,60 +837,58 @@ impl Options {
explicit_resource_management(),
syntax.explicit_resour... | 1 | 49 | 51 |
2a20cb6e34bed4260efe2a1b87165f52f9b3d45c | Donny/κ°λμ€ | 2026-01-07T04:05:17 | perf(es/react): Optimize JSX transforms to reduce allocations (#11425)
## Summary
This PR optimizes the React JSX transforms by reducing memory
allocations in hot paths. The changes target the most frequently called
functions identified through profiling with Instruments (xctrace).
## Changes
### Memory Allocation ... | diff --git a/crates/swc_ecma_transforms_react/src/jsx/mod.rs b/crates/swc_ecma_transforms_react/src/jsx/mod.rs
index 39e27b1c2f..8d3e145fdb 100644
--- a/crates/swc_ecma_transforms_react/src/jsx/mod.rs
+++ b/crates/swc_ecma_transforms_react/src/jsx/mod.rs
@@ -1,9 +1,6 @@
#![allow(clippy::redundant_allocation)]
-use s... | 1 | 96 | 53 |
432197bdc7c574fbd8829ad5a6e0b3108ccb1d3c | Donny/κ°λμ€ | 2026-01-07T02:20:38 | chore(deps): Update `rkyv` (#11419) | diff --git a/Cargo.lock b/Cargo.lock
index e16e56f2d3..33f020eeab 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -695,7 +695,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c02af038c863b51d496dd4a2eabdf781f8f7ab68025e13b984b7f2c525560454"
dependencies = [
"bytes",
- "rkyv 0.8.9",
+ "r... | 2 | 276 | 276 |
18088b29826acd0948e9682e0de5ab47db399d32 | Donny/κ°λμ€ | 2025-12-29T02:41:01 | perf: Reduce binary size with panic=abort and ICU optimizations (#11401)
## Summary
- Add `panic = "abort"` to release profile to remove unwinding code and
reduce binary size
- Optimize ICU and internationalization crates for size (`opt-level =
"s"`)
- Optimize non-critical crates (`swc_ecma_visit`, `swc_sourcemap`) f... | diff --git a/Cargo.toml b/Cargo.toml
index e936893734..a0cc966051 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -172,6 +172,9 @@ strip = "symbols"
# Reduce binary size
codegen-units = 1
+# Abort on panic to remove unwinding code
+panic = "abort"
+
[profile.bench]
debug = true
lto = true
@@ -256,6 +259,34 @@ opt-... | 1 | 31 | 0 |
97d903b4e580e99d0a02463c0a38e780f76bd274 | CPunisher | 2025-12-24T07:46:06 | perf(es/parser): Remove `is_first` in lexer state (#11395)
**Description:**
We can use a dedicate `first_token` to remove the checks in
`next_token`, which is triggered in every token bump.
At the same time, I also cleaned up and refactor some simple APIs, which
is introdced in the previous trait-based implementatio... | diff --git a/crates/swc_ecma_parser/src/lexer/capturing.rs b/crates/swc_ecma_parser/src/lexer/capturing.rs
index d0dc25a91f..dc1fb54035 100644
--- a/crates/swc_ecma_parser/src/lexer/capturing.rs
+++ b/crates/swc_ecma_parser/src/lexer/capturing.rs
@@ -150,6 +150,14 @@ impl<I: Tokens> Tokens for Capturing<I> {
s... | 6 | 88 | 120 |
58c406723e78fbe87011450dd87edbf52508c08e | Donny/κ°λμ€ | 2025-12-11T07:03:36 | fix(es/transformer): Complete `replace_this_in_expr` implementation (#11361)
## Summary
This PR fixes the incomplete `replace_this_in_expr` and
`replace_this_in_stmt` implementations as identified in the [PR #11358
review
comment](https://github.com/swc-project/swc/pull/11358#issuecomment-3630435060).
## Problem
Th... | diff --git a/crates/swc_ecma_transformer/src/es2017/async_to_generator.rs b/crates/swc_ecma_transformer/src/es2017/async_to_generator.rs
index 15e7cc61b6..2da62d2a4f 100644
--- a/crates/swc_ecma_transformer/src/es2017/async_to_generator.rs
+++ b/crates/swc_ecma_transformer/src/es2017/async_to_generator.rs
@@ -899,6 +89... | 1 | 355 | 11 |
e4cdc47ccf22ed7fa27742987b0fc4e97d5b5d19 | DongYun Kang | 2025-12-04T09:18:14 | chore: Format files | diff --git a/crates/swc_ecma_transformer/src/es2020/nullish_coalescing.rs b/crates/swc_ecma_transformer/src/es2020/nullish_coalescing.rs
index e69de29bb2..8b13789179 100644
--- a/crates/swc_ecma_transformer/src/es2020/nullish_coalescing.rs
+++ b/crates/swc_ecma_transformer/src/es2020/nullish_coalescing.rs
@@ -0,0 +1 @@... | 2 | 2 | 0 |
68d740cc5c2097954d0a7827775af7ac0b3f7cee | Donny/κ°λμ€ | 2025-12-04T07:20:08 | feat(es/transfomer): Add modules to prepare porting (#11347) | diff --git a/crates/swc_ecma_transformer/src/es2017/async_to_generator.rs b/crates/swc_ecma_transformer/src/es2017/async_to_generator.rs
new file mode 100644
index 0000000000..8b13789179
--- /dev/null
+++ b/crates/swc_ecma_transformer/src/es2017/async_to_generator.rs
@@ -0,0 +1 @@
+
diff --git a/crates/swc_ecma_transfo... | 13 | 38 | 4 |
1a8759f30b1d2253bd5e267f68970ca58f301b68 | Donny/κ°λμ€ | 2025-12-04T07:05:40 | feat(es/transform): Add common fields (#11346) | diff --git a/crates/swc_ecma_preset_env/src/lib.rs b/crates/swc_ecma_preset_env/src/lib.rs
index 9bcea93b28..ac01324f23 100644
--- a/crates/swc_ecma_preset_env/src/lib.rs
+++ b/crates/swc_ecma_preset_env/src/lib.rs
@@ -52,6 +52,9 @@ where
let pass = noop_pass();
let mut options = swc_ecma_transformer::Options... | 2 | 9 | 0 |
23921613cc730d5ea9fbcf7665471835b8654fed | DongYun Kang | 2025-11-20T19:58:52 | chore: Specify dependency version to publish `swc_cli` | diff --git a/bindings/swc_cli/Cargo.toml b/bindings/swc_cli/Cargo.toml
index 0053dbacb4..967e9beaec 100644
--- a/bindings/swc_cli/Cargo.toml
+++ b/bindings/swc_cli/Cargo.toml
@@ -20,4 +20,4 @@ plugin = ["swc_cli_impl/plugin"]
[dependencies]
anyhow = { workspace = true }
par-core = { workspace = true, feat... | 1 | 1 | 1 |
45827fac5d0d0434f425769f6b3f4383617355e0 | Donny/κ°λμ€ | 2025-11-19T16:47:30 | refactor(es/transfomer): Prevent breaking change (#11308) | diff --git a/crates/swc_ecma_transformer/src/bugfix/mod.rs b/crates/swc_ecma_transformer/src/bugfix/mod.rs
index 403aa2387c..d7f0e6545d 100644
--- a/crates/swc_ecma_transformer/src/bugfix/mod.rs
+++ b/crates/swc_ecma_transformer/src/bugfix/mod.rs
@@ -3,6 +3,7 @@ use swc_ecma_hooks::VisitMutHook;
use crate::TraverseCtx... | 15 | 16 | 0 |
58f2602981fd5d2efeabc44dc59fbc07dbb4e7cd | Donny/κ°λμ€ | 2025-11-19T15:59:43 | chore(es/transformer): Determine project structure (#11306) | diff --git a/Cargo.lock b/Cargo.lock
index 9480e66892..09d58ed7c9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -6325,6 +6325,18 @@ dependencies = [
"tracing",
]
+[[package]]
+name = "swc_ecma_transformer"
+version = "0.1.0"
+dependencies = [
+ "swc_ecma_ast",
+ "swc_ecma_hooks",
+ "swc_ecma_transforms_base",
+ "swc... | 19 | 429 | 0 |
0d4d2d9ab4e912ecf9e17e7c9b49d26b320c1d98 | Donny/κ°λμ€ | 2025-11-13T15:30:41 | fix(bindings/es): Respect `filename` option from `print()` (#11264)
**Description:**
I'm not sure if sourcemap will work correctly, though | diff --git a/bindings/binding_core_node/src/print.rs b/bindings/binding_core_node/src/print.rs
index f64e216a7d..02e62fbd92 100644
--- a/bindings/binding_core_node/src/print.rs
+++ b/bindings/binding_core_node/src/print.rs
@@ -48,6 +48,7 @@ impl Task for PrintTask {
codegen_config: swc_core::ec... | 1 | 2 | 0 |
fb41ba296b52498ba89a5b0bcc0bef08748919ac | Donny/κ°λμ€ | 2025-11-08T11:52:23 | chore: Resolve cyclic dependency | diff --git a/Cargo.lock b/Cargo.lock
index f2cf2b338f..81f882beaa 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -6580,7 +6580,6 @@ dependencies = [
"swc_atoms",
"swc_common",
"swc_ecma_ast",
- "swc_ecma_hooks",
"swc_visit",
"tracing",
]
diff --git a/crates/swc_ecma_visit/tests/compose.rs b/crates/swc_ecma_hook... | 3 | 0 | 4 |
413a4a7dfc6c67c1270c354502309ca8ec15c8ee | Donny/κ°λμ€ | 2025-11-06T04:32:24 | chore: Format files | diff --git a/crates/swc_ecma_compiler/src/compat/es2017/mod.rs b/crates/swc_ecma_compiler/src/compat/es2017/mod.rs
index e69de29bb2..8b13789179 100644
--- a/crates/swc_ecma_compiler/src/compat/es2017/mod.rs
+++ b/crates/swc_ecma_compiler/src/compat/es2017/mod.rs
@@ -0,0 +1 @@
+
diff --git a/crates/swc_ecma_compiler/src... | 5 | 5 | 0 |
15639c0abfa5569873fd75a6778fa8ec2d31f197 | Donny/κ°λμ€ | 2025-11-06T04:01:06 | chore(es/compiler): Drop `syntax_ext` and prepare AI-based porting (#11239) | diff --git a/crates/swc_ecma_compiler/src/compat.rs b/crates/swc_ecma_compiler/src/compat/es2016/mod.rs
similarity index 100%
rename from crates/swc_ecma_compiler/src/compat.rs
rename to crates/swc_ecma_compiler/src/compat/es2016/mod.rs
diff --git a/crates/swc_ecma_compiler/src/compat/es2017/mod.rs b/crates/swc_ecma_co... | 9 | 9 | 1 |
415019c6da388180cb590e802b17206692ec95a4 | Donny/κ°λμ€ | 2025-11-06T03:44:19 | feat(es/compiler): Determine module structure (#11238)
**Description:**
As some users (e.g., Deno) only require TypeScript + React, we cannot merge everything into the `Compiler` struct. So I added the `syntax_ext` module and the `compat` module. I'll port everything into these two modules, and deprecate the original... | diff --git a/crates/swc_ecma_compiler/src/compat.rs b/crates/swc_ecma_compiler/src/compat.rs
new file mode 100644
index 0000000000..8b13789179
--- /dev/null
+++ b/crates/swc_ecma_compiler/src/compat.rs
@@ -0,0 +1 @@
+
diff --git a/crates/swc_ecma_compiler/src/lib.rs b/crates/swc_ecma_compiler/src/lib.rs
index c08862af6... | 3 | 4 | 0 |
2d331248db00876632e72b94f39093e4f3b7ed2d | Donny/κ°λμ€ | 2025-11-04T04:58:57 | chore: Improve the `bump` command (#11226)
**Description:**
Bump command should not bump the versions of binding crates, because
those are managed by
https://github.com/swc-project/swc/blob/2edbd40241b3402c8542241b1f8d82a4ebadd801/scripts/publish.sh
.
But before this PR, there was a bug related to packages that are ... | diff --git a/tools/swc-releaser/src/main.rs b/tools/swc-releaser/src/main.rs
index 2b09d67c74..0ca5825dce 100644
--- a/tools/swc-releaser/src/main.rs
+++ b/tools/swc-releaser/src/main.rs
@@ -210,10 +210,10 @@ impl Bump<'_> {
) -> Result<()> {
eprintln!("Bumping crate: {pkg_name}");
- let original... | 1 | 8 | 4 |
6c1e8208b93a07e7e29930f044b97e6f8312192d | Donny/κ°λμ€ | 2025-11-04T03:14:53 | chore: Fix version of bindings | diff --git a/Cargo.lock b/Cargo.lock
index 1a2f83e0bf..3eeeaacc7f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -382,7 +382,7 @@ dependencies = [
[[package]]
name = "binding_core_wasm"
-version = "2.0.0"
+version = "1.0.0"
dependencies = [
"anyhow",
"getrandom 0.3.4",
@@ -395,7 +395,7 @@ dependencies = [
[[pa... | 5 | 18 | 18 |
dba23f5a72d26b3b62fbafe2d8a65c69c3642669 | Donny/κ°λμ€ | 2025-10-30T08:37:04 | test: Copy opt-level configs to the top level workspace (#11210)
**Description:**
The codspeed action will tell us about the performance impact of these patches. | diff --git a/Cargo.toml b/Cargo.toml
index 8010457114..bf221e94d5 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -174,3 +174,135 @@ opt-level = 3
[profile.test.package.swc_ecma_usage_analyzer]
opt-level = 3
+
+
+ [profile.release.package]
+
+ [profile.release.package.wasmer-wasix]
+ opt-level = "s"
+
+ [prof... | 1 | 132 | 0 |
85e6e8a66f0e517512d7cd13c5b287b1ef82e191 | Hana | 2025-10-29T22:19:07 | perf(atoms): Remove temporary allocations in rkyv serialize and deserialize (#11202)
**Description:**
Remove temporary allocations under serialize and deserialize. | diff --git a/crates/swc_atoms/src/lib.rs b/crates/swc_atoms/src/lib.rs
index af07ca0d03..54cd3a4e05 100644
--- a/crates/swc_atoms/src/lib.rs
+++ b/crates/swc_atoms/src/lib.rs
@@ -262,7 +262,7 @@ where
<S as rancor::Fallible>::Error: rancor::Source,
{
fn serialize(&self, serializer: &mut S) -> Result<Self::Re... | 2 | 5 | 12 |
85d855fd0478f989bac5d62caad668497f497137 | Donny/κ°λμ€ | 2025-10-28T03:41:53 | chore(binding_macros): Add `default-features = false` (#11193) | diff --git a/crates/binding_macros/Cargo.toml b/crates/binding_macros/Cargo.toml
index 8b59c84520..0e0efbe53e 100644
--- a/crates/binding_macros/Cargo.toml
+++ b/crates/binding_macros/Cargo.toml
@@ -33,11 +33,11 @@ binding_wasm = [
[dependencies]
# Common deps for the SWC imports
-swc = { optional =... | 1 | 5 | 5 |
ed63413d3f0b9b19e717361a09ef938f243400cf | Donny/κ°λμ€ | 2025-10-28T03:38:30 | refactor(bindings): Add `opt-level = s` to more crates (#11191) | diff --git a/bindings/Cargo.toml b/bindings/Cargo.toml
index 4a4c8b861a..3d35032804 100644
--- a/bindings/Cargo.toml
+++ b/bindings/Cargo.toml
@@ -176,6 +176,39 @@ codegen-units = 1
[profile.release.package.miette]
opt-level = "s"
+ [profile.release.package.swc_bundler]
+ opt-level = "s"
+
+ [profi... | 2 | 34 | 64 |
4c6df954df6eb1476b65b6c53bfc72e9b856f8e9 | Donny/κ°λμ€ | 2025-10-28T00:55:25 | refactor(bindings): Adjust compile options (#11190) | diff --git a/bindings/Cargo.toml b/bindings/Cargo.toml
index fa1d7a6f24..4a4c8b861a 100644
--- a/bindings/Cargo.toml
+++ b/bindings/Cargo.toml
@@ -75,6 +75,9 @@ lto = "fat"
# Strip debug symbols
strip = "symbols"
+# Reduce binary size
+codegen-units = 1
+
[profile.release.package]
[profile.release.package... | 1 | 30 | 0 |
037131cc163a42eb2d2a4753e99988f0e7fbcd0d | CPunisher | 2025-10-27T11:39:48 | chore(ci): Remove the slowest parallel benchmark (#11187)
**Description:**
This is the slowest benchmark up to 15 minutes. And running a parallel version of the benchmark specifically on Codspeed doesnβt make much sense. | diff --git a/crates/swc_ecma_transforms_base/Cargo.toml b/crates/swc_ecma_transforms_base/Cargo.toml
index 4d7939f9d4..d7c0d37c67 100644
--- a/crates/swc_ecma_transforms_base/Cargo.toml
+++ b/crates/swc_ecma_transforms_base/Cargo.toml
@@ -51,7 +51,3 @@ testing = { version = "16.0.0", path = "../testi... | 2 | 0 | 73 |
cb6b71bd4ec73ec1e67fa142fc24ff02197bfd9c | Donny/κ°λμ€ | 2025-09-17T05:36:57 | chore: Publish crates with `swc_core` `v42.0.2` | diff --git a/Cargo.lock b/Cargo.lock
index 12b616c92a..090e831869 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5113,7 +5113,7 @@ dependencies = [
[[package]]
name = "swc_core"
-version = "42.0.1"
+version = "42.0.2"
dependencies = [
"anyhow",
"binding_macros",
@@ -6419,7 +6419,7 @@ dependencies = [
[[packag... | 4 | 6 | 6 |
99b28305d59d272345b4a8d69bea9ce099c5bac7 | Donny/κ°λμ€ | 2025-09-15T03:07:56 | chore: Update bindings | diff --git a/bindings/Cargo.lock b/bindings/Cargo.lock
index da651ac1d2..8df51533f9 100644
--- a/bindings/Cargo.lock
+++ b/bindings/Cargo.lock
@@ -121,6 +121,8 @@ checksum = "d92bec98840b8f03a5ff5413de5293bfcd8bf96467cf5452609f939ec6f5de16"
[[package]]
name = "ast_node"
version = "3.0.3"
+source = "registry+https://... | 2 | 258 | 27 |
eb0d61548a9796822361787242268ed019c108e7 | bohan | 2025-09-09T10:11:09 | perf(es/minifier): lazy get type (#11075) | diff --git a/crates/swc_ecma_minifier/src/compress/pure/bools.rs b/crates/swc_ecma_minifier/src/compress/pure/bools.rs
index 069b183074..7a3f52f15d 100644
--- a/crates/swc_ecma_minifier/src/compress/pure/bools.rs
+++ b/crates/swc_ecma_minifier/src/compress/pure/bools.rs
@@ -261,11 +261,17 @@ impl Pure<'_> {
... | 3 | 17 | 16 |
1e8b92fd0b8f59aef58775b12a4f973e935a5e2c | quininer | 2025-09-09T10:10:43 | fix(plugin/runner): fix wasmtime backend cache corruption (#11077)
**Description:**
This writes the cache atomically and uses read instead of mmap to load
cache, avoid wasmtime crashes caused by load from an incomplete cache.
**Related issue:**
- https://github.com/web-infra-dev/rspack/issues/11529 | diff --git a/crates/swc_plugin_backend_wasmtime/src/lib.rs b/crates/swc_plugin_backend_wasmtime/src/lib.rs
index 8da25dc184..14841f290a 100644
--- a/crates/swc_plugin_backend_wasmtime/src/lib.rs
+++ b/crates/swc_plugin_backend_wasmtime/src/lib.rs
@@ -71,16 +71,46 @@ impl runtime::Runtime for WasmtimeRuntime {
}
... | 1 | 32 | 2 |
d6e0a4922458560c9c0294f07d22f719ae7b26d2 | Donny/κ°λμ€ | 2025-09-06T05:45:40 | chore: Update `swc_core` in bindings (#11067) | diff --git a/bindings/Cargo.lock b/bindings/Cargo.lock
index c8cf0c02cb..9525c1f80d 100644
--- a/bindings/Cargo.lock
+++ b/bindings/Cargo.lock
@@ -311,9 +311,9 @@ dependencies = [
[[package]]
name = "binding_macros"
-version = "37.0.0"
+version = "38.0.0"
source = "registry+https://github.com/rust-lang/crates.io-i... | 2 | 68 | 67 |
3cb53abef98db58799fbcf70a977d610b797d30a | Donny/κ°λμ€ | 2025-09-04T07:09:21 | chore(ci): Fix CI (#11057) | diff --git a/Cargo.lock b/Cargo.lock
index e2cf216432..c5faaed908 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -438,7 +438,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "40723b8fb387abc38f4f4a37c09073622e41dd12327033091ef8950659e6dc0c"
dependencies = [
"memchr",
- "regex-automata 0... | 4 | 34 | 78 |
4eef9fe796f0e89083a91bac5e26d7b269917c16 | CPunisher | 2025-09-01T06:56:05 | chore(bindings): Bump dependencies (#11043)
**Description:**
I suspect that the patch for
https://github.com/swc-project/swc/pull/11035 CI doesn't take effect
because the binding dependency version wasn't updated. | diff --git a/bindings/Cargo.lock b/bindings/Cargo.lock
index 96d5ac3fc0..e361ebadbc 100644
--- a/bindings/Cargo.lock
+++ b/bindings/Cargo.lock
@@ -235,7 +235,7 @@ dependencies = [
"bitflags 2.9.1",
"cexpr",
"clang-sys",
- "itertools 0.10.5",
+ "itertools 0.13.0",
"log",
"prettyplease",
"proc-macro2",
@@ -31... | 2 | 29 | 29 |
0a2dcf8c1a470898e0c88d97ba960d2d55773f62 | Austaras | 2025-08-26T04:33:27 | fix(es/minifier): Fix `debug` feature (#11030) | diff --git a/crates/swc_ecma_minifier/src/compress/optimize/inline.rs b/crates/swc_ecma_minifier/src/compress/optimize/inline.rs
index 1231575488..a8616b7519 100644
--- a/crates/swc_ecma_minifier/src/compress/optimize/inline.rs
+++ b/crates/swc_ecma_minifier/src/compress/optimize/inline.rs
@@ -37,7 +37,7 @@ impl Optimi... | 2 | 2 | 4 |
82c6b0fe80f0e40aab52d5b34366aa7ec89034cb | CPunisher | 2025-08-25T21:19:51 | test(es/parser): Use relative file name in typescript tests (#11029)
**Description:**
Currently `fname` is an absolute path so the folder where developers put
swc projects will influence the result of `fname.contains`. | diff --git a/Cargo.lock b/Cargo.lock
index 4d78063c7f..ecf88cab77 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5715,6 +5715,7 @@ dependencies = [
"codspeed-criterion-compat",
"either",
"num-bigint",
+ "pathdiff",
"pretty_assertions",
"serde",
"serde_json",
diff --git a/crates/swc_ecma_parser/Cargo.toml b/cr... | 3 | 18 | 10 |
0088ab8ebb05c4db569cf2f7cd57e4f73a0e306c | CPunisher | 2025-08-13T17:53:23 | perf(es/parser): Remove `OneDirectionalList` and reduce allocation of `Vec` (#11000)
**Description:**
1. Separate `CommentsBuffer` into legacy and new ones with
`CommentsBufferTrait`.
2. For the new one, remove `OneDirectionalList` and use `Vec`. Record
positions in `LexerCheckpoint` for recovery.
There's regression... | diff --git a/crates/swc_ecma_lexer/src/common/lexer/comments_buffer.rs b/crates/swc_ecma_lexer/src/common/lexer/comments_buffer.rs
index 471251f726..e13844e611 100644
--- a/crates/swc_ecma_lexer/src/common/lexer/comments_buffer.rs
+++ b/crates/swc_ecma_lexer/src/common/lexer/comments_buffer.rs
@@ -1,93 +1,21 @@
-use st... | 8 | 222 | 178 |
a4aa0ec03a2bd4087614aaa852aeec87be24fbc6 | bohan | 2025-08-13T13:13:31 | chore(es/minifier): Make a computation lazy (#11004) | diff --git a/crates/swc_ecma_minifier/src/compress/optimize/inline.rs b/crates/swc_ecma_minifier/src/compress/optimize/inline.rs
index 93d938bc95..228c96c6d8 100644
--- a/crates/swc_ecma_minifier/src/compress/optimize/inline.rs
+++ b/crates/swc_ecma_minifier/src/compress/optimize/inline.rs
@@ -32,8 +32,6 @@ impl Optimi... | 1 | 2 | 2 |
39f5784c106e7fc1feb2b7a48b5d0639a6efdc5f | CPunisher | 2025-08-13T13:12:41 | perf(es/parser): Remove useless `Rc<RefCell<T>>` (#11002)
**Description:**
See https://github.com/swc-project/swc/pull/11001
I also remove `comments` since it's immutable. But we should be careful
not to clone entire parser and lexer (we can ensure this by benchmark) | diff --git a/crates/swc_ecma_lexer/src/common/input.rs b/crates/swc_ecma_lexer/src/common/input.rs
index 90750f0ce2..74cb730edd 100644
--- a/crates/swc_ecma_lexer/src/common/input.rs
+++ b/crates/swc_ecma_lexer/src/common/input.rs
@@ -33,7 +33,7 @@ pub trait Tokens<TokenAndSpan>: Clone + Iterator<Item = TokenAndSpan> {... | 10 | 34 | 38 |
cda08d196ef804764b74fdd99f58f4e73cb80495 | CPunisher | 2025-08-12T18:54:04 | perf(es/parser): Introduce checkpoint to reduce clone (#11001)
**Description:**
There could be no need to clone entire lexer and parser when calling
`try_parse_xxx` in typescript. Here introduces checkpoints which only
contains necessary data to recover from failed trials. This is also the
prerequisite for https://gi... | diff --git a/crates/swc_ecma_lexer/src/common/input.rs b/crates/swc_ecma_lexer/src/common/input.rs
index c65c103e3b..90750f0ce2 100644
--- a/crates/swc_ecma_lexer/src/common/input.rs
+++ b/crates/swc_ecma_lexer/src/common/input.rs
@@ -7,12 +7,17 @@ use crate::{common::syntax::SyntaxFlags, error::Error, lexer};
/// Clo... | 12 | 131 | 25 |
831eed527e2a21bed07ba9d2747b40e467fd78e3 | CPunisher | 2025-08-12T18:53:20 | fix(es/minifier): Fix compile error with `debug` feature (#10999)
**Description:**
Sorry, I didn't notice that in
https://github.com/swc-project/swc/pull/10997 because the github code
doesn't show the affected code | diff --git a/crates/swc_ecma_minifier/src/compress/optimize/iife.rs b/crates/swc_ecma_minifier/src/compress/optimize/iife.rs
index 3141650442..96b4c47df2 100644
--- a/crates/swc_ecma_minifier/src/compress/optimize/iife.rs
+++ b/crates/swc_ecma_minifier/src/compress/optimize/iife.rs
@@ -646,11 +646,17 @@ impl Optimizer<... | 2 | 14 | 8 |
79206f17d495eadd930df23f92fedaa5a418d90e | bohan | 2025-08-08T12:33:37 | perf(es/minifier): Use `bitflags` for `DropOpts` (#10990) | diff --git a/crates/swc_ecma_minifier/src/compress/pure/conds.rs b/crates/swc_ecma_minifier/src/compress/pure/conds.rs
index 06ec4701d7..25f96f2582 100644
--- a/crates/swc_ecma_minifier/src/compress/pure/conds.rs
+++ b/crates/swc_ecma_minifier/src/compress/pure/conds.rs
@@ -74,11 +74,7 @@ impl Pure<'_> {
} els... | 5 | 57 | 147 |
4f2ed0dd080dc68069ad7990f992a15a36ebb5de | bohan | 2025-08-07T08:00:06 | perf(es/minifier): Reduce clone (#10982) | diff --git a/crates/swc_ecma_minifier/src/compress/optimize/inline.rs b/crates/swc_ecma_minifier/src/compress/optimize/inline.rs
index 826c09edb8..7e0e735c9e 100644
--- a/crates/swc_ecma_minifier/src/compress/optimize/inline.rs
+++ b/crates/swc_ecma_minifier/src/compress/optimize/inline.rs
@@ -654,13 +654,12 @@ impl Op... | 1 | 11 | 10 |
91c60390b7623f164219dd6c91ef4c0cce8e4dfd | bohan | 2025-08-06T19:08:26 | refactor(es/parser): Remove useless methods (#10980) | diff --git a/crates/swc_ecma_lexer/src/common/parser/buffer.rs b/crates/swc_ecma_lexer/src/common/parser/buffer.rs
index edfe17d7e5..7c7ab53383 100644
--- a/crates/swc_ecma_lexer/src/common/parser/buffer.rs
+++ b/crates/swc_ecma_lexer/src/common/parser/buffer.rs
@@ -35,10 +35,8 @@ pub trait Buffer<'a> {
fn cur(&... | 3 | 11 | 37 |
7b0de75db31b6c28fca96ed6b18175324f562a97 | Donny/κ°λμ€ | 2025-08-06T10:06:18 | chore(ci): Fix CI (#10977) | diff --git a/bindings/Cargo.lock b/bindings/Cargo.lock
index bc2832de33..de1cb9c240 100644
--- a/bindings/Cargo.lock
+++ b/bindings/Cargo.lock
@@ -311,9 +311,9 @@ dependencies = [
[[package]]
name = "binding_macros"
-version = "33.0.0"
+version = "34.0.0"
source = "registry+https://github.com/rust-lang/crates.io-i... | 2 | 103 | 103 |
e400de3aca99d4a937c37219eae6c1303785b661 | bohan | 2025-07-31T07:58:33 | refactor(es/minifier): Remove useless branch (#10966)
This branch's functionality has been implemented:
https://github.com/swc-project/swc/blob/ccd3aaee82e8dba518f7b59618c00cb43cbf11cb/crates/swc_ecma_minifier/src/compress/optimize/evaluate.rs#L477-L480 | diff --git a/crates/swc_ecma_minifier/src/compress/optimize/evaluate.rs b/crates/swc_ecma_minifier/src/compress/optimize/evaluate.rs
index 88bc5896cc..0e98eaf0d6 100644
--- a/crates/swc_ecma_minifier/src/compress/optimize/evaluate.rs
+++ b/crates/swc_ecma_minifier/src/compress/optimize/evaluate.rs
@@ -7,8 +7,7 @@ use s... | 1 | 15 | 42 |
64750702c98e2aca6e3c0d9e4a34974cc38b16e5 | bohan | 2025-07-30T11:55:28 | perf(es/minifier): Reduce alloc (#10961) | diff --git a/crates/swc_ecma_minifier/src/compress/optimize/iife.rs b/crates/swc_ecma_minifier/src/compress/optimize/iife.rs
index 4182fbacfb..3141650442 100644
--- a/crates/swc_ecma_minifier/src/compress/optimize/iife.rs
+++ b/crates/swc_ecma_minifier/src/compress/optimize/iife.rs
@@ -564,15 +564,12 @@ impl Optimizer<... | 1 | 74 | 61 |
953f75fce4b594ee66f2339af6d347963c113da5 | bohan | 2025-07-30T08:44:56 | refactor(hstr): Remove needlesss unwrap (#10959) | diff --git a/crates/hstr/src/dynamic.rs b/crates/hstr/src/dynamic.rs
index 891d1b7db5..ad9244b194 100644
--- a/crates/hstr/src/dynamic.rs
+++ b/crates/hstr/src/dynamic.rs
@@ -3,10 +3,10 @@ use std::{
cell::RefCell,
ffi::c_void,
hash::{BuildHasherDefault, Hash, Hasher},
- mem::{forget, ManuallyDrop},
+... | 1 | 3 | 14 |
8cd5c587b358379df4d36def175a65aac42a12ec | bohan | 2025-07-29T09:57:36 | perf(es/minifier): Use bitflags for context of the `Pure` pass (#10953) | diff --git a/crates/swc_ecma_minifier/src/compress/pure/ctx.rs b/crates/swc_ecma_minifier/src/compress/pure/ctx.rs
index 6934da4247..802fb5f613 100644
--- a/crates/swc_ecma_minifier/src/compress/pure/ctx.rs
+++ b/crates/swc_ecma_minifier/src/compress/pure/ctx.rs
@@ -1,61 +1,52 @@
-use std::ops::{Deref, DerefMut};
-
us... | 6 | 170 | 221 |
b5e5e8c35abd4d04b90e18719d059242ed9b33eb | bohan | 2025-07-28T14:03:20 | perf(es/minifier): Remove needless clone (#10949) | diff --git a/crates/swc_ecma_usage_analyzer/src/analyzer/mod.rs b/crates/swc_ecma_usage_analyzer/src/analyzer/mod.rs
index 49a6810701..cdd3300e7d 100644
--- a/crates/swc_ecma_usage_analyzer/src/analyzer/mod.rs
+++ b/crates/swc_ecma_usage_analyzer/src/analyzer/mod.rs
@@ -95,13 +95,15 @@ where
where
F: FnOn... | 1 | 5 | 1 |
63172ef3b069f6e7ef301233ad6f421d18cd8307 | Donny/κ°λμ€ | 2025-07-26T01:43:39 | fix(es/minifier): Disallow types (#10945)
**Related issue:**
- https://github.com/swc-project/swc/issues/10944 | diff --git a/crates/swc_ecma_minifier/src/compress/hoist_decls.rs b/crates/swc_ecma_minifier/src/compress/hoist_decls.rs
index 713803a13d..2401325bbb 100644
--- a/crates/swc_ecma_minifier/src/compress/hoist_decls.rs
+++ b/crates/swc_ecma_minifier/src/compress/hoist_decls.rs
@@ -277,7 +277,7 @@ impl Hoister<'_> {
}
... | 23 | 34 | 34 |
a262eeb053265878333cf597f8c1f167a13c02b6 | bohan | 2025-07-25T08:22:19 | perf(es/parser): Reduce comparison (#10941) | diff --git a/crates/swc_ecma_lexer/src/common/parser/module_item.rs b/crates/swc_ecma_lexer/src/common/parser/module_item.rs
index 21b21e0e07..fa617d1042 100644
--- a/crates/swc_ecma_lexer/src/common/parser/module_item.rs
+++ b/crates/swc_ecma_lexer/src/common/parser/module_item.rs
@@ -348,10 +348,7 @@ fn parse_export<... | 2 | 1 | 7 |
c7f0e4d5e6c0d6492e750d662711f9b495bc280d | bohan | 2025-07-24T06:07:24 | perf(es/minifier): Remove pre-compress pass (#10932) | diff --git a/crates/swc_ecma_minifier/src/lib.rs b/crates/swc_ecma_minifier/src/lib.rs
index 409e87b7cd..ebf53693d8 100644
--- a/crates/swc_ecma_minifier/src/lib.rs
+++ b/crates/swc_ecma_minifier/src/lib.rs
@@ -44,7 +44,6 @@ use swc_common::{comments::Comments, pass::Repeated, sync::Lrc, SourceMap, Synta
use swc_ecma_... | 3 | 0 | 116 |
4eab8e89fd6c0b5f9ec8d8885acbd773764c2ea0 | bohan | 2025-07-22T05:46:15 | perf(es/minifier): Make `get_type` for `===` lazy (#10920) | diff --git a/crates/swc_ecma_minifier/src/compress/optimize/ops.rs b/crates/swc_ecma_minifier/src/compress/optimize/ops.rs
index 8ebe828fcc..19897778fb 100644
--- a/crates/swc_ecma_minifier/src/compress/optimize/ops.rs
+++ b/crates/swc_ecma_minifier/src/compress/optimize/ops.rs
@@ -56,12 +56,9 @@ impl Optimizer<'_> {
... | 1 | 2 | 5 |
400c9968c00d73c58f4df4c859e48902a1ca528f | bohan | 2025-07-22T04:57:32 | perf(es/lexer): Reduce query and comparison (#10919) | diff --git a/crates/swc_ecma_lexer/src/common/parser/expr.rs b/crates/swc_ecma_lexer/src/common/parser/expr.rs
index fc1b22d5fc..65046bb68c 100644
--- a/crates/swc_ecma_lexer/src/common/parser/expr.rs
+++ b/crates/swc_ecma_lexer/src/common/parser/expr.rs
@@ -1351,10 +1351,9 @@ fn parse_bin_op_recursively_inner<'a, P: P... | 2 | 11 | 9 |
e00c1783b0ed66e279b9adf42a1ae85c91d41a36 | bohan | 2025-07-21T16:21:44 | perf(es/parser): Reduce comparison (#10911) | diff --git a/crates/swc_ecma_lexer/src/common/parser/expr.rs b/crates/swc_ecma_lexer/src/common/parser/expr.rs
index a2ceb00e74..fc1b22d5fc 100644
--- a/crates/swc_ecma_lexer/src/common/parser/expr.rs
+++ b/crates/swc_ecma_lexer/src/common/parser/expr.rs
@@ -2301,8 +2301,6 @@ pub fn parse_primary_expr_rest<'a, P: Parse... | 2 | 0 | 4 |
145fba48acde32a04bfedf82735a3f661bc5deab | bohan | 2025-07-21T11:16:22 | perf(es/lexer): Reduce memory move (#10906) | diff --git a/crates/swc_ecma_parser/src/parser/input.rs b/crates/swc_ecma_parser/src/parser/input.rs
index 508b01724a..bec44a6eee 100644
--- a/crates/swc_ecma_parser/src/parser/input.rs
+++ b/crates/swc_ecma_parser/src/parser/input.rs
@@ -175,46 +175,57 @@ impl<'a, I: Tokens> swc_ecma_lexer::common::parser::buffer::Buf... | 1 | 13 | 2 |
92ca5ecd4591d0d9c3a5f874abbd6cdf780dd0fc | bohan | 2025-07-21T08:49:16 | perf(es/parser): Reduce check during parsing binding (#10905) | diff --git a/crates/swc_ecma_lexer/src/common/parser/ident.rs b/crates/swc_ecma_lexer/src/common/parser/ident.rs
index bf8822a93c..61f4b60e0c 100644
--- a/crates/swc_ecma_lexer/src/common/parser/ident.rs
+++ b/crates/swc_ecma_lexer/src/common/parser/ident.rs
@@ -89,23 +89,26 @@ pub fn parse_binding_ident<'a>(
) -> PRe... | 2 | 14 | 11 |
1ad85064acebbde83fc3bacf6d71e3f29a51d174 | CPunisher | 2025-07-21T08:48:33 | perf(es/lexer): Remove option for handler (#10881)
**Description:**
There's already an `ERR` byte handler | diff --git a/crates/swc_ecma_parser/src/lexer/mod.rs b/crates/swc_ecma_parser/src/lexer/mod.rs
index 99bba7416c..39d12a08e4 100644
--- a/crates/swc_ecma_parser/src/lexer/mod.rs
+++ b/crates/swc_ecma_parser/src/lexer/mod.rs
@@ -156,18 +156,7 @@ impl<'a> Lexer<'a> {
};
let handler = unsafe { *(&BYTE_H... | 2 | 78 | 91 |
27e548dbda7d285e1d3a6df343efd90a7f749681 | bohan | 2025-07-20T07:55:15 | refactor(es/parser): Remove unnecessary PResult (#10900) | diff --git a/crates/swc_ecma_lexer/src/common/parser/expr.rs b/crates/swc_ecma_lexer/src/common/parser/expr.rs
index 778f8ad73c..c5e5e25f1b 100644
--- a/crates/swc_ecma_lexer/src/common/parser/expr.rs
+++ b/crates/swc_ecma_lexer/src/common/parser/expr.rs
@@ -97,9 +97,9 @@ pub fn parse_array_lit<'a, P: Parser<'a>>(p: &m... | 3 | 34 | 33 |
0cc6743ce3efe3e764a2db980a7030d93114050a | Donny/κ°λμ€ | 2025-07-21T05:27:50 | feat(es/compiler): Improve structure (#10903)
**Description:**
I'll merge es2022 into compiler with a follow-up PR | diff --git a/Cargo.lock b/Cargo.lock
index 9e2f618edc..ca3b028496 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5118,7 +5118,9 @@ dependencies = [
name = "swc_ecma_compiler"
version = "0.1.0"
dependencies = [
+ "bitflags 2.6.0",
"swc_ecma_ast",
+ "swc_ecma_visit",
]
[[package]]
diff --git a/crates/swc_ecma_comp... | 4 | 55 | 3 |
d6566ee3d2649a68f8abfc5ffd0b01841f80e016 | Donny/κ°λμ€ | 2025-07-21T04:43:13 | refactor(es/compat): Initialize compiler API (#10902)
**Description:**
The compiler should merge all syntax lowering transforms | diff --git a/Cargo.lock b/Cargo.lock
index 52b0730447..9e2f618edc 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5114,6 +5114,13 @@ dependencies = [
"tracing",
]
+[[package]]
+name = "swc_ecma_compiler"
+version = "0.1.0"
+dependencies = [
+ "swc_ecma_ast",
+]
+
[[package]]
name = "swc_ecma_ext_transforms"
versio... | 3 | 28 | 0 |
064123b6b5e5741083e246ad4156dc848ba5a89f | bohan | 2025-07-16T13:42:40 | perf(es/parser): Remove duplicate check (#10874) | diff --git a/crates/swc_ecma_lexer/src/common/parser/ident.rs b/crates/swc_ecma_lexer/src/common/parser/ident.rs
index 8867f3924c..ea78bd8836 100644
--- a/crates/swc_ecma_lexer/src/common/parser/ident.rs
+++ b/crates/swc_ecma_lexer/src/common/parser/ident.rs
@@ -127,11 +127,17 @@ pub fn parse_opt_binding_ident<'a>(
) ... | 2 | 10 | 4 |
77393f80d0a59c6d136221935d439ba1d99d4385 | CPunisher | 2025-07-16T08:58:08 | refactor(es/lexer): Avoid passing `convert` (#10868)
**Description:**
The code is more intuitive and clearer. | diff --git a/crates/swc_ecma_lexer/src/common/lexer/mod.rs b/crates/swc_ecma_lexer/src/common/lexer/mod.rs
index 998f8f1702..6765d5eccf 100644
--- a/crates/swc_ecma_lexer/src/common/lexer/mod.rs
+++ b/crates/swc_ecma_lexer/src/common/lexer/mod.rs
@@ -1564,38 +1564,25 @@ pub trait Lexer<'a, TokenAndSpan>: Tokens<TokenAn... | 1 | 40 | 79 |
fe764608a5d27c41467102ef745d90940a033a7c | bohan | 2025-07-16T08:54:42 | perf(es/parser): Remove duplicate check (#10872) | diff --git a/crates/swc_ecma_lexer/src/common/parser/stmt.rs b/crates/swc_ecma_lexer/src/common/parser/stmt.rs
index 0df0650c98..27cd24726e 100644
--- a/crates/swc_ecma_lexer/src/common/parser/stmt.rs
+++ b/crates/swc_ecma_lexer/src/common/parser/stmt.rs
@@ -1334,15 +1334,6 @@ fn parse_stmt_internal<'a, P: Parser<'a>>(... | 1 | 0 | 9 |
d93ef647f29c7c2241adc28a8eb2b6511f054949 | bohan | 2025-07-16T07:17:53 | perf(es/parser): Reduce token query (#10869) | diff --git a/crates/swc_ecma_lexer/src/common/parser/expr.rs b/crates/swc_ecma_lexer/src/common/parser/expr.rs
index d0ba729d59..0fbe774549 100644
--- a/crates/swc_ecma_lexer/src/common/parser/expr.rs
+++ b/crates/swc_ecma_lexer/src/common/parser/expr.rs
@@ -1686,7 +1686,7 @@ pub(super) fn parse_for_head_prefix<'a>(p: ... | 1 | 13 | 5 |
4aefe0eb0645f711ec16c2bfdc32a105e19f0733 | CPunisher | 2025-07-16T05:36:11 | perf(es/lexer): Remove unnecessary check when reading keywords (#10866)
**Description:**
When handling keywords, we can make sure that the first byte is a valid ASCII character.
I will clean up the code if it's worth it | diff --git a/crates/swc_ecma_lexer/src/common/lexer/mod.rs b/crates/swc_ecma_lexer/src/common/lexer/mod.rs
index 038564ff3a..4df2108da2 100644
--- a/crates/swc_ecma_lexer/src/common/lexer/mod.rs
+++ b/crates/swc_ecma_lexer/src/common/lexer/mod.rs
@@ -2111,20 +2111,16 @@ pub trait Lexer<'a, TokenAndSpan>: Tokens<TokenAn... | 3 | 98 | 51 |
3ebf088cc88234c50e3924b1e9d0284d186f81ed | bohan | 2025-07-15T10:24:18 | perf(es/parser): Remove useless alloc (#10865) | diff --git a/crates/swc_ecma_lexer/src/common/parser/expr.rs b/crates/swc_ecma_lexer/src/common/parser/expr.rs
index dd13b7c4d3..d0ba729d59 100644
--- a/crates/swc_ecma_lexer/src/common/parser/expr.rs
+++ b/crates/swc_ecma_lexer/src/common/parser/expr.rs
@@ -2038,9 +2038,7 @@ fn parse_args_or_pats_inner<'a, P: Parser<'... | 1 | 3 | 9 |
c6ba5c263d0ab520e5253579213c02a6b647664b | bohan | 2025-07-15T09:56:36 | perf(es/lexer): Reduce comparison while reading numbers (#10864) | diff --git a/crates/swc_ecma_lexer/src/common/lexer/mod.rs b/crates/swc_ecma_lexer/src/common/lexer/mod.rs
index 8d7ac81813..038564ff3a 100644
--- a/crates/swc_ecma_lexer/src/common/lexer/mod.rs
+++ b/crates/swc_ecma_lexer/src/common/lexer/mod.rs
@@ -642,20 +642,20 @@ pub trait Lexer<'a, TokenAndSpan>: Tokens<TokenAndS... | 4 | 24 | 15 |
3bd9aadd27e22475e789ab393bc0318a6edbcb96 | bohan | 2025-07-15T08:28:10 | perf(es/parser): Reduce comparisons (#10862) | diff --git a/crates/swc_ecma_lexer/src/common/parser/expr.rs b/crates/swc_ecma_lexer/src/common/parser/expr.rs
index d7456570ae..dd13b7c4d3 100644
--- a/crates/swc_ecma_lexer/src/common/parser/expr.rs
+++ b/crates/swc_ecma_lexer/src/common/parser/expr.rs
@@ -2337,9 +2337,9 @@ pub fn parse_primary_expr_rest<'a, P: Parse... | 1 | 5 | 4 |
4897bfd6444fb12ea8a916765a47e3712072dc01 | bohan | 2025-07-14T13:29:17 | refactor(es/parser): Remove duplicate check for reservedness (#10850) | diff --git a/crates/swc_ecma_lexer/src/common/lexer/token.rs b/crates/swc_ecma_lexer/src/common/lexer/token.rs
index e4a49f5800..083f4cd7f8 100644
--- a/crates/swc_ecma_lexer/src/common/lexer/token.rs
+++ b/crates/swc_ecma_lexer/src/common/lexer/token.rs
@@ -185,7 +185,7 @@ pub trait TokenFactory<'a, TokenAndSpan, I: T... | 5 | 157 | 146 |
93b318f05c71b1a9e94a457fa93094cfb9116b4e | Qingyu Wang | 2025-07-14T13:26:39 | perf(swc_error_reporters): Avoid creating miette handler when no diagnostics (#10852)
**Description:**
Automatically prevent the creation of `miette::GraphicalReportHandler when no diagnostics are present.
**Related issue:**
See performance regression in https://github.com/web-infra-dev/rspack/pull/11006 | diff --git a/crates/swc_error_reporters/src/handler.rs b/crates/swc_error_reporters/src/handler.rs
index e28eb1f3dd..5e1a87eed2 100644
--- a/crates/swc_error_reporters/src/handler.rs
+++ b/crates/swc_error_reporters/src/handler.rs
@@ -87,10 +87,18 @@ impl ThreadSafetyDiagnostics {
skip_filename: bool,
... | 1 | 11 | 3 |
7c57fbb103baaa236d3c040e72d5cf65bc2b7ec4 | Donny/κ°λμ€ | 2025-07-14T06:00:28 | chore(bindings): Fix dependency issues | diff --git a/bindings/Cargo.lock b/bindings/Cargo.lock
index 7cfa4cda75..478e449330 100644
--- a/bindings/Cargo.lock
+++ b/bindings/Cargo.lock
@@ -244,7 +244,7 @@ dependencies = [
"bitflags 2.9.1",
"cexpr",
"clang-sys",
- "itertools 0.10.5",
+ "itertools 0.13.0",
"log",
"prettyplease",
"proc-macro2",
@@ -28... | 2 | 148 | 148 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.