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

fix(types): Vendor minimal type for localforage in Offline integration #3508

Merged
merged 1 commit into from
May 6, 2021

Conversation

lobsterkatie
Copy link
Member

@lobsterkatie lobsterkatie commented May 5, 2021

The localforage package (upon which our Offline integration depends) uses commonJS-style exports. This means that in order for our SDK to build successfully, and in order for any project using both us and Typescript to build successfully, either we have to use require in our integration or use esModuleInterop in our tsconfig (and force our users to do the same).

Since this has been an issue multiple times over, seemingly no matter which way we (or others) try to fix it*, this PR bypasses the types supplied by localforage and uses a custom type.

So, hopefully for the last time:
Fixes #2853
Fixes #2868
Fixes #3091
Fixes #3401

*See #2856, #2864, #2861, #3101, #3294, dualinventive#1, and #3403. Not to mention this PR.

@lobsterkatie lobsterkatie requested a review from kamilogorek as a code owner May 5, 2021 19:00
@github-actions
Copy link
Contributor

github-actions bot commented May 5, 2021

size-limit report

Path Size
@sentry/browser - CDN Bundle (gzipped) 20.63 KB (+0.01% 🔺)
@sentry/browser - Webpack 21.5 KB (0%)
@sentry/react - Webpack 21.53 KB (0%)
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped) 27.92 KB (+0.01% 🔺)

Copy link
Member

@HazAT HazAT left a comment

Choose a reason for hiding this comment

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

🤞

@HazAT HazAT enabled auto-merge (squash) May 6, 2021 07:32
@HazAT HazAT disabled auto-merge May 6, 2021 07:32
@HazAT HazAT merged commit 4092d66 into master May 6, 2021
@HazAT HazAT deleted the kmclb-vendor-localforage-type branch May 6, 2021 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants