-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
ref(node): Refactor node integrations to functional syntax #9959
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
Conversation
packages/node/src/index.ts
Outdated
|
||
import * as Handlers from './handlers'; | ||
import * as NodeIntegrations from './integrations'; | ||
import * as TracingIntegrations from './tracing/integrations'; | ||
|
||
const INTEGRATIONS = { | ||
...CoreIntegrations, | ||
...NodeIntegrations, | ||
...(NodeIntegrations as { | ||
Console: Integration; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TS complains about this otherwise, somehow 😬 with TS4023: Exported Variable <x> has or is using name <y> from external module but cannot be named
. No idea, but I think this is fine for now...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feels like converting from react class components to functional components.
2643b46
to
5765909
Compare
size-limit report 📦
|
3a6e9ae
to
2c2b356
Compare
b58856e
to
9c16a78
Compare
9c16a78
to
9d70bd5
Compare
Getting there...