Transpiles classes written with vue-property-decorator back to simple Vue component global registration code. Version 2.0.6 is current, with support for async methods, props defaults, mixins, const mode, and template precompilation. Unlike vue-class-component or vue-property-decorator at runtime, this package outputs plain Vue component options objects without runtime dependencies, enabling developers to use decorator syntax during development but deploy lightweight, self-contained components. Ideal for projects that need to avoid runtime decorator overhead or generate registerable components for use outside of a full build system.
npm install vue-property-decorator-transpilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Transpiles a vue-property-decorator class component into a Vue.component global registration call.
Check supported decorators list: @Component, @Prop, @Watch, @Provide, @Inject, @ModelSync (partial). For missing features, manually write the equivalent Vue options.
After transpilation, format with `prettier.format(result, { parser: 'babel' })`.Always specify a name in @Component to control the registered component name.
Either pass a template string as second argument or ensure the HTML has an element with id matching the component name.
Install as devDependency: npm install --save-dev vue-property-decorator-transpiler. Ensure the require path is correct.
Use const transpiler = require('vue-property-decorator-transpiler').Remove or replace @Emit with explicit method calls. Alternatively, manually implement emits in the Vue component options.
No dependency data recorded yet.