Replies: 1 comment
-
I don't have enough context about how your project is structured but broadly speaking this is what a bundler for StyleX needs to do:
So, if all your files are being bundled by both the server and client webpack configs, you can configure either one of them to use the StyleX plugin and just use the Babel plugin in the other one. If, however, if the two webpack configs deal with files are that are partially exclusive, (like with RSCs), you'll need to do something custom and I suggest using the CLI in that case instead. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use webpack ssr to render react. That mean I have to file
webpack.server.dev.js
andwebpack.client.dev.js
Should I add stylex config to
webpack.server.dev.js
? This is mywebpack.server.dev.js
file :Beta Was this translation helpful? Give feedback.
All reactions