index.ts
The entry point for the plugin bundle. This file is loaded by Umbraco when the backoffice starts.
What it does
Section titled “What it does”Exports the manifests array which registers all the extension components (entity actions, modals, etc.) with Umbraco’s extension registry.
Key points
Section titled “Key points”- Must export
manifests- Umbraco’s bundle loader looks for this export - Does NOT use
onInitfunction - bundles automatically register exported manifests - Keep this file simple - just re-export from manifest.ts
export { manifests } from './manifest.js';Common mistake
Section titled “Common mistake”We initially tried using an onInit function pattern:
// WRONG - this doesn't work for bundlesexport const onInit = (host, extensionRegistry) => { extensionRegistry.registerMany(manifests);};Bundles don’t call onInit - they just look for the manifests export. Use backofficeEntryPoint type instead if you need onInit behavior.