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(apm): Remove Performance references #2495

Merged
merged 3 commits into from
Mar 13, 2020
Merged

fix(apm): Remove Performance references #2495

merged 3 commits into from
Mar 13, 2020

Conversation

HazAT
Copy link
Member

@HazAT HazAT commented Mar 13, 2020

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 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
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
Copy link
Contributor

getsentry-bot commented Mar 13, 2020

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