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

Support for precinct es6.mixedImports #70

Open
prime-optimus opened this issue Sep 22, 2017 · 3 comments
Open

Support for precinct es6.mixedImports #70

prime-optimus opened this issue Sep 22, 2017 · 3 comments

Comments

@prime-optimus
Copy link

prime-optimus commented Sep 22, 2017

Is there any support for precinct es6.mixedImports in dependency-tree cli?

@mrjoelkemp
Copy link
Collaborator

Hey @prime-optimus! Thanks for asking.

There currently isn't support for doing that via the cli, but it could be added here https://github.com/dependents/node-dependency-tree/blob/master/bin/cli.js#L19. Any ideas on how the cli command should look like for that?

@idutta2007
Copy link

could not get es6.mixedImports to work. When calling dependencyTree(options), I set options.detectiveConfig to { es6: { mixedImports: true } ) and it did not work. Precinct by itself works fine with this option. It is dependency-tree that seems to be ignoring this option.

@idutta2007
Copy link

Well, the cause of this issue is, in fact, precinct. precinct() honors the es6 option but precinct.paperwork() does not. To see it call precinct and precinct.paperwork with the above es6 option with es6/imports and commonjs/requires in the same javascript file.

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

3 participants