Update to use compileClient

The `client` option is deprecated in favour of using the method `compileClient()`.