File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
code/frameworks/angular/src Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -16,14 +16,18 @@ export const previewAnnotations: PresetProperty<'previewAnnotations'> = async (
1616 const annotations = [ ...entries , config ] ;
1717
1818 if ( ( options as any as StandaloneOptions ) . enableProdMode ) {
19- const previewProdPath = import . meta. resolve ( '@storybook/angular/client/preview-prod' ) ;
19+ const previewProdPath = fileURLToPath (
20+ import . meta. resolve ( '@storybook/angular/client/preview-prod' )
21+ ) ;
2022 annotations . unshift ( previewProdPath ) ;
2123 }
2224
2325 const docsConfig = await options . presets . apply ( 'docs' , { } , options ) ;
2426 const docsEnabled = Object . keys ( docsConfig ) . length > 0 ;
2527 if ( docsEnabled ) {
26- const docsConfigPath = import . meta. resolve ( '@storybook/angular/client/docs/config' ) ;
28+ const docsConfigPath = fileURLToPath (
29+ import . meta. resolve ( '@storybook/angular/client/docs/config' )
30+ ) ;
2731 annotations . push ( docsConfigPath ) ;
2832 }
2933 return annotations ;
You can’t perform that action at this time.
0 commit comments