fix: Accept partial plugin options
Resolves #9
Currently the PluginOptions exported by babel-plugin-react-compiler expects most keys to be populated but in reality the babel plugin accepts partial objects, so it would be better if defineReactCompilerLoaderOption accepted Partial<PluginOptions>.
defineReactCompilerLoaderOption({ target: '17' }) is valid but the types won't accept it.
As a workaround, users can just set options: { target: '17' }, but then you lose typing.
Maybe the PR should be opened to the upstream instead. IIRC they are using zod, so this should be very easy to update.
Closing, since this kind of types update should be submitted to the upstream (facebook/react) instead.
Probably resolved by https://github.com/facebook/react/pull/34550