fix(compiler-sfc): register exported bindings in normal script when using script setup (#4601)
fix #4600
This commit is contained in:
@@ -11,7 +11,7 @@ export default {
|
||||
|
||||
x()
|
||||
|
||||
return { x }
|
||||
return { n, x }
|
||||
}
|
||||
|
||||
}"
|
||||
@@ -26,7 +26,7 @@ export default {
|
||||
|
||||
x()
|
||||
|
||||
return { x }
|
||||
return { n, x }
|
||||
}
|
||||
|
||||
}
|
||||
@@ -66,7 +66,7 @@ function setup(__props, { expose }) {
|
||||
|
||||
x()
|
||||
|
||||
return { x }
|
||||
return { n, x }
|
||||
}
|
||||
|
||||
|
||||
@@ -87,7 +87,7 @@ function setup(__props, { expose }) {
|
||||
|
||||
x()
|
||||
|
||||
return { x }
|
||||
return { n, x }
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user