feat: ssr support for <style vars>

This commit is contained in:
Evan You
2020-07-12 18:04:09 -04:00
parent b6cdd5621e
commit b9595e64cf
17 changed files with 256 additions and 15 deletions

View File

@@ -591,6 +591,11 @@ export function compileScript(
Object.keys(setupExports).forEach(key => {
bindings[key] = 'setup'
})
Object.keys(typeDeclaredProps).forEach(key => {
bindings[key] = 'props'
})
// TODO analyze props if user declared props via `export default {}` inside
// <script setup>
s.trim()
return {