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

typescript: fix uppy package use with allowSyntheticImports: false #1396

Merged
merged 2 commits into from
Apr 4, 2019

Conversation

goto-bus-stop
Copy link
Contributor

Synthetic default imports allow you to import X from 'x' if 'x' is a
CommonJS module. Our uppy package relied on that (probably forgot to
update it in a previous patch). If users had set
allowSyntheticDefaultImports: false, they would not be able to use the
uppy package.

We should at some point go through the typings again and set everything to
the tightest options, because that'll work with the widest array of users,
but for now let's just unbreak this particular case.

Fixes #1395

Synthetic default imports allow you to `import X from 'x'` if `'x'` is a
CommonJS module. Our `uppy` package relied on that (probably forgot to
update it in a previous patch). If users had set
`allowSyntheticDefaultImports: false`, they would not be able to use the
`uppy` package.

We should at some point go through the typings again and set everything
to the tightest options, because that'll work with the widest array of
users, but for now let's just unbreak this particular case.

Fixes #1395
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