remove console log

This commit is contained in:
Benjamin Palko 2026-01-27 10:03:31 -05:00
parent a515a2a687
commit aee09a2c77

View file

@ -5,28 +5,31 @@ import { join } from 'path';
/** @type {import('@sveltejs/kit').Config} */ /** @type {import('@sveltejs/kit').Config} */
const config = { const config = {
// Consult https://svelte.dev/docs/kit/integrations // Consult https://svelte.dev/docs/kit/integrations
// for more information about preprocessors // for more information about preprocessors
preprocess: [vitePreprocess(), mdsvex({ preprocess: [
extensions: ['.md'], layout: { vitePreprocess(),
blog: join(import.meta.dirname, './src/lib/layout/Blog.svelte') mdsvex({
}, extensions: ['.md'],
highlight: { layout: {
highlighter: (code, lang, meta) => { blog: join(import.meta.dirname, './src/lib/layout/Blog.svelte')
console.log(meta); },
return `<Components.pre code={\`${code}\`} lang={\`${lang}\`} />`; highlight: {
} highlighter: (code, lang) => {
} return `<Components.pre code={\`${code}\`} lang={\`${lang}\`} />`;
})], }
}
})
],
kit: { kit: {
// adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list. // adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.
// If your environment is not supported, or you settled on a specific environment, switch out the adapter. // If your environment is not supported, or you settled on a specific environment, switch out the adapter.
// See https://svelte.dev/docs/kit/adapters for more information about adapters. // See https://svelte.dev/docs/kit/adapters for more information about adapters.
adapter: adapter() adapter: adapter()
}, },
extensions: ['.svelte', '.md'] extensions: ['.svelte', '.md']
}; };
export default config; export default config;