Skip to content

Is it possible to make this library trimmable by default #1436

@albertwoo

Description

@albertwoo

Description

I am using this library in blazor wasm application, but this library's bundle size is 1008kb which is a lot for a web application.
I also created similar ticket for FSharp.Data.Adaptive, which they already made it hanppen. fsprojects/FSharp.Data.Adaptive#104
And the result is pretty good.

Known workarounds

People can add below stuff to their own application to make it work. But it is better to have it support by default.

<Target Name="ConfigureTrimming" BeforeTargets="PrepareForILLink">
<ItemGroup>
	<ManagedAssemblyToLink Condition="'%(Filename)' == 'FSharp.Data'">
		<TrimMode>link</TrimMode>
		<IsTrimmable>true</IsTrimmable>
	</ManagedAssemblyToLink>
</ItemGroup>
</Target>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions