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

chore(typescript): turn on esModuleInterop #2743

Closed

Conversation

JoelEinbinder
Copy link
Contributor

@@ -15,11 +15,11 @@
* limitations under the License.
*/

import * as crypto from 'crypto';
import crypto from 'crypto';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this work? Reading MDN, this syntax means "import default", while we need "import everything as a namespace".

@aslushnikov
Copy link
Collaborator

How come we have to align our typescript compilation flags with our dependencies? What happens if proxy-https-agent drops this option from their tsconfig in the subsequent release - will we drop it as well here?

@aslushnikov
Copy link
Collaborator

Closing in favor of #2777

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.

3 participants