-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Bundled React is having worse performance #2951
Comments
I don't know why your code is slow. I recommend using a profiler to figure this out. The esbuild repo is not the right place to get help with debugging your code. |
Update, changing it to minify improves this to 160ms, the esbuild is the problem |
the code that results from the bundle is not great, if I change the bundler to webpack the issue is gone... |
It's not clear from this issue description that there's anything wrong with esbuild here, so I'm marking this as |
I'm closing this issue because there isn't enough information to know if this is a problem with esbuild or not. We can reopen it later if it becomes clear that this is indeed a problem with esbuild. Note that when |
Hi,
I've recently came across an issue with React, when in development mode react was really slow.
I've tried everything, until in a desperate move I've loaded my app using react-scripts, which uses webpack, and the problem was gone.
The bundler is compiling a react into a non-optimized code
This simple code:
with these bundler settings:
if I instead use the script tags provided by react, the application behaves as expected...
Maybe there is something wrong with my configuration, or is this a know issue?
Thanks in advance
The text was updated successfully, but these errors were encountered: