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'
88
99export function cjsModuleRunnerPlugin ( ) : Plugin [ ] {
1010 // 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+ ] )
1217
1318 return [
1419 {
@@ -74,6 +79,10 @@ export function cjsModuleRunnerPlugin(): Plugin[] {
7479}
7580
7681function extractPackageKey ( id : string ) : string {
82+ if ( id . includes ( '/packages/plugin-rsc/dist/vendor/react-server-dom/' ) ) {
83+ return '@vitejs/plugin-rsc'
84+ }
85+
7786 // .../.yarn/cache/abc/... => abc
7887 const yarnMatch = id . match ( / \/ .y a r n \/ c a c h e \/ ( [ ^ / ] + ) / )
7988 if ( yarnMatch ) {
You can’t perform that action at this time.
0 commit comments