Skip to content

Commit cb00134

Browse files
committed
Fix broken test
1 parent fb1833d commit cb00134

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/lib/create-instance.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import extractOptions from '../options/extract-options'
1414
import deleteMountingOptions from '../options/delete-mounting-options'
1515
import createFunctionalComponent from './create-functional-component'
1616
import cloneDeep from 'lodash/cloneDeep'
17+
import { componentNeedsCompiling } from './validators'
1718

1819
export default function createConstructor (
1920
component: Component,
@@ -40,9 +41,7 @@ export default function createConstructor (
4041
// addProvide(component, mountingOptions.provide, options)
4142
// }
4243

43-
if (!component.render &&
44-
(component.template || component.extends) &&
45-
!component.functional) {
44+
if (componentNeedsCompiling(component)) {
4645
compileTemplate(component)
4746
}
4847

0 commit comments

Comments
 (0)