vega-frontend-monorepo/apps/token/src/polyfills.ts
Artur 53c72b0eae
fix: walletconnect does not work (#935)
* fix: walletconnect does not work

* fix: walletconnect does not work

added buffer

* chore: moved global from env-config.js
2022-08-03 14:56:40 +01:00

13 lines
428 B
TypeScript

/**
* Polyfill stable language features. These imports will be optimized by `@babel/preset-env`.
*
* See: https://github.com/zloirock/core-js#babel
*/
import 'core-js/stable';
import 'regenerator-runtime/runtime';
// eslint-disable-next-line @typescript-eslint/no-var-requires
window.Buffer = require('buffer/').Buffer;
// eslint-disable-next-line no-undef, no-global-assign, no-native-reassign
window.global = globalThis;