Skip to content

Commit

Permalink
fix mt
Browse files Browse the repository at this point in the history
  • Loading branch information
elringus committed Jan 5, 2025
1 parent f847397 commit c2fc238
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion samples/react/backend/Backend.Prime/Options.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
namespace Backend.Prime;

public record Options(int Complexity, bool Multithreading);
public record Options (int Complexity, bool Multithreading);
2 changes: 1 addition & 1 deletion samples/react/backend/Backend.Prime/Prime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Backend.Prime;
// Implementation of the computer service that compute prime numbers.
// Injected in the application entry point assembly (Backend.WASM).

public class Prime(IPrimeUI ui) : IComputer
public class Prime (IPrimeUI ui) : IComputer
{
private static readonly SemaphoreSlim semaphore = new(0);
private readonly Stopwatch watch = new();
Expand Down
2 changes: 1 addition & 1 deletion src/cs/Bootsharp/Build/Bootsharp.targets
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
<BootsharpDotNetFile Include="$(BootsharpBuildDirectory)/dotnet.js"/>
<BootsharpRuntimeFile Include="$(BootsharpBuildDirectory)/dotnet.runtime.js"/>
<BootsharpNativeFile Include="$(BootsharpBuildDirectory)/dotnet.native.js"/>
<BootsharpWorkerFile Include="$(BootsharpBuildDirectory)/dotnet.native.worker.js"/>
<BootsharpWorkerFile Include="$(BootsharpBuildDirectory)/dotnet.native.worker.mjs"/>
</ItemGroup>
<RemoveDir Directories="$(BootsharpBinariesDirectory);$(BootsharpTypesDirectory)"/>
<Copy Condition="'$(BootsharpEmbedBinaries)' != 'true'" SourceFiles="@(BootsharpWasmFiles)"
Expand Down
2 changes: 1 addition & 1 deletion src/cs/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Version>0.4.0-alpha.41</Version>
<Version>0.4.0-alpha.42</Version>
<Authors>Elringus</Authors>
<PackageTags>javascript typescript ts js wasm node deno bun interop codegen</PackageTags>
<PackageProjectUrl>https://sharp.elringus.com</PackageProjectUrl>
Expand Down
4 changes: 2 additions & 2 deletions src/js/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export async function buildConfig(resources: BootResources, root?: string): Prom
...resources.assemblies.map(resolveAssembly)
]);
const mt = !embed && (await import("./dotnet.g")).mt;
if (mt) assets.push(await resolveModule("dotnet.native.worker.js", "js-module-threads"));
return { mainAssemblyName: resources.entryAssemblyName, assets };
if (mt) assets.push(await resolveModule("dotnet.native.worker.mjs", "js-module-threads"));
return { assets, mainAssemblyName: resources.entryAssemblyName };

async function resolveWasm(): Promise<AssetEntry> {
return {
Expand Down

0 comments on commit c2fc238

Please sign in to comment.