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

ref: Use allowSyntheticDefaultImports for integrations to fix localforage … #3294

Closed
wants to merge 1 commit into from

Conversation

mac89
Copy link
Contributor

@mac89 mac89 commented Mar 2, 2021

Fixes #3101

Redo of #3180.

I think this fix should work. In #2853 the real issue seems to be the inclusion of // @ts-ignore: Module '"localforage"' has no default export.. Using allowSyntheticDefaultImports makes that @ts-ignore unnecessary.

@mac89 mac89 requested a review from kamilogorek as a code owner March 2, 2021 07:36
@kamilogorek
Copy link
Contributor

The problem with this solution is that it will work correctly for our builds, however, it'll push the responsibility to any TS user, requiring them to use synthetic imports as well, which is not something we want people to do.

@mac89
Copy link
Contributor Author

mac89 commented Mar 15, 2021

How about using "esModuleInterop": true, instead? It'll do the same and I've seen it being used in other tconfigs within this repository.

@kamilogorek
Copy link
Contributor

@mac89 #3403 sorry it took so long :)

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.

2 participants