diff options
author | William Lahti <wilahti@gmail.com> | 2018-06-28 06:53:04 -0700 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-28 15:53:04 +0200 |
commit | 3ea9a1c311c3e3c55fb95560d4dd99a77c52df4a (patch) | |
tree | d2c409d6c5f247cf0b1fc2d76bd1370fddd3fa3c /client/src/polyfills.ts | |
parent | 9e01e51099c2949036f29d01f7305dff4d2b8748 (diff) | |
download | PeerTube-3ea9a1c311c3e3c55fb95560d4dd99a77c52df4a.tar.gz PeerTube-3ea9a1c311c3e3c55fb95560d4dd99a77c52df4a.tar.zst PeerTube-3ea9a1c311c3e3c55fb95560d4dd99a77c52df4a.zip |
Replace angular-cli patch with something less risky (#742)
* Replace angular-cli patch with something less risky
* path.join() is needed, provide a naive implementation
* technically, webpack provided a polyfill for Buffer, we should too
* process polyfill matches webpack; peertube depends on nextTick
* polyfill for path to match webpack
* http/https polyfills as per webpack
Diffstat (limited to 'client/src/polyfills.ts')
-rw-r--r-- | client/src/polyfills.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/client/src/polyfills.ts b/client/src/polyfills.ts index 423a7b915..eec30760d 100644 --- a/client/src/polyfills.ts +++ b/client/src/polyfills.ts | |||
@@ -80,3 +80,9 @@ import 'zone.js/dist/zone' // Included with Angular CLI. | |||
80 | /*************************************************************************************************** | 80 | /*************************************************************************************************** |
81 | * APPLICATION IMPORTS | 81 | * APPLICATION IMPORTS |
82 | */ | 82 | */ |
83 | |||
84 | // global/process polyfills | ||
85 | |||
86 | ;(window as any).global = window; | ||
87 | ;(window as any).process = require('process/'); | ||
88 | ;(window as any).Buffer = require('buffer/').Buffer; | ||