Skip to content

[wasm] Make WasmMainJSPath optional #63465

Closed
@pavelsavara

Description

@pavelsavara

There are use-cases when there is no main javaScript file.
For example with NextJs where we don't own application startup.

src\mono\wasm\build\WasmApp.targets

<Error Condition="'$(WasmMainJSPath)' == ''" Text="%24(WasmMainJSPath) property needs to be set" />

src\tasks\WasmAppBuilder\WasmAppBuilder.cs

if (!File.Exists(MainJS))
    throw new LogAsErrorException($"File MainJS='{MainJS}' doesn't exist.");

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions