swc-project
swc
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
fix(es/module): add opt-in symlink-preserving resolver (#11801) **Description:** This adds an opt-in `NodeImportResolver` constructor that preserves symlink paths when rewriting module specifiers. Today, `NodeImportResolver` always canonicalizes resolved real paths before converting them back into relative import specifiers. That behavior is still useful for the Bazel-related fixes around `jsc.paths`, so this PR keeps it as the default. However, it breaks callers that intentionally preserve symlink locations and need rewritten imports to stay relative to the symlink path instead of the canonicalized real path. This PR keeps the existing default constructor unchanged and adds a dedicated preserve-symlinks constructor for callers that need `resolve.symlinks: false`-style behavior. It also adds a regression test that creates a symlinked source file and asserts the opt-in boundary explicitly: the default resolver rewrites to the canonical target path, while the new constructor preserves the symlink path. **Related issue:** Closes #11584
main
15 minutes ago
Create good-lemons-study.md
kdy1/fix-11584-preserve-symlink-paths
1 hour ago
fix(es/parser): Add Flow strip RN and RNW regression corpus (#11799) **Description:** - Fix the Flow strip path so enum lowering does not panic on defaulted or opaque Flow enum members that do not have explicit initializers. - Close the parser and strip gaps exposed by the Hermes and React Native corpora, including static `constructor` class members, typed arrow object returns, `match` arm `=>` separators, computed class fields after typed fields, and JSX raw `>` handling. - Add a shared Flow strip regression helper, a `flow_strip_projects` integration test that runs `Compiler.process_js_file`, and pinned React Native / React Native Web Flow corpora with sync metadata and a refresh script.
main
1 hour ago
fix(es/module): add opt-in symlink-preserving resolver
kdy1/fix-11584-preserve-symlink-paths
1 hour ago
Create strong-kids-crash.md
kdy1:kdy1/flow-strip-react-native-corpus
1 hour ago
fix(es/jsx): Preserve quoted JSX attribute newlines (#11796) ## Summary - preserve line terminators in quoted JSX attribute literals instead of folding them like JSX text - add parser, React transform, and end-to-end regressions for issue #11550 ## Why `transform_jsx_attr_str` was normalizing quoted JSX attribute strings with JSX text whitespace rules, even though the parser already preserved the original line terminators. That changed `"bruh\nbruh"` into `"bruh bruh"` and could cause downstream hydration mismatches. ## Impact Quoted JSX attributes like `data-anything="bruh\nbruh"` now compile to JS strings that preserve the embedded newline, matching Babel/TypeScript behavior. Fixes #11550
main
2 hours ago
Create ninety-cougars-flash.md
kdy1:kdy1/support-full-es-version-parsing-in-minify
2 hours ago
fix(es/minifier): Support full ES version parsing in minify (#11800) **Description:** This updates minify's `ecma` parsing so it accepts the full set of ECMAScript versions already modeled by SWC instead of stopping at 2020. It expands terser `ecma` parsing to accept: - terser numeric forms like `3`, `5`, `6`, and `2015+` - numeric strings like `"2023"` - named values already understood by SWC like `es2023` and `esnext` The compiler minify path, the transform `jsc.minify` path, and the Node minifier binding all now accept those newer values as well. Invalid `ecma` values keep the previous panic-style behavior; this PR only broadens the set of accepted versions.
main
2 hours ago
Latest Branches
CodSpeed Performance Gauge
0%
fix(es/module): add opt-in symlink-preserving resolver
#11801
1 hour ago
7a06408
kdy1/fix-11584-preserve-symlink-paths
CodSpeed Performance Gauge
0%
fix(es/parser): Add Flow strip RN and RNW regression corpus
#11799
1 hour ago
0ba7d16
kdy1:kdy1/flow-strip-react-native-corpus
CodSpeed Performance Gauge
0%
fix(es/minifier): Support full ES version parsing in minify
#11800
2 hours ago
1e50fc9
kdy1:kdy1/support-full-es-version-parsing-in-minify
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs