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

impr: better esm support, no necessity for setting allowSyntheticDefaultImports and esModuleInterop #11343

Merged
merged 2 commits into from
Feb 13, 2022

Conversation

Uzlopak
Copy link
Collaborator

@Uzlopak Uzlopak commented Feb 7, 2022

The original PR had merge conflicts, so I implemented again. :)

This PR improves the esm support.

you can now import mongoose in typescript with

import mongoose from "mongoose";

without being forced to set esModuleInterop or allowSyntheticDefaultImports to true.

I tested it with those settings set to true, and it doesnt break. So backwards compatibility, that means somebody set those settings to true in his existing project, is given.

@Uzlopak Uzlopak changed the title impr: better esm support, no necessity for setting allowSyntheticDefa… impr: better esm support, no necessity for setting allowSyntheticDefaultImports and esModuleInterop Feb 7, 2022
Copy link
Collaborator

@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

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

Thanks 👍

@vkarpov15 vkarpov15 added this to the 6.2.2 milestone Feb 13, 2022
@vkarpov15 vkarpov15 merged commit ce2c816 into Automattic:master Feb 13, 2022
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.

None yet

2 participants