dewfall123 / vitepress-for-component

📖 针对组件开发的VitePress。 重构版本https://github.com/dewfall123/ruabick
https://dewfall123.github.io/vitepress-for-component/
MIT License
194 stars 38 forks source link

console show `[@vue/compiler-sfc] `defineProps is a compiler macro and no longer needs to be imported.` #52

Closed JobinJia closed 2 years ago

JobinJia commented 2 years ago

Is your feature request related to a problem? Please describe. i use this lib, it show me [@vue/compiler-sfc]definePropsis a compiler macro and no longer needs to be imported. in console

Describe the solution you'd like see source, find .vue component use setup script, import defineProps from vue. but the defineProps function is macro function. so just remove import { defineProps } from 'vue' with .vue file can resolve this warnning

Describe alternatives you've considered remove import { defineProps } from 'vue to fix it

Additional context