Skip to content

fix(apm): Remove Performance references - #2495

Merged
HazAT merged 3 commits into
masterfrom
apm/fix-ts
Mar 13, 2020
Merged

fix(apm): Remove Performance references#2495
HazAT merged 3 commits into
masterfrom
apm/fix-ts

Conversation

@HazAT

@HazAT HazAT commented Mar 13, 2020

Copy link
Copy Markdown
Member

Fixes #2489
Fixes #2494

@HazAT
HazAT requested a review from kamilogorek as a code owner March 13, 2020 09:18
@HazAT HazAT self-assigned this Mar 13, 2020
@HazAT HazAT changed the title fix: Calling Performance to not require dom fix(apm): Remove Performance references Mar 13, 2020
Comment thread packages/utils/src/misc.ts Outdated
Comment on lines +378 to +380
// tslint:disable-next-line: no-unsafe-any
const perfHooks = dynamicRequire(module, 'perf_hooks');
// tslint:disable-next-line: no-unsafe-any

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Won't this work?

Suggested change
// tslint:disable-next-line: no-unsafe-any
const perfHooks = dynamicRequire(module, 'perf_hooks');
// tslint:disable-next-line: no-unsafe-any
const perfHooks = dynamicRequire(module, 'perf_hooks') as { performance: CrossPlatformPerformance };

@getsentry-bot

getsentry-bot commented Mar 13, 2020

Copy link
Copy Markdown
Contributor
Messages
📖

@sentry/browser bundle gzip'ed minified size: (ES5: 16.8838 kB) (ES6: 15.9219 kB)

📖 ✅ TSLint passed

Generated by 🚫 dangerJS against acd1d6f

@kamilogorek
kamilogorek self-requested a review March 13, 2020 09:33
@HazAT
HazAT merged commit 13ab8e5 into master Mar 13, 2020
@HazAT
HazAT deleted the apm/fix-ts branch March 13, 2020 10:48
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.

sentry v5.14.0, Cannot find name 'Performance' @sentry/node should not required typescript dom lib

3 participants