-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
literal constant references should be supported in macros #5750
Labels
Comments
yyx990803
pushed a commit
that referenced
this issue
Mar 28, 2023
- Support using literal constants in macros - fix useCssVars insert position edge case - fix non-literal-const enum hoisting close #5750
IAmSSH
pushed a commit
to IAmSSH/core
that referenced
this issue
May 14, 2023
- Support using literal constants in macros - fix useCssVars insert position edge case - fix non-literal-const enum hoisting close vuejs#5750
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What problem does this feature solve?
Consider the following code
UPDATE_KEY
will never be changed and uses no lifecycle hooks.It can be hoisted, then
defineProps
anddefineEmits
can reference this variable.What does the proposed API look like?
No API involved
The text was updated successfully, but these errors were encountered: