You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add real long-running swc compile --watch support with incremental --out-dir updates and --out-file rebuilds
add --copy-files and --strip-leading-paths to the Rust CLI
normalize --out-dir path resolution, including absolute inputs, and cover the regressions with issue tests
Why
Issue #4017 called out a few gaps in the Rust CLI compared to the older behavior: --watch was exposed but did not actually keep running, compatibility flags for copying files and stripping leading paths were missing, and out-dir path handling regressed for some inputs. This keeps the current default dist/src/... layout while restoring the requested compatibility options and watch behavior.
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
No successful run was found on main (857c0b6) during the generation of this report, so 5986411 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
swc compile --watchsupport with incremental--out-dirupdates and--out-filerebuilds--copy-filesand--strip-leading-pathsto the Rust CLI--out-dirpath resolution, including absolute inputs, and cover the regressions with issue testsWhy
Issue #4017 called out a few gaps in the Rust CLI compared to the older behavior:
--watchwas exposed but did not actually keep running, compatibility flags for copying files and stripping leading paths were missing, andout-dirpath handling regressed for some inputs. This keeps the current defaultdist/src/...layout while restoring the requested compatibility options and watch behavior.Validation
git submodule update --init --recursivecargo fmt --allcargo test -p swc_cli_implcargo clippy --all --all-targets -- -D warningsFixes #4017