core
core copied to clipboard
fix(compiler-sfc): ignore style comment in `transform` stage
Fix #6807
The behavior of the compile seems like it's not a bug.
I think it would be better to fix it here: https://github.com/vuejs/core/blob/85af1398637ee91c6ebabb73bf42250320311e19/packages/runtime-dom/src/modules/style.ts#L40-L66
The behavior of the compile seems like it's not a bug.
I think it would be better to fix it here:
https://github.com/vuejs/core/blob/85af1398637ee91c6ebabb73bf42250320311e19/packages/runtime-dom/src/modules/style.ts#L40-L66
Thanks, it's a good point. But I still think the compiler should know this is a comment, not a property of style.
Deploy Preview for vuejs-coverage failed.
| Name | Link |
|---|---|
| Latest commit | 00bbd29285f508ac03f7d45e52d6d5a2f6dca4d3 |
| Latest deploy log | https://app.netlify.com/sites/vuejs-coverage/deploys/6369ced11e175f00084724dd |