AlexxNB / tinro

Highly declarative, tiny, dependency free router for Svelte's web applications.
MIT License
675 stars 30 forks source link

Use "invariant" for errors #8

Closed frederikhors closed 4 years ago

frederikhors commented 4 years ago

We can use https://github.com/zertosh/invariant to avoid descriptive errors in production and save some KB.

AlexxNB commented 4 years ago

Currently there are only few bytes of the error messages. Not necessary.