setup mdsvex

This commit is contained in:
Ilion Beyst 2022-07-27 21:04:51 +02:00
parent 1d280c62e2
commit 18aede91be
2 changed files with 10 additions and 3 deletions

View file

@ -22,6 +22,7 @@
"eslint-config-prettier": "^8.3.0", "eslint-config-prettier": "^8.3.0",
"eslint-plugin-svelte3": "^3.2.1", "eslint-plugin-svelte3": "^3.2.1",
"luxon": "^2.3.0", "luxon": "^2.3.0",
"mdsvex": "^0.10.6",
"prettier": "^2.4.1", "prettier": "^2.4.1",
"prettier-plugin-svelte": "^2.4.0", "prettier-plugin-svelte": "^2.4.0",
"sass": "^1.49.7", "sass": "^1.49.7",

View file

@ -1,15 +1,21 @@
import adapter from "@sveltejs/adapter-node"; import adapter from "@sveltejs/adapter-node";
import preprocess from "svelte-preprocess"; import sveltePreprocess from "svelte-preprocess";
import { viteCommonjs } from "@originjs/vite-plugin-commonjs"; import { viteCommonjs } from "@originjs/vite-plugin-commonjs";
import wasmPack from "vite-plugin-wasm-pack"; import wasmPack from "vite-plugin-wasm-pack";
import { isoImport } from "vite-plugin-iso-import"; import { isoImport } from "vite-plugin-iso-import";
import { mdsvex } from "mdsvex";
/** @type {import('@sveltejs/kit').Config} */ /** @type {import('@sveltejs/kit').Config} */
const config = { const config = {
// Consult https://github.com/sveltejs/svelte-preprocess // Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors // for more information about preprocessors
preprocess: preprocess(), preprocess: [
sveltePreprocess(),
mdsvex({
extensions: ['.md']
}),
],
extensions: ['.svelte', '.md'],
kit: { kit: {
adapter: adapter(), adapter: adapter(),