File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed
packages/compiler-sfc/src/stylePlugins Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change 11import { PluginCreator , Rule , AtRule } from 'postcss'
22import selectorParser from 'postcss-selector-parser'
3- import { warn } from '../warn'
43
54const animationNameRE = / ^ ( - \w + - ) ? a n i m a t i o n - n a m e $ /
65const animationRE = / ^ ( - \w + - ) ? a n i m a t i o n $ /
@@ -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 )
You can’t perform that action at this time.
0 commit comments