Skip to content

v7.4.8

Compare
Choose a tag to compare
@metonym metonym released this 05 Jan 05:20
· 89 commits to master since this release

Fixes

  • add missing exports to allow importing from svelte-highlight/styles and svelte-highlight/languages (#316, 12e7830)

This fix supports the following import variations:

// Base import for styles/languages
import { _default } from "svelte-highlight/styles";
import { _1c } from "svelte-highlight/languages";

// Explicit index
import { _default } from "svelte-highlight/styles/index";
import { typescript } from "svelte-highlight/languages/index";

// Explicit extension
import lang from "svelte-highlight/languages/1c.js"
import style from "svelte-highlight/styles/3024.js";