9 lines
146 B
TypeScript
9 lines
146 B
TypeScript
|
import { Buffer } from 'buffer'
|
||
|
|
||
|
// @ts-ignore
|
||
|
import process from 'process/browser'
|
||
|
|
||
|
// Polyfill
|
||
|
window.Buffer = Buffer
|
||
|
window.process = process
|