Is it possible to provide macros for vue2.7 that are only aligned to vue3 via Vue Macros #657
Open
3 tasks done
Labels
enhancement
New feature or request
Clear and concise description of the problem
I know that functionally the answer is YES. but I ran into some DX issues in my attempts.
The macros required to align vue2.7 to vue3 are 'defineOptions','defineModel','defineSlots'
Some macros (e.g. :defineModels) are turned off on the
vue.config.js
,tsconfig.json
configuration, but due to the use of "unplugin-vue-macros/vue2-macros-global",vscode IntelliSense will still prompt.I'm guessing that using 'unplugin-vue-macros/vue2-macros-global' with custom cropping solves the problem
ps:Forgive me, this point is probably more appropriate as a separate issue.
env
vscode 1.8.8
volar 1.8.7(takeover)
macos 14.4.1
repo:https://github.com/curlykay/vue2-macros-vuecli
Suggested solution
How do I configure Vue Macros to make vue2.7 align with vue3 in the dimension of macros? I'd be happy to learn.
Or
Just like the standalone 'unplugin-vue-define-options', would it be possible to provide a standalone 'unplugin-vue-macros-compat' and '@vue-macros-compat/volar' aligned with vue3.
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: