Skip to content

Commit 5c9c653

Browse files
authored
feat(@angular/cli): use standard stackTraceLimit (#5284)
Sometime very long ago we set infinite stack traces and never took them out. This PR sets infinite stack traces only on dev setups.
1 parent 1c2f361 commit 5c9c653

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/bootstrap-local.js

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ const path = require('path');
66
const ts = require('typescript');
77

88

9+
Error.stackTraceLimit = Infinity;
10+
911
global.angularCliIsLocal = true;
1012
global.angularCliPackages = require('./packages');
1113

packages/@angular/cli/lib/cli/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const UI = require('../../ember-cli/lib/ui');
1212
const Watcher = require('../../ember-cli/lib/models/watcher');
1313
const path = require('path');
1414

15-
Error.stackTraceLimit = Infinity;
1615

1716
module.exports = function(options) {
1817

0 commit comments

Comments
 (0)