Skip to content

Commit

Permalink
dx(compiler-sfc): enhance :deep warnings (#8328)
Browse files Browse the repository at this point in the history
close #8313
  • Loading branch information
baiwusanyu-c authored Jul 11, 2023
1 parent 140a89b commit 701fa73
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/compiler-sfc/src/style/pluginScoped.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,10 @@ function rewriteSelector(
// DEPRECATED usage
// .foo ::v-deep .bar -> .foo[xxxxxxx] .bar
warn(
`::v-deep usage as a combinator has ` +
`been deprecated. Use :deep(<inner-selector>) instead.`
`${value} usage as a combinator has been deprecated. ` +
`Use :deep(<inner-selector>) instead of ${value} <inner-selector>.`
)

const prev = selector.at(selector.index(n) - 1)
if (prev && isSpaceCombinator(prev)) {
selector.removeChild(prev)
Expand Down

0 comments on commit 701fa73

Please sign in to comment.