ayoayco / McFly

[🚧 PoC] Back to the Basics. Into the Future. 😱
https://mcfly.js.org
MIT License
70 stars 3 forks source link

Feat(core): write client asset files #20

Open ayoayco opened 11 months ago

ayoayco commented 11 months ago

This opens up new possibilities, which McFly should support.

Currently we only assemble the HTML response on each route request, putting things on the HTML head as needed. For example, when we see WebComponent base class is used, we insert an import from unpkg CDN.

In this issue, we support writing to client asset files with unstorage's useStorage then build & insert import maps in the document head.