Skip to content

Commit

Permalink
Update shiki.js
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed May 10, 2024
1 parent 71478cb commit 92fb602
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions plugins/shiki.js
Expand Up @@ -7,10 +7,12 @@ import {
} from '@stevebauman/shiki';
import collect from 'collect.js';

setCDN('shiki/');
setWasm('shiki/dist/onig.wasm');

export default async (context, inject) => {
const { $config } = context;

setCDN($config.isDesktop ? 'shiki/' : '/shiki/');
setWasm($config.isDesktop ? 'shiki/dist/onig.wasm' : '/shiki/dist/onig.wasm');

const highlighter = await getHighlighter({
themes: ['github-light'],
langs: [
Expand Down

0 comments on commit 92fb602

Please sign in to comment.