-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broken with Browserify #50
Comments
Would be nice to have it work w/ browserify, and there are other options aside from removing all server-side code. If there are truly differences between a browser build and what's used in node, you can provide a separate browser version via the |
Well, in this case you wouldn't even need to provide two different versions. This version will work fine in both Browser and Server, it's just that the above code essentially recreates For now i'm just concating the js file, but eventually i need to fork this and fix the issue. I can't find a reason for the above filesystem calls :/ |
+1 |
This also bums me out, anybody have a fork out there already before I go make one? |
+1 |
This causes it to fail with webmake as well. Wrapping the require in a try-catch would be sufficient as a quick fix. Not sure if that would help browserify or not. |
+1 |
I don't think so, browserify uses static analysis, not runtime evaluation. On Thu, Apr 17, 2014 at 4:42 PM, Erik Rasmussen [email protected]:
|
+1 |
Just use marked. Showdown is clearly not maintained.
|
Same problem with webpack. |
Any progress on this front? It's been a year and a half with no response. |
+1 for progress or an update on this... |
i have applied the @rjmackay pull requrest in my fork : no more browserify or webpack errors . |
I'm currently looking into this. Showdown will have a major rewriting as keeping up with the perl version doesn't make much sense now. Since we'll probably move each Regardless, the ideal way to approach the problem is abstracting the |
It's fixed in the showdown2 branch. |
fixed in eae5f0e |
I attempted to use showdown with browserify and ran into a failure. The failure is due to Showdown trying to access the file system, based on the existence of require/etc.
My main question is.. why, why is it even doing this? If we look at the code in question..
Why is
fs
even being used here? This seems like a complex solution for something that a simpleindex.js
file would handle just fine. On top of that, if anindex.js
file was used then Browserify would work out of the box.The text was updated successfully, but these errors were encountered: