"Note: you will also need to install and enable @babel/plugin-syntax-object-rest-spread if you haven’t already"
I suggest adding a note that @babel/plugin-syntax-object-rest-spread is included in babel-preset-react-app, so the dependency is met in non-ejected CRA2 apps.
Also, I wanted to say thank you for providing this plugin as a macro. CRA1 apps + rewired worked pretty well, but so many plugins are broken bc of Webpack 4's new API. For non-ejected CRA2 apps, it looks like macros are emerging as the way to go, and it takes early adoption by maintainers like you to help move things forward. So, thanks! :)
This disclaimer might scare people off:
I suggest adding a note that @babel/plugin-syntax-object-rest-spread is included in babel-preset-react-app, so the dependency is met in non-ejected CRA2 apps.
Also, I wanted to say thank you for providing this plugin as a macro. CRA1 apps + rewired worked pretty well, but so many plugins are broken bc of Webpack 4's new API. For non-ejected CRA2 apps, it looks like macros are emerging as the way to go, and it takes early adoption by maintainers like you to help move things forward. So, thanks! :)