330620e1b3
* Update renderer API for Vite * Fix lit-element tests * Clean up comments * Throw friendly error if renderer provides viteConfig in a bad format
18 lines
366 B
JavaScript
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'],
|
|
},
|
|
};
|
|
},
|
|
};
|