gajus / gajus/create-index

Functions exported as default not picked up

Open
#40 0 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
277
Forks
86
PR merge metrics
No merged PRs in 30d

Description

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:

```js
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)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.