compdemocracy / polis

:milky_way: Open Source AI for large scale open ended feedback
https://pol.is
GNU Affero General Public License v3.0
754 stars 173 forks source link

Fixed: TypeScript linenumbers on server stacktraces #1685

Closed ballPointPenguin closed 1 year ago

ballPointPenguin commented 1 year ago

Closes https://github.com/compdemocracy/polis/issues/1382

Full credit to https://github.com/SebastianRuan

Rebase and clean-up from original PR

NOTE: This is currently configured to only run if devMode === true. However I don't think running in production is a problem since this is a server concern and would not be getting sent to browsers.

ballPointPenguin commented 1 year ago
Screenshot 2023-05-15 at 16 33 31 Screenshot 2023-05-15 at 16 33 47
xeeg commented 1 year ago

I think we'd like to have meaningful linenumbers in production as well. Are there any particular drawbacks or costs to sourcemap?