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

Functions exported as default not picked up #40

Open
prescottprue opened this issue Nov 15, 2017 · 0 comments
Open

Functions exported as default not picked up #40

prescottprue opened this issue Nov 15, 2017 · 0 comments
Labels

Comments

@prescottprue
Copy link

prescottprue commented Nov 15, 2017

First off, thanks for super useful cli. Have been needing this myself for so long I was about to make it, then bumped into this!

The issue I am having is that exporting a function as default does not appear in created index.js. However async functions and object exports work as expected:

export default { someThing, someOtherThing } // WORKS => export { default as things }
export default async function someFunc() {} // WORKS => export { default as someFunc }
export default function someOtherFunc() {} // DOES NOT WORK => (no output)
@gajus gajus added the question label Nov 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants