Skip to content
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

Replace ts-loader and terser with swc #11740

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

agatemosu
Copy link
Contributor

No description provided.

@peppy
Copy link
Member

peppy commented Dec 13, 2024

Would be nice to have a bit of context for this in the opening post.

@notbakaneko
Copy link
Collaborator

notbakaneko commented Dec 13, 2024

I don't think we're going to be simply changing our tooling "just because" (and definitely not for being the new in-thing or whatever)

@nanaya
Copy link
Collaborator

nanaya commented Dec 13, 2024

apparently it cut off build time.

System Build Before After Speedup
dev dev 10 7 3
dev prod 22 14 8
gha prod 42 24 18

(all in seconds)

I haven't checked the output or anything else.

@agatemosu
Copy link
Contributor Author

Sorry for not including an opening post, the reason for the change is to make builds faster.

The output of swc is smaller than ts.

excluding .map including .map
ts 9128 KB 18288 KB
swc 8512 KB 18448 KB
diff -616 KB +160 KB

@nanaya
Copy link
Collaborator

nanaya commented Dec 19, 2024

seems mostly fine but that there's a duplicate target config may mean it'll be forgotten at one point...

also the build time is just a tiny portion for github action and on dev it's only the first build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants