File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ function componentPreview(
3434 previewView ( {
3535 robots : res . conf . discovery . robots ,
3636 component,
37- importmap :
38- getOcConfig ( res . conf . path ) ?. development ?. importmap ||
37+ imports :
38+ getOcConfig ( res . conf . path ) ?. development ?. importmap ?. imports ||
3939 res . conf . compiledClient ?. imports ,
4040 fallbackClient : res . conf . fallbackClient
4141 ? `${ res . conf . fallbackRegistryUrl . replace ( / \/ $ / , '' ) } /oc-client/client.dev.js`
Original file line number Diff line number Diff line change @@ -8,14 +8,12 @@ export default function preview(vm: {
88 liveReload : string ;
99 templates : TemplateInfo [ ] ;
1010 robots : boolean ;
11- importmap ?: {
12- imports ?: Record < string , string > ;
13- } ;
11+ imports ?: Record < string , string > ;
1412 preload ?: string ;
1513} ) : string {
1614 const baseUrl = vm . href . replace ( 'http://' , '//' ) . replace ( 'https://' , '//' ) ;
1715 const { name, version } = vm . component ;
18- const imports = vm . importmap ?. imports || vm . component . oc . files . imports ;
16+ const imports = vm . imports || vm . component . oc . files . imports ;
1917 const componentHref = `${ baseUrl } ${ name } /${ version } /${ vm . qs } ` ;
2018 const clientHref = vm . fallbackClient || `${ baseUrl } oc-client/client.js` ;
2119 const id = `oc-${ name } @${ version } ` ;
You can’t perform that action at this time.
0 commit comments