Subscribe on changes!

using less, the notes (//) in style will be run

avatar
Aug 2nd 2023

Vue version

3.3.4

Link to minimal reproduction

https://stackblitz.com/edit/vitejs-vite-ndwrnc?file=src%2FApp.vue

Steps to reproduce

<template>
  <div>test</div>
</template>

<script lang="ts" setup>
const height = 123
</script>

<style lang="less" scoped>
div {
  // height: v-bind(height);
}
</style>

image

What is expected?

--7a7a37b1-height:123; should not exist in style

What is actually happening?

style has --7a7a37b1-height:123;

System Info

No response

Any additional comments?

No response

avatar
Aug 3rd 2023

In Sass/SCSS, using double slashes for comments is also the same.

avatar
Aug 3rd 2023

fixed via https://github.com/vuejs/core/pull/5409 It has not been released yet.