title: How can I manually compile a svelte component down to the final javascript and css that sapper/svelte produces?
body: <p>Our company produces an automation framework that is written in svelte/sapper. One feature is that developers can create custom ui widgets, currently using plain js/html/css and our client side api. These widgets are stored in the database and not on the file system.</p>
  <p>I think it would be a big plus to allow them to create widgets as svelte components since it contains all of the markup, js and css in one location and would give them all of the benefits of svelte's reactivity.</p>
  <p>I have gotten as far as creating an endpoint that compiles components using svelte's server API but that just seems to generate a module that is ready for rollup-plugin-svelte/sapper/babel to finish the job of producing something the browser can use.</p>
  <p>How can I manually compile a svelte component down to the final javascript and css that sapper/svelte produces.</p>