Skip to content

Packaging a client-side Blazor project into a single JS file #37732

@anthony-c-martin

Description

@anthony-c-martin

Is your feature request related to a problem? Please describe.

My team owns a VSCode extension, which interacts with a Language Server written in C# (https://github.com/Azure/bicep) to provide interactive language features. We have a demo playground, which leverages Blazor to host the C# code in-browser.

With the recently-announced VSCode.dev project, our extension is currently unsupported as it requires dotnet runtime to run the language server. It would be amazing if we could bundle our full language server and run it in-browser for the web version of VSCode. As far as I can tell, the main blocker here would be the requirement to bundle all extension JS into a single file.

Is anyone aware of a way of either generating a single JS file at publish time (including all DLLs, plus necessary framework dependencies), or utilizing a tool like webpack to package the full Blazor output into a single JS file?

Describe the solution you'd like

A mechanism to bundle client-side Blazor code into a single JS file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.Status: Resolvedarea-blazorIncludes: Blazor, Razor Componentsfeature-blazor-wasmThis issue is related to and / or impacts Blazor WebAssembly

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions