From 3ea9a1c311c3e3c55fb95560d4dd99a77c52df4a Mon Sep 17 00:00:00 2001 From: William Lahti Date: Thu, 28 Jun 2018 06:53:04 -0700 Subject: 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 --- client/tsconfig.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'client/tsconfig.json') diff --git a/client/tsconfig.json b/client/tsconfig.json index cb6d39245..60c343867 100644 --- a/client/tsconfig.json +++ b/client/tsconfig.json @@ -20,7 +20,13 @@ "baseUrl": "src", "paths": { "@app/*": [ "app/*" ], - "video.js": [ "../node_modules/video.js/dist/alt/video.core.js" ] + "video.js": [ "../node_modules/video.js/dist/alt/video.core.js" ], + "fs": [ "./shims/noop" ], + "http": [ "./shims/http" ], + "https": [ "./shims/https" ], + "path": [ "./shims/path" ], + "stream": [ "./shims/noop" ], + "crypto": [ "./shims/noop" ] } } } -- cgit v1.2.3