We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f47652 commit 98add1dCopy full SHA for 98add1d
templates/app/client/polyfills.js
@@ -13,7 +13,11 @@ import 'core-js/es7/reflect';
13
14
<%_ if(filters.ts) { _%>
15
// Typescript emit helpers polyfill
16
-import 'ts-helpers';<% } %>
+import 'ts-helpers';
17
+
18
+interface IPolyFillErrorConstructor extends ErrorConstructor {
19
+ stackTraceLimit: any;
20
+}<% } %>
21
22
if(!ENV) {
23
var ENV = 'development';
@@ -23,8 +27,10 @@ if(ENV === 'production') {
27
// Production
24
28
} else {
25
29
// Development
26
-
- Error.stackTraceLimit = Infinity;
30
31
+ <%_ if(filters.ts) { _%>
32
+ (<IPolyFillErrorConstructor>Error).stackTraceLimit = Infinity;<% } else { %>
33
+ Error.stackTraceLimit = Infinity;
34
+ <% } %>
35
// require('zone.js/dist/long-stack-trace-zone');
-}
36
+}
0 commit comments