refactor: remove deprecated scopeId codegen

BREAKING CHANGE: Output of SFC using `<style scoped>` generated by 3.2+
will be incompatible w/ runtime <3.2.
This commit is contained in:
Evan You
2021-07-14 10:04:35 -04:00
parent 1c7d737cc8
commit f596e008ef
7 changed files with 12 additions and 82 deletions

View File

@@ -148,15 +148,6 @@ export function compileScript(
)
}
// TODO remove on 3.2
if (sfc.template && sfc.template.attrs['inherit-attrs'] === 'false') {
warnOnce(
`Experimental support for <template inherit-attrs="false"> support has ` +
`been removed. Use a <script> block with \`export default\` to ` +
`declare options.`
)
}
const scopeId = options.id ? options.id.replace(/^data-v-/, '') : ''
const cssVars = sfc.cssVars
const scriptLang = script && script.lang