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
Expose lodash to node-webkit #419
Conversation
in node-webkit lodash is not exposed, I modified the condition |
On further review I believe this is a dup of #363. |
The problem is not when using require but when including _ using script tag. |
Based on the usage examples it looks like using the script tag is not what's promoted. Use the node |
Yeah, but I don't generate the .nw every time I just use script tag to use refresh and make testing easier |
If I modified our exports then it would break the common usage for node-webkit. For your needs you could run the custom build tool to specify that you only want to export to the global via: lodash mobile exports=global |
Sure, that's a good solution |
👍 is there a way to make whatever I mean, it took me 2hs to finally find this post, could be nice to have it integrated in the next version :P |
@tomasdev Not that I know of. Including |
Then I would consider this as an issue for webkit-node where the "automatic switching context" of V8 is not doing its job properly. BTW, I think we could do |
Also, using the UnderscoreJS library doesn't trigger this error, so I guess the fix needs to be part of the "as drop in of underscore replacement" version. |
…nit-extras to work in node-webkit. [closes #419]
@tomasdev Thanks. I dug in a bit more and found that jQuery and Underscore work without issue so I hammered on it a bit and fixed it so Lo-Dash works out of the box with node-webkit too 😀 |
@jdalton Nice. |
Yay!! Open source FTW. Thank you very much. |
See lodash/lodash#419. Remove the now-unused `isHostType` function.
Where would that file be? The ones on the website still don't work but underscore does. |
@jasonfutch |
…nit-extras to work in node-webkit. [closes #419]
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
No description provided.