You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For lit.dev, we'd like to have a global TS/JS switch (JavaScript docs with TS/JS switch lit.dev#332), and one of the obstacles for that is converting and maintaining every code example in both TS and JS. We can't just run tsc on the examples, because compiled decorator code is not human readable. With this transform, though, the majority of examples could be automatically converted and maintained going forward.
We're also planning a transform that compiles to a more optimized form, e.g. where reactive property getter/setters are defined directly instead of by the lit runtime. Previously we had planned to write this transform to directly transform decorators, but if we have the intermediate transform described here, this second transform could instead consume readable javascript, which would then allow the optimized transform to work on code that was directly written with javascript too.
The text was updated successfully, but these errors were encountered:
E.g. transform from:
to:
Why?
For lit.dev, we'd like to have a global TS/JS switch (JavaScript docs with TS/JS switch lit.dev#332), and one of the obstacles for that is converting and maintaining every code example in both TS and JS. We can't just run tsc on the examples, because compiled decorator code is not human readable. With this transform, though, the majority of examples could be automatically converted and maintained going forward.
We're also planning a transform that compiles to a more optimized form, e.g. where reactive property getter/setters are defined directly instead of by the lit runtime. Previously we had planned to write this transform to directly transform decorators, but if we have the intermediate transform described here, this second transform could instead consume readable javascript, which would then allow the optimized transform to work on code that was directly written with javascript too.
The text was updated successfully, but these errors were encountered: