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 debug with npm packages STEP 3 #1408

Open Jand42 opened 2 months ago

Jand42 commented 2 months ago

Last piece needed for working with Sitelets using module-based JS. For local debug mode, for readability and quick iteration, it would be best if one-file-per-class readable .js files are used. However, browsers can't handle npm package imports as is, because it's underdefined (the packages-lock.json file and the node_modules folder are not accessible through the localhost server).

We need to provide either an import map or an integration for a localhost prebundler like Vite.