8000 Functions exported as default not picked up · Issue #40 · gajus/create-index · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Functions exported as default not picked up #40
Open
@prescottprue

Description

@prescottprue

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0