lazy load imaging repo
This commit is contained in:
@@ -0,0 +1 @@
|
||||
export const UMB_IMAGING_REPOSITORY_ALIAS = 'Umb.Repository.Imaging';
|
||||
@@ -40,3 +40,5 @@ export class UmbImagingRepository extends UmbControllerBase implements UmbApi {
|
||||
return await this.requestResizedItems(uniques, imagingModel);
|
||||
}
|
||||
}
|
||||
|
||||
export { UmbImagingRepository as api };
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
export { UmbImagingRepository } from './imaging.repository.js';
|
||||
export { UMB_IMAGING_REPOSITORY_ALIAS } from './manifests.js';
|
||||
export { UMB_IMAGING_REPOSITORY_ALIAS } from './constants.js';
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
import { UmbImagingRepository } from './imaging.repository.js';
|
||||
import { UMB_IMAGING_REPOSITORY_ALIAS } from './constants.js';
|
||||
import type { ManifestRepository, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const UMB_IMAGING_REPOSITORY_ALIAS = 'Umb.Repository.Imaging';
|
||||
|
||||
const repository: ManifestRepository = {
|
||||
type: 'repository',
|
||||
alias: UMB_IMAGING_REPOSITORY_ALIAS,
|
||||
name: 'Imaging Repository',
|
||||
api: UmbImagingRepository,
|
||||
api: () => import('./imaging.repository.js'),
|
||||
};
|
||||
|
||||
export const manifests: Array<ManifestTypes> = [repository];
|
||||
|
||||
@@ -11,11 +11,11 @@ export default defineConfig({
|
||||
...getDefaultConfig({
|
||||
dist,
|
||||
entry: {
|
||||
'entry-point': 'entry-point.ts',
|
||||
'imaging/index': 'imaging/index.ts',
|
||||
'media-type/index': 'media-type/index.ts',
|
||||
'media/index': 'media/index.ts',
|
||||
'umbraco-package': 'umbraco-package.ts',
|
||||
//'entry-point': 'entry-point.ts',
|
||||
//'imaging/index': 'imaging/index.ts',
|
||||
//'media-type/index': 'media-type/index.ts',
|
||||
//'media/index': 'media/index.ts',
|
||||
//'umbraco-package': 'umbraco-package.ts',
|
||||
manifests: 'manifests.ts',
|
||||
},
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user