File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import type {
16
16
17
17
// ! ATTENTION: This needs to be a relative import so it gets prebundled. This is to avoid ESM issues in Nextjs + Jest setups
18
18
import { INTERNAL_DEFAULT_PROJECT_ANNOTATIONS as reactAnnotations } from '../../../renderers/react/src/portable-stories' ;
19
+ import * as rscAnnotations from '../../../renderers/react/src/entry-preview-rsc' ;
19
20
import * as nextJsAnnotations from './preview' ;
20
21
21
22
import type { ReactRenderer , Meta } from '@storybook/react' ;
@@ -46,6 +47,7 @@ export function setProjectAnnotations(
46
47
// This will not be necessary once we have auto preset loading
47
48
const defaultProjectAnnotations : ProjectAnnotations < ReactRenderer > = composeConfigs ( [
48
49
reactAnnotations ,
50
+ rscAnnotations ,
49
51
nextJsAnnotations ,
50
52
] ) ;
51
53
Original file line number Diff line number Diff line change @@ -11,14 +11,15 @@ export const previewAnnotations: PresetProperty<'previewAnnotations'> = async (
11
11
options
12
12
) => {
13
13
const docsConfig = await options . presets . apply ( 'docs' , { } , options ) ;
14
+ const features = await options . presets . apply ( 'features' , { } , options ) ;
14
15
const docsEnabled = Object . keys ( docsConfig ) . length > 0 ;
15
16
const result : string [ ] = [ ] ;
16
17
17
18
return result
18
19
. concat ( input )
19
20
. concat ( [ join ( __dirname , 'entry-preview.mjs' ) ] )
20
21
. concat ( docsEnabled ? [ join ( __dirname , 'entry-preview-docs.mjs' ) ] : [ ] )
21
- . concat ( FEATURES ?. experimentalRSC ? [ join ( __dirname , 'entry-preview-rsc.mjs' ) ] : [ ] ) ;
22
+ . concat ( features ?. experimentalRSC ? [ join ( __dirname , 'entry-preview-rsc.mjs' ) ] : [ ] ) ;
22
23
} ;
23
24
24
25
/**
You can’t perform that action at this time.
0 commit comments