-
Notifications
You must be signed in to change notification settings - Fork 321
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
Using ES6 code inside require.js module (AMD) causes dependencies to not show #84
Comments
Thanks for reporting @Urauth! Mind supplying an example code nippet or a failing test (if you have time)? |
Sorry for taking couple days to answer. A for-of loop breaks it for example. I used as an example var x = [1,2,3,4] for(var i of x){ |
Thanks for the info @Urauth! Seems like we have an outdated version of amdetective (we're using 0.0.2 while the latest is 0.2.1). There may have been a bump to esprima 2 during that time (which handles es6). Mind trying to bump the version of amdetective here https://github.com/pahen/madge/blob/master/package.json#L27 locally and seeing if it works? If so, a PR with the update would be very appreciated. Thanks! |
No idea if I did it right or not but I couldn't get it to work. I am pretty much a complete novice on node modules like this. |
@Urauth not a problem! I opened a PR with the fix here: #90. Some steps that I took:
Then it was a matter of writing a test and submitting the PR. Once the PR gets merged and a release gets cut, your issue should be fixed. Thanks again for contributing! |
If you use ES6 code in require.js it shows that the module has no dependencies.
The text was updated successfully, but these errors were encountered: