Преглед изворни кода

feat(sfc): remove experimental status for sfc style v-bind

Evan You пре 4 година
родитељ
комит
3b38c9ae9b
1 измењених фајлова са 0 додато и 4 уклоњено
  1. 0 4
      packages/compiler-sfc/src/parse.ts

+ 0 - 4
packages/compiler-sfc/src/parse.ts

@@ -11,7 +11,6 @@ import { RawSourceMap, SourceMapGenerator } from 'source-map'
 import { TemplateCompiler } from './compileTemplate'
 import { TemplateCompiler } from './compileTemplate'
 import { Statement } from '@babel/types'
 import { Statement } from '@babel/types'
 import { parseCssVars } from './cssVars'
 import { parseCssVars } from './cssVars'
-import { warnExperimental } from './warn'
 import { createCache } from './cache'
 import { createCache } from './cache'
 
 
 export interface SFCParseOptions {
 export interface SFCParseOptions {
@@ -264,9 +263,6 @@ export function parse(
 
 
   // parse CSS vars
   // parse CSS vars
   descriptor.cssVars = parseCssVars(descriptor)
   descriptor.cssVars = parseCssVars(descriptor)
-  if (descriptor.cssVars.length) {
-    warnExperimental(`v-bind() CSS variable injection`, 231)
-  }
 
 
   // check if the SFC uses :slotted
   // check if the SFC uses :slotted
   const slottedRE = /(?:::v-|:)slotted\(/
   const slottedRE = /(?:::v-|:)slotted\(/