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

Package doesn't export a function when importing as commonjs module #7

Closed
loarca opened this issue Dec 20, 2019 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@loarca
Copy link
Owner

loarca commented Dec 20, 2019

Since it's an ES Module it exports the download function as a default export, BUT typescript translates that by adding a .default property which is assigned the exported function.

@loarca loarca added the bug Something isn't working label Dec 20, 2019
@loarca loarca closed this as completed in 8359636 Dec 20, 2019
@loarca loarca changed the title Package doesn't export a function Package doesn't export a function when using require() Dec 20, 2019
@loarca loarca changed the title Package doesn't export a function when using require() Package doesn't export a function when importing as commonjs module Dec 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant