0.0.3 • Published 2 years ago

silent-dxt-js v0.0.3

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

@s4tk/dxt

This is a clone of Robin Appelman's dxt.js, except with the following line manually removed from the built squish.js file.

process["on"]("uncaughtException",(function(ex){if(!(ex instanceof ExitStatus)){throw ex}}));

This line is problematic because it will catch all uncaught exceptions and blame them on squish.js, resulting in the entire minified squish.js library being output to the console every time your project has an unhandled exception, which looks like this:

Screenshot of Cluttered Console

I take no credit whatsoever for dxt.js or squish.js - this package just gets rid of a minor issue that has been bugging me for ages.