Skip to content

Commit a599f46

Browse files
hi-ogawaclaude
andauthored
fix(rsc): remove redundant builder.rsc injection (#1055)
Co-authored-by: Claude <noreply@anthropic.com>
1 parent aa6a21a commit a599f46

File tree

2 files changed

+2
-25
lines changed

2 files changed

+2
-25
lines changed

packages/plugin-rsc/src/plugin.ts

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ export type RscPluginOptions = {
205205
useBuildAppHook?: boolean
206206

207207
/**
208-
* Skip the default buildApp orchestration and expose utilities on `builder.rsc`
209-
* for downstream frameworks to implement custom build pipelines.
208+
* Skip the default buildApp orchestration for downstream frameworks
209+
* to implement custom build pipelines using `getPluginApi()`.
210210
* @experimental
211211
* @default false
212212
*/
@@ -431,17 +431,6 @@ export default function vitePluginRsc(
431431
let hasReactServerDomWebpack = false
432432

433433
return [
434-
{
435-
name: 'rsc:builder-api',
436-
buildApp: {
437-
order: 'pre' as const,
438-
async handler(builder) {
439-
builder.rsc = {
440-
manager,
441-
}
442-
},
443-
},
444-
},
445434
{
446435
name: 'rsc',
447436
async config(config, env) {

packages/plugin-rsc/types/index.d.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,6 @@ declare module 'vite' {
1717
/** Options for `@vitejs/plugin-rsc` */
1818
rsc?: import('@vitejs/plugin-rsc').RscPluginOptions
1919
}
20-
21-
interface ViteBuilder {
22-
/**
23-
* RSC plugin API exposed for custom build pipelines.
24-
* Available when using `rsc({ customBuildApp: true })`.
25-
* @experimental
26-
*/
27-
rsc: {
28-
/** Access to internal RscPluginManager for controlling build phases */
29-
manager: import('@vitejs/plugin-rsc').RscPluginManager
30-
}
31-
}
3220
}
3321

3422
export {}

0 commit comments

Comments
 (0)