We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d015b7b commit 6dd9530Copy full SHA for 6dd9530
packages/plugin-rsc/README.md
@@ -492,14 +492,14 @@ This can be fixed by updating `optimizeDeps.include` to reference `@vitejs/plugi
492
export default function myRscFrameworkPlugin() {
493
return {
494
name: 'my-rsc-framework:config',
495
- configureEnvironment(name, config) {
+ configureEnvironment(_name, config) {
496
if (config.optimizeDeps?.include) {
497
config.optimizeDeps.include = config.optimizeDeps.include.map(
498
- (name) => {
499
- if (name.startsWith('@vitejs/plugin-rsc')) {
500
- name = `my-rsc-framework > ${name}`
+ (entry) => {
+ if (entry.startsWith('@vitejs/plugin-rsc')) {
+ entry = `my-rsc-framework > ${entry}`
501
}
502
- return name
+ return entry
503
},
504
)
505
0 commit comments