Skip to content

Commit 263a2d4

Browse files
committed
SUpport turbopack
1 parent 87c43bd commit 263a2d4

File tree

33 files changed

+2673
-2774
lines changed

33 files changed

+2673
-2774
lines changed

apps/landing/next.config.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
import { DevupUI } from '@devup-ui/next-plugin'
22
import createMDX from '@next/mdx'
3-
import remarkGfm from 'remark-gfm'
43

54
const withMDX = createMDX({
6-
options: {
7-
remarkPlugins: [remarkGfm],
8-
},
5+
options: {},
96
extension: /\.mdx?$/,
107
})
118

apps/landing/package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,29 @@
1414
"@devup-ui/components": "workspace:*",
1515
"@devup-ui/react": "workspace:*",
1616
"@devup-ui/reset-css": "workspace:*",
17-
"@mdx-js/loader": "^3.1.1",
18-
"@mdx-js/react": "^3.1.1",
19-
"@next/mdx": "^15.5.4",
20-
"@types/mdx": "^2.0.13",
21-
"body-scroll-lock": "3.1.5",
22-
"clsx": "^2.1.1",
23-
"next": "^15.5.4",
24-
"react": "^19.1.1",
25-
"react-dom": "^19.1.1",
26-
"react-markdown": "^10.1.0",
27-
"react-syntax-highlighter": "^15.6.6",
28-
"remark-gfm": "^4.0.1",
29-
"lenis": "1.3.11"
17+
"@mdx-js/loader": "^3.1",
18+
"@mdx-js/react": "^3.1",
19+
"@next/mdx": "^16.0",
20+
"body-scroll-lock": "3.1",
21+
"clsx": "^2.1",
22+
"next": "^16.0",
23+
"react": "^19.2",
24+
"react-dom": "^19.2",
25+
"react-markdown": "^10.1",
26+
"react-syntax-highlighter": "^16.0",
27+
"remark-gfm": "^4.0",
28+
"lenis": "1.3"
3029
},
3130
"devDependencies": {
31+
"@types/mdx": "^2.0",
3232
"@devup-ui/next-plugin": "workspace:*",
33-
"@types/body-scroll-lock": "^3.1.2",
33+
"@types/body-scroll-lock": "^3.1",
3434
"@types/node": "^24",
3535
"@types/react": "^19",
3636
"@types/react-dom": "^19",
37-
"@types/react-syntax-highlighter": "^15.5.13",
38-
"glob": "^11.0.3",
39-
"remark": "^15.0.1",
37+
"@types/react-syntax-highlighter": "^15.5",
38+
"glob": "^11.0",
39+
"remark": "^15.0",
4040
"typescript": "^5"
4141
}
4242
}

apps/landing/src/app/(detail)/docs/RightIndex.tsx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,16 @@ export function RightIndex() {
5252
const elements = document.querySelectorAll(
5353
'.markdown-body h4, .markdown-body h6',
5454
)
55-
const menus = []
56-
for (let i = 0; i < elements.length; i++) {
57-
const element = elements[i]
58-
const text = element.textContent!
59-
menus.push({
60-
text,
55+
// eslint-disable-next-line react-hooks/set-state-in-effect
56+
setMenus(
57+
[...elements].map((element) => ({
58+
text: element.textContent!,
6159
sub: element.tagName === 'H6',
6260
onClick: () => {
6361
element.scrollIntoView({ behavior: 'smooth' })
6462
},
65-
})
66-
}
67-
setMenus(menus)
63+
})),
64+
)
6865
}, [pathname])
6966

7067
return (

apps/landing/tsconfig.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"moduleResolution": "bundler",
1212
"resolveJsonModule": true,
1313
"isolatedModules": true,
14-
"jsx": "preserve",
14+
"jsx": "react-jsx",
1515
"incremental": true,
1616
"plugins": [
1717
{
@@ -27,7 +27,10 @@
2727
"**/*.ts",
2828
"**/*.tsx",
2929
".next/types/**/*.ts",
30-
"df/*.d.ts"
30+
"df/*.d.ts",
31+
".next\\dev/types/**/*.ts",
32+
".next\\dev/types/**/*.ts",
33+
"next.config.mts"
3134
],
3235
"exclude": ["node_modules"]
3336
}

apps/next/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010
"lint": "next lint"
1111
},
1212
"dependencies": {
13-
"react": "^19.1.1",
14-
"react-dom": "^19.1.1",
15-
"next": "^15.5.4",
13+
"react": "^19.2",
14+
"react-dom": "^19.2",
15+
"next": "^16.0",
1616
"@devup-ui/react": "workspace:*"
1717
},
1818
"devDependencies": {
1919
"@devup-ui/next-plugin": "workspace:*",
2020
"typescript": "^5",
2121
"@types/node": "^24",
22-
"@types/react": "^19",
23-
"@types/react-dom": "^19"
22+
"@types/react": "^19.2",
23+
"@types/react-dom": "^19.2"
2424
}
2525
}

