-
Notifications
You must be signed in to change notification settings - Fork 50.5k
[DevTools] Minify backend #34507
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
[DevTools] Minify backend #34507
Conversation
| optimization: { | ||
| minimize: false, | ||
| minimize: !__DEV__, | ||
| minimizer: [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same options as in packages/react-devtools-extensions/webpack.config.js. I'll merge these two configs once they're similar enough.
2682f93 to
3f701f7
Compare
| __DEV__: true, | ||
| __DEV__, | ||
| __PROFILE__: false, | ||
| __DEV____DEV__: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like a mistake. react-devtools-extensions/webpack.config.js doesn't define that var either.
When we disabled minification for the backend in #19369, we didn't have sourcemaps. As of #28730 we do so we can minify it again.
Minification isn't just about reducing parsed size but also about reducing runtime overhead via various compiler optimizations. We only use Terser at the moment but should use Closure in the future.