We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5604341 commit 42b0851Copy full SHA for 42b0851
src/main.ts
@@ -173,7 +173,12 @@ async function genTemplateCode(
173
pluginContext: PluginContext,
174
ssr: boolean
175
) {
176
- const template = descriptor.template!
+ const template = descriptor.template
177
+
178
+ if (!template) {
179
+ return 'const _sfc_render = null; const _sfc_staticRenderFns = null'
180
+ }
181
182
const hasScoped = descriptor.styles.some((style) => style.scoped)
183
184
// If the template is not using pre-processor AND is not using external src,
0 commit comments