astro/packages/renderers/renderer-vue/index.js
Drew Powers 330620e1b3 Update renderer API for Vite (#1623)
* Update renderer API for Vite

* Fix lit-element tests

* Clean up comments

* Throw friendly error if renderer provides viteConfig in a bad format
2021-10-22 16:25:38 -06:00

18 lines
366 B
JavaScript

import vue from '@vitejs/plugin-vue';
export default {
name: '@astrojs/renderer-vue',
client: './client.js',
server: './server.js',
viteConfig() {
return {
optimizeDeps: {
include: ['@astrojs/renderer-vue/client.js', 'vue'],
},
plugins: [vue()],
ssr: {
external: ['@vue/server-renderer'],
},
};
},
};