metonym / svelte-highlight

Syntax Highlighting for Svelte using highlight.js
https://svhe.onrender.com
MIT License
262 stars 14 forks source link

docs: update SvelteKit/Vite usage #223

Closed metonym closed 2 years ago

metonym commented 2 years ago

As of SvelteKit version 1.0.0-next.359, vite options are defined in vite.config.js.

import { sveltekit } from "@sveltejs/kit/vite";

/** @type {import('vite').UserConfig} */
const config = {
  plugins: [sveltekit()],
  optimizeDeps: {
    include: ["highlight.js", "highlight.js/lib/core"],
  },
};

export default config;
render[bot] commented 2 years ago

Your Render PR Server URL is https://svelte-highlight-pr-223.onrender.com.

Follow its progress at https://dashboard.render.com/static/srv-cb804n82i3mjmmvc9rb0.

render[bot] commented 2 years ago

Your Render PR Server URL is https://svelte-highlight-pr-223-8xjf.onrender.com.

Follow its progress at https://dashboard.render.com/static/srv-cb804no2i3mjmmvc9reg.