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

ref(admin): Switch to esbuild #6700

Merged
merged 1 commit into from
Jan 2, 2025
Merged

ref(admin): Switch to esbuild #6700

merged 1 commit into from
Jan 2, 2025

Conversation

untitaker
Copy link
Member

@untitaker untitaker commented Dec 23, 2024

webpack takes more than a minute 30s, esbuild takes 2 seconds. esbuild has
reasonable defaults wrt building css imports, webpack needs two
additional plugins for that.

esbuild has no file-watching support, but node has. since the build is
now fast, we can just do a full rebuild when any file changes.

there are other, newer, cooler runtimes (bun, rome, biome, idk), but
esbuild has not changed in the past 2 years and is the one I know.

@untitaker untitaker requested a review from a team as a code owner December 23, 2024 16:44
webpack takes more than a minute, esbuild takes 2 seconds. esbuild has
reasonable defaults wrt building css imports, webpack needs two
additional plugins for that.

esbuild has no file-watching support, but node has. since the build is
now fast, we can just do a full rebuild when any file changes.

there are other, newer, cooler runtimes (bun, rome, biome, idk), but
esbuild has not changed in the past 2 years and is the one I know.
@@ -19,4 +19,6 @@ else
unset PS1
fi

export PATH="$PWD/snuba/admin/node_modules/.bin/:$PATH"
Copy link
Member Author

@untitaker untitaker Dec 23, 2024

Choose a reason for hiding this comment

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

not necessary and unrelated to this switch. being able to run jest directly is nice

@untitaker untitaker merged commit aa9f9fa into master Jan 2, 2025
31 checks passed
@untitaker untitaker deleted the esbuild branch January 2, 2025 13:27
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