Skip to content

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