react-compiler-webpack
react-compiler-webpack copied to clipboard
The webpack/rspack loader for React Compiler
Hello, I was following the README and realized `defineReactCompilerLoaderOption` wasn't doing anything. I believe this was the original intent of the function. Apologies for not writing any tests, I wasn't...
the readme says `// React Compiler options goes here` but im only seeing `babelTransFormOpt` as a field and nothing else. [the compiler docs suggest](https://react.dev/learn/react-compiler#using-the-compiler-effectively) there should be a `sources` field...
Resolves #9 Currently the [`PluginOptions`](https://github.com/facebook/react/blob/428ab8200128d9421828dbe644c3448d21ea8c45/compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Options.ts#L49) 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`...