330620e1b3
* Update renderer API for Vite * Fix lit-element tests * Clean up comments * Throw friendly error if renderer provides viteConfig in a bad format
20 lines
450 B
JavaScript
20 lines
450 B
JavaScript
import { svelte } from '@sveltejs/vite-plugin-svelte';
|
|
|
|
export default {
|
|
name: '@astrojs/renderer-svelte',
|
|
client: './client.js',
|
|
server: './server.js',
|
|
viteConfig() {
|
|
return {
|
|
optimizeDeps: {
|
|
include: ['@astrojs/renderer-svelte/client.js', 'svelte', 'svelte/internal'],
|
|
},
|
|
plugins: [
|
|
svelte({
|
|
emitCss: true,
|
|
compilerOptions: { hydratable: true },
|
|
}),
|
|
],
|
|
};
|
|
},
|
|
};
|