Files
mermaid-live-editor/svelte.config.js
T
2021-05-15 23:27:28 +05:30

29 lines
507 B
JavaScript

import preprocess from 'svelte-preprocess';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: [
preprocess({
postcss: true
})
],
kit: {
// hydrate the <div id="svelte"> element in src/app.html
target: '#svelte',
vite: {
// ssr: {
// noExternal: []
// },
optimizeDeps: {
include: ['mermaid']
}
},
ssr: false
}
};
export default config;