Skip to content

Conversation

@AbhiPrasad
Copy link
Member

@AbhiPrasad AbhiPrasad commented Jun 7, 2022

TextEncoderCommon is a type from lib.dom.d.ts. We don't want to
require users to set DOM types, so we vendor it in. It's a relatively
simple type, so we don't have to worry about potential conflicts or user
issues.

Fixes #5199

Ref: https://getsentry.atlassian.net/browse/WEB-952

`TextEncoderCommon` is a type from `lib.dom.d.ts`. We don't want to
require users to set DOM types, so we vendor it in. It's a relatively
simple type, so we don't have to worry about potenial conflicts or user
issues.
@AbhiPrasad AbhiPrasad requested review from lforst and lobsterkatie June 7, 2022 16:12
Copy link
Member

@lobsterkatie lobsterkatie left a comment

Choose a reason for hiding this comment

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

LGTM!

@github-actions
Copy link
Contributor

github-actions bot commented Jun 7, 2022

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 19.43 KB (added)
@sentry/browser - ES5 CDN Bundle (minified) 60.2 KB (added)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 18.23 KB (added)
@sentry/browser - ES6 CDN Bundle (minified) 53.82 KB (added)
@sentry/browser - Webpack (gzipped + minified) 19.99 KB (added)
@sentry/browser - Webpack (minified) 65.19 KB (added)
@sentry/react - Webpack (gzipped + minified) 20.02 KB (added)
@sentry/nextjs Client - Webpack (gzipped + minified) 43.95 KB (added)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 25.56 KB (added)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 24.11 KB (added)

@AbhiPrasad AbhiPrasad merged commit fb267e0 into master Jun 7, 2022
@AbhiPrasad AbhiPrasad deleted the abhi-textencoder-dom-type branch June 7, 2022 18:40
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.

Usage of TextEncoderCommon causes compiler error in a setup without DOM Library

3 participants