Skip to content

Commit 86d14ad

Browse files
authored
fix: attempt to fix ci memory leak (#6933)
* fix: attempt to fix ci memory leak * chore: fixed eslint rules
1 parent da87326 commit 86d14ad

File tree

5 files changed

+32
-19
lines changed

5 files changed

+32
-19
lines changed

.eslintignore

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
1+
# Node.js
12
node_modules
23

34
# Next.js & Vercel Directories
4-
.next
55
.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

apps/site/.eslintignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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

apps/site/next.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ const nextConfig = {
112112
'shiki',
113113
],
114114
// Removes the warning regarding the WebPack Build Worker
115-
webpackBuildWorker: false,
115+
webpackBuildWorker: true,
116116
// Enables Next.js's Instrumentation Hook
117117
instrumentationHook: true,
118118
},

apps/site/tsconfig.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,14 @@
1414
"isolatedModules": true,
1515
"jsx": "preserve",
1616
"incremental": true,
17-
"paths": { "@/*": ["./*"] },
18-
"plugins": [{ "name": "next" }],
17+
"paths": {
18+
"@/*": ["./*"]
19+
},
20+
"plugins": [
21+
{
22+
"name": "next"
23+
}
24+
],
1925
"baseUrl": "."
2026
},
2127
"mdx": {
@@ -28,7 +34,8 @@
2834
"**/*.tsx",
2935
".next/types/**/*.ts",
3036
".storybook/**/*.ts",
31-
".storybook/**/*.tsx"
37+
".storybook/**/*.tsx",
38+
"build/types/**/*.ts"
3239
],
3340
"exclude": ["node_modules", ".next"]
3441
}

apps/site/util/getHighlighter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { getHighlighterCore } from '@shikijs/core';
1+
import { getSingletonHighlighterCore } from '@shikijs/core';
22
import type { HighlighterCore } from '@shikijs/core';
33
import { getWasmInstance } from '@shikijs/core/wasm-inlined';
44

55
import { LANGUAGES, DEFAULT_THEME } from '@/shiki.config.mjs';
66

77
// This creates a memoized minimal Shikiji Syntax Highlighter
88
export const getShiki = () =>
9-
getHighlighterCore({
9+
getSingletonHighlighterCore({
1010
themes: [DEFAULT_THEME],
1111
langs: LANGUAGES,
1212
loadWasm: getWasmInstance,

0 commit comments

Comments
 (0)