issues when importing react-native-web from multiple bundles
support for react-native-web is done (same API, just import @roguejs/app/client.native and @roguejs/app/server.native) however, there's an issue with server-rendering critial css if you're using webpack (which most people are, specially since we recommend rogue with razzle) because it doesn't use require.cache when compiling to the Node.js target, instead it uses it's own installed modules cache which causes problems with singleton states if the code comes from multiple bundles
this issue was discovered with react-native-web/nextjs, for details see: https://github.com/necolas/react-native-web/issues/1079 https://spectrum.chat/next-js/general/singleton-issue-when-transpiling-local-modules~ba78d3a3-4ab3-48ef-9b77-956642dfbdb1?m=MTUzNjY3MTEzMDI0NQ==
for now, we'll recommend setting up programmatically. you can just look at packages/app/native-web to see how, but i'll also add it to the examples
I opened up an issue in razzle: https://github.com/jaredpalmer/razzle/issues/868
looks like the above is actually a separate issue, and the issue is we were importing react-native-web rather than react-native which I'm guessing result in two different runtimes
but when we import react-native, it causes an error likely becuase the babl plugin doesnt work with transpiled files
TypeError: (0 , _unstableNativeDependencies.injectEventPluginsByName) is not a function