Closed rschristian closed 8 months ago
@rschristian FYI I made a stack trace parsing library a while back for Preact DevTools for the hook detection part. It should work too https://www.npmjs.com/package/errorstacks
Oh nice, didn't know.
Any advantage over stack-trace
(beyond maybe CJS support)?
errorstacks
works for other engines too, not just v8. But that probably doesn't matter here.
Closes #115
stack-trace
is shipped exclusively as ESM, so this switches to importing via dynamic import to fix CJS consumers.