Vue Class Component was a library that let developers write Vue components using a class-based syntax with decorators, rather than the standard object-based options style that Vue uses by default. Instead of writing a component as a plain JavaScript object with properties like data, methods, and computed, you could define it as a TypeScript class where each method and property had a more familiar object-oriented structure. The library is now deprecated and no longer actively maintained by the Vue team. The README explicitly states that class-based components are no longer the recommended approach for Vue 3. The current recommendation for building Vue 3 applications is to use Single-File Components with the Composition API and the script setup syntax, which offers better TypeScript support and more flexibility without needing class syntax or decorators. For developers who still want to write class-style Vue components, the README points to a community-maintained fork called vue-facing-decorator. For developers who have existing code written with vue-class-component and want to migrate away from it, a separate CLI migration tool called vue-class-migrator is mentioned as a starting point for that transition. The original library is MIT licensed and documentation for earlier versions remains available at class-component.vuejs.org. The README for this repository is intentionally sparse since the project is no longer being developed.
← vuejs on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.