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

fix: use default import for the library "file-type" to support ESM #87

Merged
merged 1 commit into from
Feb 19, 2023

Conversation

Abdulazeez-98
Copy link
Contributor

@Abdulazeez-98 Abdulazeez-98 commented Feb 18, 2023

Hi,
The library "file-type" utilises CommonJS and has a default export that contains everything. I think that's the reason why it is not possible to import one single function from it.

This resolves #86 . I tried replicating that issue on my machine and it occurs only when using ESM.
My regards.

@dan-online dan-online merged commit 8f6a0fc into dan-online:main Feb 19, 2023
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

Successfully merging this pull request may close these issues.

SyntaxError: Named export 'fromBuffer' not found.
2 participants