dillon1000/react
Commit
Browse files Configure rollup to strip comments and whitespace
For now this configures rollup to strip out comments in DEV builds and whitespace. Unfortunately there's no easy way to do this in just terser alone or other minifiers/manglers, so I had to add prettier as well to re-format the minified code. This does make the build a little bit slower: ``` before: yarn build 118.96s user 12.38s system 185% cpu 1:10.81 total after: yarn build 121.55s user 12.90s system 183% cpu 1:13.17 total ``` Eventually I would like to have a similar setup to React's rollup config where we can have DEV and prod builds. After the repo merge we could probably share or reuse bits of React's rollup config.
Changed paths5 files
First-parent comparisoncompiler/packages/babel-plugin-react-forget/package.json ModifiedM compiler/packages/babel-plugin-react-forget/rollup.config.js ModifiedM compiler/packages/eslint-plugin-react-compiler/package.json ModifiedM compiler/packages/eslint-plugin-react-compiler/rollup.config.js ModifiedM compiler/yarn.lock ModifiedPatch
Files changed
Rendering syntax-highlighted changes…