Releases: metonym/svelte-highlight
Releases · metonym/svelte-highlight
v6.2.1
Fixes
Documentation
v6.2.0
v6.1.2
v6.1.1
v6.1.0
v6.0.1
v6.0.0
Breaking Changes
- use SvelteKit to package the library and auto-generate TypeScript definitions
- styles are moved from
src/styles
tostyles
- languages are moved from
src/languages
tolanguages
- styles are moved from
- import github from "svelte-highlight/src/styles/github";
+ import github from "svelte-highlight/styles/github";
- import typescript from "svelte-highlight/src/languages/typescript";
+ import typescript from "svelte-highlight/languages/typescript";
v5.3.2
Documentation
- specify in docs that vite should optimize both "highlight.js" and "highlight.js/lib/core" if using SvelteKit or vite
# svelte.config.js
export default {
kit: {
+ vite: {
+ optimizeDeps: {
+ include: ["highlight.js", "highlight.js/lib/core"],
+ },
+ },
},
};