This small change moves the MsgPack.Read reference to Remoting.withBinarySerialization. As long as you don't call that function, bundlers are free to treeshake the MsgPack stuff out. Previously the hard reference to MsgPack.Read in Proxy.executeRequest prevented this.
I've tested it on an application using Fable 3.2.2 and Webpack 5.38.1. The production bundle size decreased with 15KB (post-minification, but before compression). Enough to make it worthwhile IMHO 😄.
This shouldn't be a breaking change either, unless someone uses the RemoteBuilderOptions record directly...
This small change moves the
MsgPack.Read
reference toRemoting.withBinarySerialization
. As long as you don't call that function, bundlers are free to treeshake the MsgPack stuff out. Previously the hard reference toMsgPack.Read
inProxy.executeRequest
prevented this.I've tested it on an application using Fable 3.2.2 and Webpack 5.38.1. The production bundle size decreased with 15KB (post-minification, but before compression). Enough to make it worthwhile IMHO 😄.
This shouldn't be a breaking change either, unless someone uses the RemoteBuilderOptions record directly...