Hi all,
I have a problem with using cosmos:browserify + meteorhacks:npm and react-mfb package from npm.
Here’s my packages.json:
{
"externalify": "0.1.0",
"react-mfb": "0.3.0"
}
lib/app.browserify.options.json:
{
"transforms": {
"externalify": {
"global": true,
"external": {
"react": "React.require"
}
}
}
}
lib/app.browserify.js:
ReactMfb = require("react-mfb");
Then somewhere in a .jsx:
const {Menu, MainButton, ChildButton} = ReactMfb;
The weird part is that it doesn’t throw an error, I can see the components in the DOM, but they didn’t render correctly - it seems their CSS files are missing, but I’m just guessing.
Am I doing something wrong? Do I have to add something else to add the required styles?
Thanks!