-
Notifications
You must be signed in to change notification settings - Fork 149
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
Improving --no-browser-globals #29
Comments
@rgrove
Can you test again with |
@mattdesl 1.7.1 gets further, and the shebang parse error is gone now! Still getting lots of When I look at the files that are causing the errors, the one thing that stands out is that none of them end with a newline. I added an ending newline to one of them and, sure enough, the SyntaxError disappeared. Here's the latest console output, in case it helps:
|
Ok, I managed to get this universal webpack boilerplate running/debugging inside I will probably need some isolated test to fix the above bugs since it isn't clear where the problem is. Thanks again! |
Update: the "Unexpected end of input" was just a silly typo on the way I was wrapping modules in a closure (forgot a new line). So at least now that bug is fixed in 1.7.3. |
Hooray! As of 1.7.3, devtool runs my app perfectly. Thanks for all the help, @mattdesl! |
Awesome! I am going to close this. I'm sure something else will come up eventually, feel free to post a new issue when/if it breaks. 😄 |
hi @mattdesl I have react/webpack project, and use tape for testing. Testing works great with tape, but sometimes I really needed devtool to trace error. Do you think it is possible to use it with above stack. An example with any of the react boiler plates out there would be awesome. thanks a ton for your help. |
Since #23 I have added
--no-browser-globals
which was a first attempt at solving some issues with node modules that rely onwindow
/document
/ etc (i.e. doing some node-type code ifwindow
is undefined).This causes some new issues in some cases:
https://twitter.com/yaypie/status/692127048773550080
The problem is basically here:
https://github.com/zloirock/core-js/blob/270fabccd38e0210caf1a4ffc44ca328880fba69/modules/_global.js
Where
this
in that context evaluates towindow
...The text was updated successfully, but these errors were encountered: