Files
nexu-io-open-design/apps/web/package.json
leessju eb88d41107 feat(web): enable Next.js Turbopack for the web dev server (#2798)
The dev server runs on Next.js webpack by default. On a sizeable
monorepo like this one (19 locale files, many components, the i18n
content surface) webpack dev mode pushes the Node heap past the
default 4 GB ceiling and the process dies with 'Ineffective
mark-compacts near heap limit' after a few hot reloads, leaving the
desktop window pointing at a dead URL.

Switch the dev script to '--turbopack'. Next.js 16 ships Turbopack
as stable for dev, and apps/web/next.config.ts already declares
turbopack.root so the workspace resolution is consistent with the
webpack path. The build script is unchanged on purpose — this PR is
scoped to the dev server, where the OOM repro is.

In practice Turbopack runs the same dev workload with materially
lower steady-state heap usage (Rust-side bundling instead of
JavaScript-side webpack) and recovers faster on HMR, so a long dev
session no longer drifts toward the OOM ceiling.

Co-authored-by: nicejames <nicejames@gmail.com>
2026-05-23 15:09:46 +00:00

61 lines
1.4 KiB
JSON

{
"name": "@open-design/web",
"version": "0.8.0",
"private": true,
"type": "module",
"exports": {
"./package.json": "./package.json",
"./sidecar": {
"types": "./dist/sidecar/index.d.ts",
"default": "./dist/sidecar/index.js"
}
},
"files": [
".next",
"!.next/cache",
"app",
"dist",
"next.config.ts",
"package.json",
"public",
"src"
],
"scripts": {
"dev": "next dev --turbopack",
"build": "next build",
"build:sidecar": "tsc -p tsconfig.sidecar.json",
"typecheck": "tsc -b --noEmit",
"test": "vitest run -c vitest.config.ts"
},
"dependencies": {
"@anthropic-ai/sdk": "0.32.1",
"@open-design/contracts": "workspace:*",
"@open-design/host": "workspace:*",
"@open-design/platform": "workspace:*",
"@open-design/sidecar": "workspace:*",
"@open-design/sidecar-proto": "workspace:*",
"lucide-react": "1.16.0",
"next": "16.2.6",
"openai": "6.38.0",
"posthog-js": "1.374.2",
"react": "18.3.1",
"react-dom": "18.3.1"
},
"devDependencies": {
"@tailwindcss/postcss": "4.3.0",
"@testing-library/react": "16.3.2",
"@types/jsdom": "28.0.3",
"@types/node": "20.19.39",
"@types/react": "18.3.28",
"@types/react-dom": "18.3.7",
"jsdom": "29.1.1",
"postcss": "8.5.15",
"tailwindcss": "4.3.0",
"typescript": "5.9.3",
"vitest": "4.1.6"
},
"engines": {
"node": "~24"
}
}