Skip to content

remove terser from react-compiler-runtime build#31326

Merged
poteto merged 1 commit into
facebook:mainfrom
henryqdineen:hqd-react-compiler-runtime-no-minify
Oct 22, 2024
Merged

remove terser from react-compiler-runtime build#31326
poteto merged 1 commit into
facebook:mainfrom
henryqdineen:hqd-react-compiler-runtime-no-minify

Conversation

@henryqdineen
Copy link
Copy Markdown
Contributor

Summary

This fixes a minor nit I have about the react-compiler-runtime package in that the published code is minified. I assume most consumers will minify their own bundles so there's no real advantage to minifying it as part of the build.

For my purposes it makes it more difficult to read the code, use patch-package (if needed), or diff two versions without referencing the source code on github or mapping it back to original source using the source maps.

How did you test this change?

I ran the build locally and looked at the result but did not run the code. It's a lot more readable except for the commonjs compatibility-related stuff that Rollup inserts.

@vercel
Copy link
Copy Markdown

vercel Bot commented Oct 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-compiler-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 22, 2024 7:56pm

@poteto
Copy link
Copy Markdown
Contributor

poteto commented Oct 22, 2024

thanks!

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.

3 participants