Skip to content

Commit 827fcc8

Browse files
authored
fix(build): Ensure full stacktraces when running rollup (#4833)
By default, node [cuts stacktraces down to the final 10 frames[1]. Sometimes, though, the stuff you're interested in is below that. This removes the cap for errors generated when running `rollup` (which turned out to be necessary to diagnose a problem encountered during work on the new build process). [1] https://nodejs.org/api/errors.html#errorstacktracelimit
1 parent 5542518 commit 827fcc8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rollup.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import replace from '@rollup/plugin-replace';
1111
import { terser } from 'rollup-plugin-terser';
1212
import typescript from 'rollup-plugin-typescript2';
1313

14+
Error.stackTraceLimit = Infinity;
15+
1416
/**
1517
* Helper functions to compensate for the fact that JS can't handle negative array indices very well
1618
*

0 commit comments

Comments
 (0)