Skip to content

Shrink bundle size#1653

Merged
SutuSebastian merged 8 commits intocore/maintenancefrom
shrink-bundle-size
Feb 5, 2026
Merged

Shrink bundle size#1653
SutuSebastian merged 8 commits intocore/maintenancefrom
shrink-bundle-size

Conversation

@SutuSebastian
Copy link
Collaborator

@SutuSebastian SutuSebastian commented Feb 5, 2026

Changes

  • drop AST parsers in favor of oxc-parser

before

Screenshot 2026-02-05 at 12 02 11

after

Screenshot 2026-02-05 at 12 02 03

- use `oxc-parser` for AST parsing
- remove previous AST related packages
- remove unused packages
- update some packages
@SutuSebastian SutuSebastian self-assigned this Feb 5, 2026
@vercel
Copy link

vercel bot commented Feb 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
flowbite-react Ready Ready Preview, Comment Feb 5, 2026 9:41am
flowbite-react-storybook Ready Ready Preview, Comment Feb 5, 2026 9:41am

Request Review

@changeset-bot
Copy link

changeset-bot bot commented Feb 5, 2026

⚠️ No Changeset found

Latest commit: efd2d40

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.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 5, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch shrink-bundle-size

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@SutuSebastian SutuSebastian requested a review from rluders February 5, 2026 10:04
@SutuSebastian SutuSebastian marked this pull request as ready for review February 5, 2026 10:05
@SutuSebastian SutuSebastian merged commit ff5471e into core/maintenance Feb 5, 2026
3 checks passed
@SutuSebastian SutuSebastian deleted the shrink-bundle-size branch February 5, 2026 10:10
SutuSebastian added a commit that referenced this pull request Feb 9, 2026
* bump `bun` version

* migrate `tsup` to `tsdown`

* up storybook

* up storybook vite

* up packages

* run format

* Shrink bundle size (#1653)

* shrink bundle size:
- use `oxc-parser` for AST parsing
- remove previous AST related packages
- remove unused packages
- update some packages

* add tests for `compound-components` transformer

* use oxc-parser types

* infer types

* move `removeReactImport` to it's own file, add tests

* dedupe tests

* enhance `addToConfig` to inline/multiline detection and indentation

* infer types

* classnames -> twMerge

* remove redundant type cast

* fix typecheck

* up packages

* fix(plugin~modernjs): use new plugin API

* fix build

* add changesets

* Enhance compound-components transformer to support import alias preservation and improved import handling
- add tests for new functionality including import sorting and alias retention
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.

1 participant