Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const rootComponent = renderRootJsx
? renderRootJsx.default(previewComponent)
: { render: createElement => createElement(previewComponent) }
try {
new Vue({
...extendsComponent,
...rootComponent,
el
})
} catch (err) {
this.handleError(err)
}
// Add the scoped style if there is any
if (style) {
addScopedStyle(style, moduleId)
}
}
const rootComponent = renderRootJsx
? renderRootJsx.default(previewComponent)
: { render: createElement => createElement(previewComponent) }
try {
new Vue({
...extendsComponent,
...rootComponent,
el
})
} catch (err) {
this.handleError(err)
}
// Add the scoped style if there is any
if (style) {
addScopedStyle(style, moduleId)
}
}