vrugtehagel / yozo

A custom element library for simple, robust and readable components
https://yozo.ooo
5 stars 0 forks source link

Add sourcemaps #2

Closed vrugtehagel closed 5 months ago

vrugtehagel commented 5 months ago

Debugging component definitions is currently not very nice; browsers handle the anonymous functions a bit differently and it can be hard to figure out where an error came from.

Basically, Yozo needs sourcemaps. The lib builds will not get sourcemaps, because they need to be generated client-side.

vrugtehagel commented 5 months ago

Currently not looking to implement this, for two main reasons:

Instead, for now, I'll add comments to the generated functions saying where they were generated from.