const scriptLang = script && script.lang
const scriptSetupLang = scriptSetup && scriptSetup.lang
- let refBindings: string[] | undefined
-
if (!scriptSetup) {
if (!script) {
throw new Error(`[@vue/compiler-sfc] SFC contains no <script> tags.`)
for (const key in setupBindings) {
ctx.bindingMetadata[key] = setupBindings[key]
}
- // known ref bindings
- if (refBindings) {
- for (const key of refBindings) {
- ctx.bindingMetadata[key] = BindingTypes.SETUP_REF
- }
- }
// 7. inject `useCssVars` calls
if (