dotnet-websharper / core

WebSharper - Full-stack, functional, reactive web apps and microservices in F# and C#
https://websharper.com
Apache License 2.0
589 stars 52 forks source link

Sitelet prod bundling STEP 1 #1361

Closed Jand42 closed 6 months ago

Jand42 commented 8 months ago

To create production-ready bundles, we need to allow creating non-JS-module bundles that WebSharper sites can use.

For first implementation, every non-abstract Web.Control type, every pre-translated F# quotation, and every function marked with [<JavaScriptExport>] will be re-exported in a root.js file that can be used to execute a bundler on like Webpack/Rollup.

Then the Sitelet runtime will use this bundle instead of modules.