Skip to content

Commit bc23880

Browse files
committed
refactor(rsc)!: remove deprecated features
1 parent 0ccfc44 commit bc23880

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

packages/plugin-rsc/src/plugin.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,6 @@ export type RscPluginOptions = {
124124
*/
125125
entries?: Partial<Record<'client' | 'ssr' | 'rsc', string>>
126126

127-
/** @deprecated use `serverHandler: false` */
128-
disableServerHandler?: boolean
129-
130127
/** @default { enviornmentName: "rsc", entryName: "index" } */
131128
serverHandler?:
132129
| {
@@ -502,7 +499,6 @@ export default function vitePluginRsc(
502499
return oldSend.apply(this, args as any)
503500
}
504501

505-
if (rscPluginOptions.disableServerHandler) return
506502
if (rscPluginOptions.serverHandler === false) return
507503
const options = rscPluginOptions.serverHandler ?? {
508504
environmentName: 'rsc',
@@ -539,7 +535,6 @@ export default function vitePluginRsc(
539535
}
540536
},
541537
async configurePreviewServer(server) {
542-
if (rscPluginOptions.disableServerHandler) return
543538
if (rscPluginOptions.serverHandler === false) return
544539
const options = rscPluginOptions.serverHandler ?? {
545540
environmentName: 'rsc',

0 commit comments

Comments
 (0)