Enabling "loose" transformations in @babel/preset-env may make your application considerably smaller. I shaved off roughly 230.9 KB, or 16.2% from my bundle.Remove prop-types from your production bundle.Enable new JSX transform.

5m read timeFrom dev.to
Post cover image
Table of contents
Enable "loose" transformations in @babel/preset-envRemove prop-types from your production bundleEnable new JSX transformMinify your HTMLUse babel-plugin-styled-components ( styled-components users only)Wrap createGlobalStyle contents in css ( styled-components users only)Replace react-lifecycles-compat with an empty mockReplace classnames with clsxMissing something?
1 Comment

Sort: