Skip to content

Conversation

@eg-zhuravlev
Copy link

No description provided.

system: PerfKeeper;
};
};
const globalThis = typeof window === 'undefined' ? typeof global === 'undefined' ? this : global : window as GlobalThis;
Copy link
Contributor

Choose a reason for hiding this comment

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

Во, я просто не донес, сделай также как тут:
https://gist.github.com/RubaXa/078395065c3aa0ffee557fe072a70c57#file-global-ts-L3-L8

@adi-works
Copy link

adi-works commented Oct 13, 2020

What does it fix? I'm getting a strange error when trying to import this package as a polyfill:

import from '@perf-tools/performance';

image

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.

3 participants