We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.2.0-beta.5
https://sfc.vuejs.org/#eyJBcHAudnVlIjoiPHRlbXBsYXRlPlxuICA8aDE+e3sgbXNnIH19PC9oMT5cbjwvdGVtcGxhdGU+XG5cbjxzY3JpcHQgc2V0dXA+XG5jb25zdCBtc2cgPSAnSGVsbG8gV29ybGQhJ1xuY29uc3QgY29sb3IgPSBcInJlZFwiXG48L3NjcmlwdD5cblxuPHN0eWxlIHNjb3BlZD5cbiAgaDEge1xuICAgIC8qIGNvbG9yOiB2LWJpbmQoY29sb3IpOyAqL1xuICB9XG48L3N0eWxlPiJ9
I commented the code of style css variable injection, like this:
<template> <h1>{{ msg }}</h1> </template> <script setup> const msg = 'Hello World!' const color = "red" </script> <style scoped> h1 { /* color: v-bind(color); */ } </style>
but it still generate css vars code on the style:
When I commented the code of style css variable injection, the css vars code will not be generated on the style.
It will generate css vars code on the style.
The text was updated successfully, but these errors were encountered:
fix(sfc/style-vars): should ignore style variable bindings in comments (
3a75d5d
#4188) fix #4185
Successfully merging a pull request may close this issue.
Version
3.2.0-beta.5
Reproduction link
https://sfc.vuejs.org/#eyJBcHAudnVlIjoiPHRlbXBsYXRlPlxuICA8aDE+e3sgbXNnIH19PC9oMT5cbjwvdGVtcGxhdGU+XG5cbjxzY3JpcHQgc2V0dXA+XG5jb25zdCBtc2cgPSAnSGVsbG8gV29ybGQhJ1xuY29uc3QgY29sb3IgPSBcInJlZFwiXG48L3NjcmlwdD5cblxuPHN0eWxlIHNjb3BlZD5cbiAgaDEge1xuICAgIC8qIGNvbG9yOiB2LWJpbmQoY29sb3IpOyAqL1xuICB9XG48L3N0eWxlPiJ9
Steps to reproduce
I commented the code of style css variable injection, like this:
but it still generate css vars code on the style:
What is expected?
When I commented the code of style css variable injection, the css vars code will not be generated on the style.
What is actually happening?
It will generate css vars code on the style.
The text was updated successfully, but these errors were encountered: