fix(deps): 补丁绕过 @tanstack/start-plugin-core 误引 @rsbuild/core
@tanstack/start-plugin-core@1.168.0 的 dist/esm/index.js 在 Vite 场景 下也会静态导入 ./rsbuild/planning.js,而后者硬依赖被标为 optional peer 的 @rsbuild/core,导致 vite build 启动阶段 ERR_MODULE_NOT_FOUND。 引入 bun patch 只保留 vite 相关导出(删掉 RSBUILD_ENVIRONMENT_NAMES 和 tanStackStartRsbuild),不安装 rsbuild 全家桶(rspack 很重)。 等上游修复再移除本补丁。
This commit is contained in:
@@ -58,5 +58,8 @@
|
||||
"tailwindcss": "^4.2.4",
|
||||
"typescript": "^6.0.3",
|
||||
"vite": "^8.0.10"
|
||||
},
|
||||
"patchedDependencies": {
|
||||
"@tanstack/start-plugin-core@1.168.0": "patches/@tanstack%2Fstart-plugin-core@1.168.0.patch"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user