Skip to content

Remove recast/ast-types deps and optimize dynamic JS attribute handling#440

Merged
Boshen merged 1 commit intotailwindlabs:mainfrom
Dunqing:Remove-recast/ast-types-deps-and-optimize-dynamic-JS-attribute-handling
Feb 5, 2026
Merged

Remove recast/ast-types deps and optimize dynamic JS attribute handling#440
Boshen merged 1 commit intotailwindlabs:mainfrom
Dunqing:Remove-recast/ast-types-deps-and-optimize-dynamic-JS-attribute-handling

Conversation

@Dunqing
Copy link
Copy Markdown
Contributor

@Dunqing Dunqing commented Feb 5, 2026

  • Replace recast/ast-types usage in dynamic JS attribute sorting with the existing AST visit helper and Prettier’s Babel parser.
  • Remove recast, ast-types, and jsesc dependencies and related build patching.

After this, the build artifact was reduced by 500 kb

@Boshen Boshen merged commit 6443185 into tailwindlabs:main Feb 5, 2026
1 check passed
@Dunqing Dunqing mentioned this pull request Feb 5, 2026
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.

2 participants