A comprehensive class-based approach is used to instantiate and rehydrate plugins into the bundling cycle. The PackemEventDispatcher API can be used to manage internal event hooks and create custom events during build time.