File tree Expand file tree Collapse file tree 5 files changed +32
-19
lines changed Expand file tree Collapse file tree 5 files changed +32
-19
lines changed Original file line number Diff line number Diff line change
1
+ # Node.js
1
2
node_modules
2
3
3
4
# Next.js & Vercel Directories
4
- .next
5
5
.turbo
6
- .swc
7
- build
8
-
9
- # We don't want to lint/prettify the Coverage Results
10
- coverage
11
- junit.xml
12
-
13
- # We shouldn't lint statically generated Storybook files
14
- storybook-static
15
-
16
- # This file naturally might break conventional rules
17
- global.d.ts
Original file line number Diff line number Diff line change
1
+ # Node.js
2
+ node_modules
3
+
4
+ # Next.js & Vercel Directories
5
+ .next
6
+ .turbo
7
+ .swc
8
+ build
9
+
10
+ # We don't want to lint/prettify the Coverage Results
11
+ coverage
12
+ junit.xml
13
+
14
+ # We shouldn't lint statically generated Storybook files
15
+ storybook-static
16
+
17
+ # This file naturally might break conventional rules
18
+ global.d.ts
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ const nextConfig = {
112
112
'shiki' ,
113
113
] ,
114
114
// Removes the warning regarding the WebPack Build Worker
115
- webpackBuildWorker : false ,
115
+ webpackBuildWorker : true ,
116
116
// Enables Next.js's Instrumentation Hook
117
117
instrumentationHook : true ,
118
118
} ,
Original file line number Diff line number Diff line change 14
14
"isolatedModules" : true ,
15
15
"jsx" : " preserve" ,
16
16
"incremental" : true ,
17
- "paths" : { "@/*" : [" ./*" ] },
18
- "plugins" : [{ "name" : " next" }],
17
+ "paths" : {
18
+ "@/*" : [" ./*" ]
19
+ },
20
+ "plugins" : [
21
+ {
22
+ "name" : " next"
23
+ }
24
+ ],
19
25
"baseUrl" : " ."
20
26
},
21
27
"mdx" : {
28
34
" **/*.tsx" ,
29
35
" .next/types/**/*.ts" ,
30
36
" .storybook/**/*.ts" ,
31
- " .storybook/**/*.tsx"
37
+ " .storybook/**/*.tsx" ,
38
+ " build/types/**/*.ts"
32
39
],
33
40
"exclude" : [" node_modules" , " .next" ]
34
41
}
Original file line number Diff line number Diff line change 1
- import { getHighlighterCore } from '@shikijs/core' ;
1
+ import { getSingletonHighlighterCore } from '@shikijs/core' ;
2
2
import type { HighlighterCore } from '@shikijs/core' ;
3
3
import { getWasmInstance } from '@shikijs/core/wasm-inlined' ;
4
4
5
5
import { LANGUAGES , DEFAULT_THEME } from '@/shiki.config.mjs' ;
6
6
7
7
// This creates a memoized minimal Shikiji Syntax Highlighter
8
8
export const getShiki = ( ) =>
9
- getHighlighterCore ( {
9
+ getSingletonHighlighterCore ( {
10
10
themes : [ DEFAULT_THEME ] ,
11
11
langs : LANGUAGES ,
12
12
loadWasm : getWasmInstance ,
You can’t perform that action at this time.
0 commit comments