From 5cd64c8ac9c134ae68536ee3556eaac82e8fd054 Mon Sep 17 00:00:00 2001 From: Atanas Korchev Date: Mon, 22 Jun 2026 12:58:07 +0300 Subject: [PATCH] Stop embedding sources/PDB in shipped WASM assemblies Set EmbedAllSources=false and DebugType=portable in the root Directory.Build.props so the demo and API-reference assemblies no longer carry an embedded PDB containing full source. The embedded source is deflate-compressed, so Brotli cannot reclaim it - it was inflating RadzenBlazorDemos.wasm from ~1.3MB to ~4.2MB Brotli (and the lazy API bundle similarly). The packable Radzen.Blazor library is unaffected: it is governed by Radzen.Blazor/Directory.Build.props and still ships embedded sources in its .snupkg for consumer step-into-source debugging. --- Directory.Build.props | 20 +++++--------------- Radzen.Blazor/Directory.Build.props | 3 ++- 2 files changed, 7 insertions(+), 16 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index ed802edaa..8ad73168f 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -47,21 +47,11 @@ true - - true - - - portable - embedded + + false + portable diff --git a/Radzen.Blazor/Directory.Build.props b/Radzen.Blazor/Directory.Build.props index ed802edaa..53eb2e8bf 100644 --- a/Radzen.Blazor/Directory.Build.props +++ b/Radzen.Blazor/Directory.Build.props @@ -47,7 +47,8 @@ true - + true