Skip to content

Commit 2f335b2

Browse files
committed
fix(sfc): remove sfc scoped deep syntax deprecation warnings
1 parent 60d268c commit 2f335b2

File tree

1 file changed

+9
-10
lines changed
  • packages/compiler-sfc/src/stylePlugins

1 file changed

+9
-10
lines changed

packages/compiler-sfc/src/stylePlugins/scoped.ts

+9-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { PluginCreator, Rule, AtRule } from 'postcss'
22
import selectorParser from 'postcss-selector-parser'
3-
import { warn } from '../warn'
43

54
const animationNameRE = /^(-\w+-)?animation-name$/
65
const animationRE = /^(-\w+-)?animation$/
@@ -94,10 +93,10 @@ function rewriteSelector(
9493
) {
9594
n.value = ' '
9695
n.spaces.before = n.spaces.after = ''
97-
warn(
98-
`the >>> and /deep/ combinators have been deprecated. ` +
99-
`Use :deep() instead.`
100-
)
96+
// warn(
97+
// `the >>> and /deep/ combinators have been deprecated. ` +
98+
// `Use :deep() instead.`
99+
// )
101100
return false
102101
}
103102

@@ -126,12 +125,12 @@ function rewriteSelector(
126125
}
127126
selector.removeChild(n)
128127
} else {
129-
// DEPRECATED usage
128+
// DEPRECATED usage in v3
130129
// .foo ::v-deep .bar -> .foo[xxxxxxx] .bar
131-
warn(
132-
`::v-deep usage as a combinator has ` +
133-
`been deprecated. Use :deep(<inner-selector>) instead.`
134-
)
130+
// warn(
131+
// `::v-deep usage as a combinator has ` +
132+
// `been deprecated. Use :deep(<inner-selector>) instead.`
133+
// )
135134
const prev = selector.at(selector.index(n) - 1)
136135
if (prev && isSpaceCombinator(prev)) {
137136
selector.removeChild(prev)

0 commit comments

Comments
 (0)