elringus / bootsharp

Compile C# solution into single-file ES module with auto-generated JavaScript bindings and type definitions

Home Page:https://bootsharp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Migrate to the new JS interop layer

elringus opened this issue · comments

It looks like at some point (.NET 7?) a new JS interop layer will be introduced:

They merged those PR's and added samples of the new interop usage dotnet/runtime#74371

I've looked into the new interop a bit and found an issue which I believe is blocking the migration: the new interop uses source generators, while our solution also generates stuff and it's currently not possible to chain them. It looks like the feature is being considered, but not in the works yet (dotnet/roslyn#57239), so it may take a while.