From df5cf19737380d83bad5ade3cc982caa7a3ad04c Mon Sep 17 00:00:00 2001 From: Carlos Faria Date: Fri, 10 Mar 2017 23:05:49 +0000 Subject: [PATCH] build(@angular/cli): Enable crypto Webpack uses `crypto-browserify` to make this work on the browser. Furthermore, a [Web Crypto API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API) is coming. Fix: https://github.com/angular/angular-cli/issues/1548 --- packages/@angular/cli/models/webpack-configs/common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@angular/cli/models/webpack-configs/common.ts b/packages/@angular/cli/models/webpack-configs/common.ts index 11c6409e77ab..c202899ea02c 100644 --- a/packages/@angular/cli/models/webpack-configs/common.ts +++ b/packages/@angular/cli/models/webpack-configs/common.ts @@ -98,7 +98,7 @@ export function getCommonConfig(wco: WebpackConfigOptions) { node: { fs: 'empty', global: true, - crypto: 'empty', + crypto: true, tls: 'empty', net: 'empty', process: true,