Closed monte-hayward closed 9 years ago
The library currently doesn't support CommonJS module loading, or even UMD for that matter.
@loopj Would you be alright for me to UMD this bad boy? Also, how exactly is this accomplished for Bugsnag, I was under the impression you guys use browserify/webpack?
@jacobmarshall that would be awesome, I'm not super familiar with UMD stuff so would gladly merge a PR
Hey @monte-hayward, would you mind changing the react-inline-svg
section of your package.json
to something like the following - and letting me know if all is working? I just want to verify that the changes I have made, work in your setup.
{
"dependencies": {
"react-inline-svg": "jacobmarshall/react-inline-svg#umd"
}
}
If you're using browserify, it should be all good, I haven't tested with webpack.
Cheers, Jacob
@loopj, could you do a release so we can benefit from this fix directly in NPM, please?
code
Uncaught ReferenceError: React is not defined (anonymous function) @ react-inline-svg.js:45