Closed nkxrb closed 12 months ago
for example:
<style lang="scss" scoped>.list{color: red}</style>
vue will build three time
scopeId: b7d8492c rawQuery: ''
scopeId: b7d8492c rawQuery: 'vue&type=script&lang=ts&setup=true'
scopeId: b7d8492c rawQuery: 'vue&type=style&index=0&id=b7d8492c&lang=scss&scoped=true'
but installed windicss
windicss will build
<style lang="scss" scoped>\n.list{color: red}\n</style>
scopeId: 3bda2322 rawQuery: '' scopeId: b7d8492c rawQuery: 'vue&type=script&lang=ts&setup=true' scopeId: b7d8492c rawQuery: 'vue&type=style&index=0&id=b7d8492c&lang=scss&scoped=true'
Sorry completely missed this PR! Thank you for taking the time to fix it.
<style${meta}>\n${transformedCSS}\n</style>
This writing breaks the source structure, resulting in generated hash inconsistencies, resulting in incorrect scopeId matching in vue。
so, I remove '\n' in
<style${meta}>\n${transformedCSS}\n</style>