Skip to content

Commit 27f5ee1

Browse files
committed
fix buffer issue
1 parent b9d41a1 commit 27f5ee1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/web/src/polyfills.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ import 'core-js/es/string';
3030
import 'core-js/es/symbol';
3131

3232
import 'zone.js';
33+
import {Buffer} from 'buffer';
3334

3435
(window as any).global = window;
3536
(window as any).process = {browser: true, env: {}};
36-
(window as any).Buffer = (window as any).Buffer || require('buffer').Buffer;
37+
(window as any).Buffer = (window as any).Buffer || Buffer;

0 commit comments

Comments
 (0)