speed-highlight / core

A lightweight syntax highlighter written in JavaScript
https://speed-highlight.github.io/core/examples/
Creative Commons Zero v1.0 Universal
268 stars 15 forks source link

Add package exports #40

Closed BearToCode closed 1 year ago

BearToCode commented 1 year ago

Add possibility to import main modules without the file specifier, and an export for themes. Previously:

import { detectLanguage } from '@speed-highlight/core/detect.js';
import '@speed-highlight/core/dist/themes/dark.css';

Now:

import { detectLanguage } from '@speed-highlight/core/detect';
import '@speed-highlight/core/themes/dark.css';
github-actions[bot] commented 9 months ago

:tada: This PR is included in version 1.2.5 :tada:

The release is available on:

Your semantic-release bot :package::rocket: