File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
packages/plugin-rsc/src/plugins Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,12 @@ import { transformCjsToEsm } from '../transforms/cjs'
8
8
9
9
export function cjsModuleRunnerPlugin ( ) : Plugin [ ] {
10
10
// use-sync-external-store is known to work fine so don't show warning
11
- const warnedPackages = new Set < string > ( [ 'use-sync-external-store' ] )
11
+ const warnedPackages = new Set < string > ( [
12
+ 'use-sync-external-store' ,
13
+ 'react' ,
14
+ 'react-dom' ,
15
+ '@vitejs/plugin-rsc' ,
16
+ ] )
12
17
13
18
return [
14
19
{
@@ -74,6 +79,10 @@ export function cjsModuleRunnerPlugin(): Plugin[] {
74
79
}
75
80
76
81
function extractPackageKey ( id : string ) : string {
82
+ if ( id . includes ( '/packages/plugin-rsc/dist/vendor/react-server-dom/' ) ) {
83
+ return '@vitejs/plugin-rsc'
84
+ }
85
+
77
86
// .../.yarn/cache/abc/... => abc
78
87
const yarnMatch = id . match ( / \/ .y a r n \/ c a c h e \/ ( [ ^ / ] + ) / )
79
88
if ( yarnMatch ) {
You can’t perform that action at this time.
0 commit comments