template compile will generate useless createVNode import when the component can be statically optimized
Version
3.0.4
Reproduction link
Steps to reproduce
What is expected?
createVNode shouldn't be imported
What is actually happening?
createVNode is imported
https://github.com/vuejs/vue-next/blob/master/packages/compiler-core/src/transforms/vIf.ts#L270, the createVNode
helper should be removed correctly.