mayu-live / framework

Mayu is a live updating server-side component-based VDOM rendering framework written in Ruby
https://mayu.live
GNU Affero General Public License v3.0
130 stars 4 forks source link

Fix CSS source maps #51

Closed aalin closed 1 year ago

aalin commented 1 year ago

I don't know how CSS source maps work, and they don't work in Mayu.

Would be cool to have source maps for components too somehow.

Here's one implementation to look at: https://github.com/ruby2js/ruby2js/blob/master/lib/ruby2js/serializer.rb#L302-L409

aalin commented 1 year ago

Best option is probably to use https://lightningcss.dev/ via magnus.