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

Support ESM #95

Closed
sindresorhus opened this issue Mar 1, 2021 · 0 comments
Closed

Support ESM #95

sindresorhus opened this issue Mar 1, 2021 · 0 comments

Comments

@sindresorhus
Copy link
Collaborator

I have started to convert some of my packages to ESM and I noticed an issue:

index.test-d.ts:4:0
  ✖  2:7  Module "/Users/sindresorhus/dev/oss/array-union/index" can only be default-imported using the esModuleInterop flag

I think we should set esModuleInterop in tsd for now to work around TS's lack of ESM support.

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

No branches or pull requests

1 participant