Avatar for the swc-project user
swc-project
swc
BlogDocsChangelog

Performance History

Latest Results

fix(swc_common): Fix sourcemap panic for multibyte mapping positions (#11918) **Description:** This makes source map generation robust when a raw mapping points inside a UTF-8 multibyte character. The builder now normalizes such positions to the start of the character before calculating UTF-16 source columns, so assertion-enabled builds do not panic on mappings like the MUI box-drawing comment case seen in Next.js CI. The existing `calc_utf16_offset` assertions are kept intact; only the source map builder input is normalized. The regression test covers both a 3-byte box-drawing character and a 4-byte emoji interior byte position, and verifies that emitted source columns point at the character start. Validation: - `git submodule update --init --recursive` - `cargo test -p swc_common --features sourcemap source_map_clamps_mappings_inside_multibyte_chars` - `cargo test -p swc_common source_map` - `cargo test -p swc_common` - `cargo fmt --all` - `cargo clippy --all --all-targets -- -D warnings` - Next.js PR 94157 scratch checkout: rebuilt assertion native with patched `swc_common 21.0.1`, then `material-ui.test.ts` dev-webpack e2e passed without the `BytePos(658)` panic.
main
2 hours ago
add changeset for sourcemap panic fix
kdy1/fix-sourcemap-multibyte-mapping-panic
2 hours ago
fix sourcemap multibyte mapping panic
kdy1/fix-sourcemap-multibyte-mapping-panic
2 hours ago
fix(es/decorators): handle import types in decorator metadata (#11916) **Description:** Fixes a legacy decorator metadata panic when a decorated TypeScript member uses an inline import type such as `import("./Message").Message`. The metadata serializer now treats `TsImportType` as an unresolvable transpile-only type and emits `Object`, matching TypeScript's runtime metadata behavior. The catch-all serializer path also falls back to `Object` instead of panicking on well-formed TS type nodes, and bigint literal metadata now follows the existing `BigInt` constructor fallback. Added legacy metadata fixtures for import types on properties, methods, constructors, parenthesized/generic/union/intersection forms, and bigint literal metadata. Validation: - `git submodule update --init --recursive` - `UPDATE=1 cargo test -p swc_ecma_transforms --all-features --test decorators legacy_metadata_tests__fixture__legacy_metadata__issues__11915 -- --include-ignored` - `cargo test -p swc_ecma_transforms --all-features --test decorators legacy_metadata_tests__fixture__legacy_metadata__issues__11915 -- --include-ignored` - `cargo test -p swc_ecma_transforms --all-features --test decorators legacy_metadata_tests -- --include-ignored` - `cargo test -p swc_ecma_transforms_proposal` - `cargo test -p swc_ecma_transforms` - `cargo fmt --all` - `cargo clippy --all --all-targets -- -D warnings` Note: `cargo test -p swc_ecma_transforms --all-features` was also attempted locally, but exec tests requiring `mocha` could not run because `mocha` is not installed on PATH in this environment. **Related issue:** Closes #11915
main
2 days ago
chore: add changeset for decorator metadata fix
kdy1/fix-11915-decorator-metadata
2 days ago
fix(es): handle import types in decorator metadata
kdy1/fix-11915-decorator-metadata
2 days ago

Latest Branches

CodSpeed Performance Gauge
-2%
fix(swc_common): Fix sourcemap panic for multibyte mapping positions#11918
2 hours ago
9380609
kdy1/fix-sourcemap-multibyte-mapping-panic
CodSpeed Performance Gauge
0%
feat(ecma/react-compiler): Add React Compiler#11917
10 hours ago
0e96637
feat/react-compiler
CodSpeed Performance Gauge
0%
2 days ago
2452aa8
kdy1/fix-11915-decorator-metadata
© 2026 CodSpeed Technology
Home Terms Privacy Docs