Skip to content

Testing less dependencies with swc #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed

Conversation

GuiDevloper
Copy link
Owner

@GuiDevloper GuiDevloper commented Apr 25, 2022

Working example: https://github.com/GuiDevloper/nullstack-tsx-example
Deploys: Vercel | Netlify | Heroku

Bundlephobia comparison:

old new
16.8 MB 8.7 MB

Nullstack Babel/SWC Benchmark

CNA Template

Compiler Start Cache Start Build Caching Build Cache Build
Babel 17s 5s 17s 25s 6s
SWC 8s 4s 10s 15s 6s

Docs

Compiler Start Cache Start Build Caching Build Cache Build
Babel 63s 5s 77s 87s 11s
SWC 53s 4s 49s 56s 11s

Refs

CRA issue: Consider replacing Babel with SWC

SWC issue: No support for export default from "foo"?

SWC Config

@GuiDevloper GuiDevloper deleted the less-deps-swc branch April 25, 2022 05:36
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