Configurations
Plugin Options
All features are enabled by default except the following.
Disabled by Default
exportExposeexportPropsexportRendersetupSFCbooleanPropshortBinddefineStyleX
Disabled by Default when Vue >= 3.3
defineOptionsdefineSlotshoistStaticshortEmits
You can re-enable them by setting the option to true.
ts
import { defineConfig } from 'vue-macros' export default defineConfig({ root: '/your-project-path', /** * Vue version, 2 or 3. * * optional, detecting automatically. */ version: 3, /** Defaults to true */ defineModels: { // ... }, // Enable features defineOptions: true, // Disable features hoistStatic: false, // ... more features })Refer to the macros and features page for available options.
Kevin Deng
zhiyuanzmj
北雁云依
Leo