Skip to content
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

Finding unused deps based on a transpiled file #52

Closed
tnrich opened this issue Oct 19, 2015 · 2 comments
Closed

Finding unused deps based on a transpiled file #52

tnrich opened this issue Oct 19, 2015 · 2 comments

Comments

@tnrich
Copy link

tnrich commented Oct 19, 2015

Hey there,

I'm using JSX in my code which, to my understanding, messes with detective's ability to parse the require statements correctly and figure out what's used and what isn't.

I'm just wondering if there is an easy way to point npm-check at my webpack-bundled file (which contains no JSX), and have detective correctly parse that and tell me what's used/unused.

Thanks for the excellent tool!

@dylang
Copy link
Owner

dylang commented Oct 20, 2015

npm-check doesn't use detective anymore because of that issue. It should work fine on the non-transpiled files that are using import from syntax. If you are seeing otherwise, can you share some code that exhibits the issue?

I'm not planning on supporting bundled files because it will be too difficult to figure out what dependencies were bundled in.

@dylang dylang closed this as completed Oct 20, 2015
@tnrich
Copy link
Author

tnrich commented Oct 20, 2015

It's actually jsx that is not being parsed correclty I believe

On Mon, Oct 19, 2015, 8:41 PM Dylan Greene notifications@github.com wrote:

Closed #52 #52.


Reply to this email directly or view it on GitHub
#52 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants