Skip to content

Commit 6dd9530

Browse files
committed
chore: tweak
1 parent d015b7b commit 6dd9530

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/plugin-rsc/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -492,14 +492,14 @@ This can be fixed by updating `optimizeDeps.include` to reference `@vitejs/plugi
492492
export default function myRscFrameworkPlugin() {
493493
return {
494494
name: 'my-rsc-framework:config',
495-
configureEnvironment(name, config) {
495+
configureEnvironment(_name, config) {
496496
if (config.optimizeDeps?.include) {
497497
config.optimizeDeps.include = config.optimizeDeps.include.map(
498-
(name) => {
499-
if (name.startsWith('@vitejs/plugin-rsc')) {
500-
name = `my-rsc-framework > ${name}`
498+
(entry) => {
499+
if (entry.startsWith('@vitejs/plugin-rsc')) {
500+
entry = `my-rsc-framework > ${entry}`
501501
}
502-
return name
502+
return entry
503503
},
504504
)
505505
}

0 commit comments

Comments
 (0)