File tree Expand file tree Collapse file tree 4 files changed +25
-22
lines changed
apps/website/src/components/highlight Expand file tree Collapse file tree 4 files changed +25
-22
lines changed Original file line number Diff line number Diff line change 25
25
- name : Setup pnpm
26
26
uses : pnpm/action-setup@v4
27
27
with :
28
- version : 9.5 .0
28
+ version : 9.6 .0
29
29
30
30
- name : Use Node
31
31
uses : actions/setup-node@v4
Original file line number Diff line number Diff line change @@ -8,13 +8,13 @@ import {
8
8
$ ,
9
9
} from '@builder.io/qwik' ;
10
10
import { CodeCopy } from '../code-copy/code-copy' ;
11
- import { getHighlighterCore } from 'shiki' ;
12
11
import { cn } from '@qwik-ui/utils' ;
13
12
import { isDev } from '@builder.io/qwik/build' ;
14
13
import poimandres from 'shiki/themes/poimandres.mjs' ;
15
14
import html from 'shiki/langs/html.mjs' ;
16
15
import css from 'shiki/langs/css.mjs' ;
17
16
import tsx from 'shiki/langs/tsx.mjs' ;
17
+ import { createHighlighterCore } from 'shiki/index.mjs' ;
18
18
19
19
export type HighlightProps = PropsOf < 'div' > & {
20
20
code : string ;
@@ -48,7 +48,7 @@ export const Highlight = component$(
48
48
modifiedCode = partsOfCode [ 0 ] ;
49
49
}
50
50
51
- const highlighter = await getHighlighterCore ( {
51
+ const highlighter = await createHighlighterCore ( {
52
52
themes : [ poimandres ] ,
53
53
langs : [ html , css , tsx ] ,
54
54
loadWasm : import ( 'shiki/wasm' ) ,
Original file line number Diff line number Diff line change 38
38
"test.headless.ci" : " nx component-test-ci headless" ,
39
39
"test.utils" : " nx test utils"
40
40
},
41
- "packageManager" : " pnpm@9.5 .0" ,
41
+ "packageManager" : " pnpm@9.6 .0" ,
42
42
"devDependencies" : {
43
43
"@axe-core/playwright" : " ^4.9.1" ,
44
44
"@builder.io/qwik" : " ^1.7.1" ,
158
158
},
159
159
"volta" : {
160
160
"node" : " 20.9.0" ,
161
- "pnpm" : " 9.5 .0"
161
+ "pnpm" : " 9.6 .0"
162
162
}
163
163
}
You can’t perform that action at this time.
0 commit comments