I have a library that has a single point where I need to distinguish the js backend from the dotnet bcl:
Regex in dotnet uses the \G switch where javascript uses the sticky flag which is not available in dotnet.
I found not any way to conditionally switch between the 2 code parts that allow that (using jsnative).
I tried to multitarget the library for net9 and netstandard2.0 but then the fable project that references the shared library complains that the shared library (also) targets net 9.
So how can I share a library and have conditional code (for fable and dotnet) in that library?
I also tried to just share the files of the library. That caused other problems: When the files are not below the project apparently inclusion of Fable.Core no longer works, this is a weird thing in its own.