wip(ssr): initial scaffold for compiler-ssr
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { NodeTransform, NodeTypes, ElementTypes } from '@vue/compiler-dom'
|
||||
|
||||
export const ssrTransformComponent: NodeTransform = (node, context) => {
|
||||
if (
|
||||
node.type === NodeTypes.ELEMENT &&
|
||||
node.tagType === ElementTypes.COMPONENT
|
||||
) {
|
||||
return function ssrPostTransformComponent() {
|
||||
// generate a _push(_renderComponent) call
|
||||
// dynamic component as well
|
||||
// !check if we need to bail out for slots
|
||||
// TODO also handle scopeID here
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user