We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b9b26c commit 859a45dCopy full SHA for 859a45d
src/index.ts
@@ -163,7 +163,7 @@ export default function loader(
163
const scopedQuery = hasScoped ? `&scoped=true` : ``
164
const attrsQuery = attrsToQuery(descriptor.template.attrs)
165
const bindingsQuery = script
166
- ? `&bindings=${JSON.stringify(script.bindings)}`
+ ? `&bindings=${JSON.stringify(script.bindings ?? {})}`
167
: ``
168
const query = `?vue&type=template${idQuery}${scopedQuery}${attrsQuery}${bindingsQuery}${resourceQuery}`
169
templateRequest = stringifyRequest(src + query)
0 commit comments