react-tweet
react-tweet copied to clipboard
Remix, missing css modules
I'm trying to use this library in my react remix project, and having trouble importing the css.
I updated the remix config to include react-tweet
/** @type {import('@remix-run/dev').AppConfig} */
export default {
ignoredRouteFiles: ["**/.*"],
serverDependenciesToBundle: [
/react-tweet/,
],
};
And Remix CSS bundling is enabled.. but the CSS seems to be missing from the <Tweet/> component.
<Tweet id="1448382615904346113" />
output:
The same happens with Astro. It is possible to make it work in dev by setting vite.ssr.noExternal: 'react-tweet', but when you build the project, CSS is not bundled.
@joshyboyrules have you solve this?