Skip to content

Commit

Permalink
clients/web: use full bundle for client-side Shiki
Browse files Browse the repository at this point in the history
Attempt to fix #3622
  • Loading branch information
frankie567 committed Jul 9, 2024
1 parent 0e29492 commit c944eee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clients/apps/web/jest.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import '@testing-library/jest-dom'
import { TextDecoder, TextEncoder } from 'util'

jest.mock('shiki', () => ({}))
jest.mock('shiki/bundle/web', () => ({}))
jest.mock('shiki/bundle/full', () => ({}))

Object.assign(global, { TextDecoder, TextEncoder })
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
Highlighter,
ShikiError,
createHighlighter,
} from 'shiki/bundle/web'
} from 'shiki/bundle/full'
import { themeConfig, themesList, transformers } from '../../../shiki.config'

const getHighlighter = async (): Promise<Highlighter> => {
Expand Down

0 comments on commit c944eee

Please sign in to comment.