Skip to content

refactor(fmt): simplify SWC Next postprocessing - #528

Merged
chenjiahan merged 7 commits into
mainfrom
soon-codex/simplify-swc-next-postprocess
Sep 29, 2026
Merged

chenjiahan merged 7 commits into
mainfrom
soon-codex/simplify-swc-next-postprocess

Conversation

@SoonIter

@SoonIter SoonIter commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

Motivation

The formatter adapter retains unsupported Hack pipeline handling and template-shape checks inherited from Prettier, plus repeated validation of parser-produced child nodes.

Changes

Remove those branches and repeated child-node checks while retaining parser-root validation and existing formatting normalization. Document differences from upstream with links pinned to the original port's Prettier commit.

Cover nested-template normalization, type-cast parentheses, formatting stability, and single-member unions with comments through observable output tests.

Validation: package/native builds, 42 adapter tests, lint/typecheck/formatting, and spelling passed. All 638 successful corpus cases retained identical output; additional embedded-language, range, and cursor checks also matched.

Copilot AI lite review requested due to automatic review settings September 28, 2026 11:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-28T11:35:57.880106Z 7e2eee7 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7e2eee7
Status: ✅  Deploy successful!
Preview URL: https://1ab210a8.rstack-cli.pages.dev
Branch Preview URL: https://soon-codex-simplify-swc-next.rstack-cli.pages.dev

View logs

@SoonIter
SoonIter requested a review from chenjiahan September 29, 2026 03:47

@chenjiahan chenjiahan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@chenjiahan
chenjiahan merged commit 7386979 into main Sep 29, 2026
5 checks passed
@chenjiahan
chenjiahan deleted the soon-codex/simplify-swc-next-postprocess branch September 29, 2026 03:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants