---
title: withSvartzHost
description: >-
  Preserve virtual modules and let Svelte compile packaged components in host
  apps.
updated_at: '2026-11-18T16:54:47+01:00'
created_at: '2026-09-24T05:21:01+02:00'
symbol:
  kind: function
  name: withSvartzHost
  signatures:
    - 'withSvartzHost(config: UserConfigExport): UserConfigExport'
  parameters:
    - name: config
      type: UserConfigExport
  returns:
    type: UserConfigExport
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/vite/src/host.ts#L134
---

# withSvartzHost