apps/next/tsconfig.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"moduleResolution": "bundler",
1212
"resolveJsonModule": true,
1313
"isolatedModules": true,
14-
"jsx": "preserve",
14+
"jsx": "react-jsx",
1515
"incremental": true,
1616
"plugins": [
1717
{
@@ -27,7 +27,9 @@
2727
"**/*.ts",
2828
"**/*.tsx",
2929
".next/types/**/*.ts",
30-
"df/*.d.ts"
30+
"df/*.d.ts",
31+
".next\\dev/types/**/*.ts",
32+
".next\\dev/types/**/*.ts"
3133
],
3234
"exclude": ["node_modules"]
3335
}

apps/rsbuild/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
"lint": "tsc && eslint"
1212
},
1313
"dependencies": {
14-
"react": "^19.1.1",
15-
"react-dom": "^19.1.1",
14+
"react": "^19.2",
15+
"react-dom": "^19.2",
1616
"@devup-ui/react": "workspace:*"
1717
},
1818
"devDependencies": {
19-
"@rsbuild/core": "^1.5.13",
20-
"@rsbuild/plugin-react": "^1.4.1",
19+
"@rsbuild/core": "^1.5",
20+
"@rsbuild/plugin-react": "^1.4",
2121
"@devup-ui/rsbuild-plugin": "workspace:*"
2222
}
2323
}

apps/vite-lib/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
"lint": "tsc && eslint"
1313
},
1414
"dependencies": {
15-
"react": "^19.1.1",
15+
"react": "^19.2",
1616
"@devup-ui/react": "workspace:*"
1717
},
1818
"devDependencies": {
19-
"vite-plugin-dts": "^4.5.4",
19+
"vite-plugin-dts": "^4.5",
2020
"@devup-ui/vite-plugin": "workspace:*",
2121
"@vitejs/plugin-react": "^5.0.4",
22-
"vite": "^7.1.7",
22+
"vite": "^7.1",
2323
"typescript": "^5",
2424
"@types/node": "^24",
2525
"@types/react": "^19"

apps/vite/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
"lint": "tsc && eslint"
1111
},
1212
"dependencies": {
13-
"react": "^19.1.1",
14-
"react-dom": "^19.1.1",
13+
"react": "^19.2",
14+
"react-dom": "^19.2",
1515
"@devup-ui/react": "workspace:*",
1616
"vite-lib-example": "workspace:*"
1717
},
1818
"devDependencies": {
1919
"@devup-ui/vite-plugin": "workspace:*",
20-
"vite": "^7.1.7",
21-
"@vitejs/plugin-react": "^5.0.4",
20+
"vite": "^7.1",
21+
"@vitejs/plugin-react": "^5.0",
2222
"typescript": "^5",
2323
"@types/node": "^24",
2424
"@types/react": "^19",

benchmark/next-chakra-ui/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
"lint": "next lint"
1111
},
1212
"dependencies": {
13-
"@chakra-ui/react": "^3.27.0",
14-
"@emotion/react": "^11.14.0",
15-
"next": "^15.5.4",
16-
"next-themes": "^0.4.6",
17-
"react": "^19.1.1",
18-
"react-dom": "^19.1.1",
19-
"react-icons": "^5.5.0"
13+
"@chakra-ui/react": "^3.28",
14+
"@emotion/react": "^11.14",
15+
"next": "^16.0",
16+
"next-themes": "^0.4",
17+
"react": "^19.2",
18+
"react-dom": "^19.2",
19+
"react-icons": "^5.5"
2020
},
2121
"devDependencies": {
2222
"@types/node": "^24",

0 commit comments

Comments
 (0)