-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
Shims break with browserify noParse option #17
Comments
Seems to me like this is a browserify issue. Could we please verify that this is intended? If it is browserify-shim could fall back to window, i.e.: |
I don't think this is a browserify issue. It's doing the correct thing and not adding node globals when I ask it not to parse shimmed files. It should be possible to re-write the shim to not depend on What browserify will do when processing shimmed files is insert a statement like |
Or maybe to be safe insert a |
Happened to look through Is that the cause of your issue? If yes, please file it there. Also with |
I think that this was fixed with an unrelated change sometime in the past few months. I don't use grunt-browserify, but I no longer have this problem and have successfully added back everything to noParse. I don't remember exactly when that happened, but it definitely works for me now. |
This is still an issue, as demonstrated by this zip. Download it, run |
@bclinkinbeard thanks for tracking this down. Ccould you please put this zip up in a repo, so we can look and comment on the code? I'm confused why |
Pushed to https://github.com/bclinkinbeard/noParse-bug-demo I honestly don't know enough about Browserify's internals to know what the proper fix or root cause is. It may very well be a Browserify issue. The /cc @substack |
Thanks I will have a look, maybe I can implement a workaround for now (as mentioned above) although I'm pretty sure that |
Are there any news on this issue (has anyone filed an issue with browserify)? |
I just discovered that defining the shims with the |
@bclinkinbeard unfortunately not much, I'll have a look when I get a chance. Could you check though if this possibly got fixed with the latest browserify version? Thanks. |
Still happening with b-shim 3.5.0 and Browserify 4.1.6 |
@bclinkinbeard thanks. |
@thlorenz has there been any movement on this? |
Here's a repo to recreate the issues: https://github.com/knownasilya/ember-browserify-test |
I have the same issue.
when I add jquery and bootstrap to noparse list, browserify-shims transforms code and adds However, if I don't use noparse, browserify-shims wraps |
Same thing here 👍 |
👍 It's high priority issue for many UMD-like modules |
I'd like to be able to speed up my browserify processing time by using noParse on large shimmed dependencies. Unfortunately the shim itself depends on
global
which doesn't get added to the file unless it's parsed. causing the error...I found another example of this issue here .
The text was updated successfully, but these errors were encountered: